aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorreg <reg@FreeBSD.org>2000-10-05 14:47:41 +0800
committerreg <reg@FreeBSD.org>2000-10-05 14:47:41 +0800
commit4495def283d3b8c777e1eb5b958cedb25b1aa16b (patch)
treed7741a9f974e1e8c5428027e641c709984c997cf /www
parent72ce7050d03c812e37966786e11996a90713afea (diff)
downloadfreebsd-ports-gnome-4495def283d3b8c777e1eb5b958cedb25b1aa16b.tar.gz
freebsd-ports-gnome-4495def283d3b8c777e1eb5b958cedb25b1aa16b.tar.zst
freebsd-ports-gnome-4495def283d3b8c777e1eb5b958cedb25b1aa16b.zip
Implment WANT_GTK.
Diffstat (limited to 'www')
-rw-r--r--www/asp2php/Makefile29
-rw-r--r--www/asp2php/files/patch-aa10
2 files changed, 11 insertions, 28 deletions
diff --git a/www/asp2php/Makefile b/www/asp2php/Makefile
index f3c4aa7e5ed9..1f05a8ad5e7b 100644
--- a/www/asp2php/Makefile
+++ b/www/asp2php/Makefile
@@ -13,17 +13,14 @@ DISTNAME= ${PORTNAME}${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
-.if defined(WANT_GTK)
-LIB_DEPENDS+= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12
-.endif
-
-GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
WRKSRC= ${WRKDIR}/${PORTNAME}
-MAKE_ENV+= GTK_CONFIG="${GTK_CONFIG}"
-ALL_TARGET= all
-INSTALL_TARGET= install
-.if defined(WANT_GTK)
+WANT_GTK= yes
+
+.include <bsd.port.pre.mk>
+
+.if defined(HAVE_GTK)
+USE_GTK= yes
ALL_TARGET+= gtkasp2php
INSTALL_TARGET+=install-gtk
PLIST_SUB+= WANT_GTK=""
@@ -31,16 +28,4 @@ PLIST_SUB+= WANT_GTK=""
PLIST_SUB+= WANT_GTK="@comment "
.endif
-pre-fetch:
- @${ECHO}
-.if !defined(WANT_GTK)
- @${ECHO} "If you want the GTK frontend, define the WANT_GTK variable"
- @${ECHO} "in your make args. For example:"
- @${ECHO}
- @${ECHO} " make -DWANT_GTK"
-.else
- @${ECHO} "Building with GTK frontend."
-.endif
- @${ECHO}
-
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/www/asp2php/files/patch-aa b/www/asp2php/files/patch-aa
index eb75b86c5b51..8fcc67d2700d 100644
--- a/www/asp2php/files/patch-aa
+++ b/www/asp2php/files/patch-aa
@@ -1,6 +1,6 @@
--- Makefile Fri Jun 30 12:30:49 2000
+++ Makefile.new Thu Jun 29 15:50:22 2000
-@@ -1,24 +1,25 @@
+@@ -1,24 +1,23 @@
-
-default:
- gcc -c general.c
@@ -18,8 +18,6 @@
- gcc -c session.c
- gcc -o asp2php asp2php.c conditionals.o database.o \
+CC ?= cc
-+GTK_CONFIG ?= gtk12-config
-+INSTALL_PROGRAM ?= install -c -s -o root -g wheel -m 755
+
+all:
+ $(CC) -c general.c
@@ -61,8 +59,8 @@
- @echo "gtk2asp2php: Use from current directory"
-
-
-+ $(INSTALL_PROGRAM) asp2php $(PREFIX)/bin
-+ $(INSTALL_PROGRAM) unipiss $(PREFIX)/bin
++ $(BSD_INSTALL_PROGRAM) asp2php $(PREFIX)/bin
++ $(BSD_INSTALL_PROGRAM) unipiss $(PREFIX)/bin
+install-gtk:
-+ $(INSTALL_PROGRAM) gtkasp2php $(PREFIX)/bin
++ $(BSD_INSTALL_PROGRAM) gtkasp2php $(PREFIX)/bin