aboutsummaryrefslogtreecommitdiffstats
path: root/misc/grdb
diff options
context:
space:
mode:
authorreg <reg@FreeBSD.org>2000-10-05 15:22:56 +0800
committerreg <reg@FreeBSD.org>2000-10-05 15:22:56 +0800
commit05b7017f031a0b7ec77897d1ff4479959829076e (patch)
tree26ae85d09c84baa372a2949e4ad9d1546c408c7e /misc/grdb
parent68dad4980b984b6c03859651af5eefb37c1c9d90 (diff)
downloadfreebsd-ports-gnome-05b7017f031a0b7ec77897d1ff4479959829076e.tar.gz
freebsd-ports-gnome-05b7017f031a0b7ec77897d1ff4479959829076e.tar.zst
freebsd-ports-gnome-05b7017f031a0b7ec77897d1ff4479959829076e.zip
Implement WANT_GNOME.
Diffstat (limited to 'misc/grdb')
-rw-r--r--misc/grdb/Makefile47
-rw-r--r--misc/grdb/pkg-plist38
2 files changed, 40 insertions, 45 deletions
diff --git a/misc/grdb/Makefile b/misc/grdb/Makefile
index 2045a98a8885..04202d4000e6 100644
--- a/misc/grdb/Makefile
+++ b/misc/grdb/Makefile
@@ -12,46 +12,35 @@ MASTER_SITES= http://bucket.pp.ualr.edu/~bit/download/
MAINTAINER= stijn@win.tue.nl
-LIB_DEPENDS= popt.0:${PORTSDIR}/devel/popt \
- gtk12.2:${PORTSDIR}/x11-toolkits/gtk12 \
- ${GNOME_DEPENDS}
-
-.if !defined(WITHOUT_GNOME)
-GNOME_DEPENDS= gnome.4:${PORTSDIR}/x11/gnomelibs \
- capplet.4:${PORTSDIR}/sysutils/gnomecontrolcenter
-.endif
+LIB_DEPENDS= popt.0:${PORTSDIR}/devel/popt
USE_X_PREFIX= yes
-
+USE_GTK= yes
+WANT_GNOME= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
-CONFIGURE_ENV= GTK_CONFIG="${GTK_CONFIG}" \
- CPPFLAGS="-I${LOCALBASE}/include" \
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
-.if defined(WITHOUT_GNOME)
+.include <bsd.port.pre.mk>
+
+.if defined(HAVE_GNOME)
+USE_GNOME= yes
+.else
CONFIGURE_ARGS= --disable-gnome
.endif
-.if !defined(WITHOUT_GNOME)
-pre-extract:
- @${ECHO} "===> NOTE: You can remove support for the Gnome control panel"
- @${ECHO} "===> by defining WITHOUT_GNOME"
-.endif
+pre-patch:
+ @${PERL} -pi -e 's|-lpthread|-pthread|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)
- ${MKDIR} ${PREFIX}/share/doc/grdb
- ${INSTALL_MAN} ${WRKSRC}/README ${PREFIX}/share/doc/grdb
- @${ECHO} "share/doc/grdb/README" >> ${TMPPLIST}
- @${ECHO} "@dirrm share/doc/grdb" >> ${TMPPLIST}
-.endif
-.if !defined(WITHOUT_GNOME)
- @${ECHO} "bin/grdb-capplet" >> ${TMPPLIST}
- @${ECHO} "share/gnome/control-center/Desktop/grdb-capplet.desktop" >> ${TMPPLIST}
- @${ECHO} "share/gnome/apps/Settings/Desktop/grdb-capplet.desktop" >> ${TMPPLIST}
- @${ECHO} "share/gnome/pixmaps/grdb-capplet.png" >> ${TMPPLIST}
+ @${MKDIR} ${PREFIX}/share/doc/grdb
+ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/grdb
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/misc/grdb/pkg-plist b/misc/grdb/pkg-plist
index d43d9aa5b0e4..f4a582fe6ee1 100644
--- a/misc/grdb/pkg-plist
+++ b/misc/grdb/pkg-plist
@@ -1,17 +1,23 @@
+%%GNOME:%%bin/grdb-capplet
bin/grdb
-share/grdb/AAAAAAGeneral.ad
-share/grdb/AAAMotif.ad
-share/grdb/AAATk.ad
-share/grdb/AAAXaw.ad
-share/grdb/Ddd.ad
-share/grdb/Editres.ad
-share/grdb/Emacs.ad
-share/grdb/ML.ad
-share/grdb/Nedit.ad
-share/grdb/Netscape.ad
-share/grdb/RVPlayer.ad
-share/grdb/XCalc.ad
-share/grdb/XTerm.ad
-share/grdb/XV.ad
-share/grdb/XWp.ad
-@dirrm share/grdb
+share/doc/grdb/README
+%%GNOME:%%share/gnome/apps/Settings/Desktop/grdb-capplet.desktop
+%%GNOME:%%share/gnome/control-center/Desktop/grdb-capplet.desktop
+%%DATADIR%%/grdb/AAAAAAGeneral.ad
+%%DATADIR%%/grdb/AAAMotif.ad
+%%DATADIR%%/grdb/AAATk.ad
+%%DATADIR%%/grdb/AAAXaw.ad
+%%DATADIR%%/grdb/Ddd.ad
+%%DATADIR%%/grdb/Editres.ad
+%%DATADIR%%/grdb/Emacs.ad
+%%DATADIR%%/grdb/ML.ad
+%%DATADIR%%/grdb/Nedit.ad
+%%DATADIR%%/grdb/Netscape.ad
+%%DATADIR%%/grdb/RVPlayer.ad
+%%DATADIR%%/grdb/XCalc.ad
+%%DATADIR%%/grdb/XTerm.ad
+%%DATADIR%%/grdb/XV.ad
+%%DATADIR%%/grdb/XWp.ad
+%%GNOME:%%share/gnome/pixmaps/grdb-capplet.png
+@dirrm %%DATADIR%%/grdb
+@dirrm share/doc/grdb