blob: 724073cdd40c2ce188de51caf91c21a6f0ed267d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Created by: Will Andrews <will@FreeBSD.org>
# $FreeBSD$
PORTNAME= asp2php
PORTVERSION= 0.76.26
CATEGORIES= www
MASTER_SITES= http://downloads.mikekohn.net/asp2php/
MAINTAINER= erwin@FreeBSD.org
COMMENT= Program to convert ASP scripts to PHP
LICENSE= GPLv2
WANT_GNOME= yes
MAKE_ARGS= CC="${CC}" FLAGS="${CFLAGS}"
PLIST_FILES= bin/asp2php
.include <bsd.port.pre.mk>
.if ${HAVE_GNOME:Mgtk12}
USE_GNOME= gtk12
PKGNAMESUFFIX= -gtk
ALL_TARGET= default gui
PLIST_FILES+= bin/gtkasp2php
HAVE_GTK= yes
.else
ALL_TARGET= default
.endif
post-patch:
@${FIND} ${WRKSRC} -name Makefile | ${XARGS} ${REINPLACE_CMD} -E \
's|cd (.+) && make|$$(MAKE) -C \1| ; \
s|`gtk-config|`\$$\{GTK_CONFIG\}|g'
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/asp2php ${STAGEDIR}${PREFIX}/bin
.if defined(HAVE_GTK)
${INSTALL_PROGRAM} ${WRKSRC}/gtkasp2php ${STAGEDIR}${PREFIX}/bin
.endif
.include <bsd.port.post.mk>
|