aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2002-09-09 13:09:11 +0800
committermarcus <marcus@FreeBSD.org>2002-09-09 13:09:11 +0800
commitf9101a28f28450a0522c16f96eff1fa663db11ab (patch)
treeb228a98108f147bacc3ab9dc14ef3ee513ebf08c /misc
parent620aaa5345c961df1dc882469be5b2574b5d2625 (diff)
downloadfreebsd-ports-gnome-f9101a28f28450a0522c16f96eff1fa663db11ab.tar.gz
freebsd-ports-gnome-f9101a28f28450a0522c16f96eff1fa663db11ab.tar.zst
freebsd-ports-gnome-f9101a28f28450a0522c16f96eff1fa663db11ab.zip
Fix things up after the recent GNOMENG commit.
Diffstat (limited to 'misc')
-rw-r--r--misc/grdb/Makefile17
1 files changed, 9 insertions, 8 deletions
diff --git a/misc/grdb/Makefile b/misc/grdb/Makefile
index 96b251f7949f..56f4b9ffb8a5 100644
--- a/misc/grdb/Makefile
+++ b/misc/grdb/Makefile
@@ -16,27 +16,28 @@ LIB_DEPENDS= popt.0:${PORTSDIR}/devel/popt
USE_X_PREFIX= yes
USE_GNOMENG= yes
+USE_GNOME= gtk12
WANT_GNOME= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
+USE_REINPLACE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
.include <bsd.port.pre.mk>
-.if ${HAVE_GNOME:Mgtk12}!=""
-USE_GNOME+= gtk12
-PKGNAMESUFFIX= -gtk
+.if ${HAVE_GNOME:Mgnomelibs}!=""
+USE_GNOME+= gnomeprefix gnomehack gnomelibs
+PKGNAMESUFFIX= -gnome
+PLIST_SUB= DATADIR="share/gnome"
.else
CONFIGURE_ARGS= --disable-gnome
+PLIST_SUB= DATADIR="share"
.endif
-pre-patch:
- @${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
+post-patch:
+ @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
- @find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
- 's|\$$\(datadir\)/gnome/|\$$\(datadir\)/|g ; \
- s|\$$\(datadir\)/locale|\$$\(prefix\)/share/locale|g'
post-install:
.if !defined(NOPORTDOCS)