aboutsummaryrefslogtreecommitdiff
path: root/deskutils/gaddr
diff options
context:
space:
mode:
Diffstat (limited to 'deskutils/gaddr')
-rw-r--r--deskutils/gaddr/Makefile21
-rw-r--r--deskutils/gaddr/files/patch-ab2
2 files changed, 8 insertions, 15 deletions
diff --git a/deskutils/gaddr/Makefile b/deskutils/gaddr/Makefile
index 2c0936558c3a..de9ff23b536d 100644
--- a/deskutils/gaddr/Makefile
+++ b/deskutils/gaddr/Makefile
@@ -12,23 +12,16 @@ MASTER_SITES= http://www.cse.unl.edu/~cluening/gaddr/
MAINTAINER= jim@FreeBSD.org
-LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12
-.if defined(WITH_GNOME)
-LIB_DEPENDS+= gnome.4:${PORTSDIR}/x11/gnomelibs
-.endif
-
-GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
-
USE_X_PREFIX= yes
+USE_GTK= yes
+WANT_GNOME= yes
GNU_CONFIGURE= yes
-.if defined(WITH_GNOME)
+.include <bsd.port.pre.mk>
+
+.if defined(HAVE_GNOME)
+USE_GNOME= yes
CONFIGURE_ARGS+= --enable-gnome
.endif
-CONFIGURE_ENV= GTK_CONFIG="${GTK_CONFIG}"
-
-post-install:
- @strip ${PREFIX}/bin/gaddr
-
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/deskutils/gaddr/files/patch-ab b/deskutils/gaddr/files/patch-ab
index 8b93f7a6682a..2bc163d926bf 100644
--- a/deskutils/gaddr/files/patch-ab
+++ b/deskutils/gaddr/files/patch-ab
@@ -14,4 +14,4 @@
install: gaddr
- cp gaddr /usr/X11R6/bin/gaddr
-+ @/usr/bin/install -c -o 0 -g 0 -s -m 755 gaddr ${PREFIX}/bin
++ ${BSD_INSTALL_PROGRAM} gaddr ${PREFIX}/bin