summaryrefslogtreecommitdiff
path: root/graphics/chbg
diff options
context:
space:
mode:
authorAlexander Leidinger <netchild@FreeBSD.org>2002-08-31 11:29:29 +0000
committerAlexander Leidinger <netchild@FreeBSD.org>2002-08-31 11:29:29 +0000
commit7ab19ba8cdd436fdb855173f41792d8806de7010 (patch)
tree2e55d3f2bc24baa95b6d7f58ba87b503194df946 /graphics/chbg
parentAdd interchange 4.8.6, RedHat's database-enabled e-commerce server. (diff)
Switch to GNOMENG, use REINPLACE.
Notes
Notes: svn path=/head/; revision=65365
Diffstat (limited to 'graphics/chbg')
-rw-r--r--graphics/chbg/Makefile18
1 files changed, 8 insertions, 10 deletions
diff --git a/graphics/chbg/Makefile b/graphics/chbg/Makefile
index 996bb55918c9..1c14218372ff 100644
--- a/graphics/chbg/Makefile
+++ b/graphics/chbg/Makefile
@@ -17,31 +17,29 @@ MAINTAINER= netchild@FreeBSD.org
LIB_DEPENDS= gdk_pixbuf.2:${PORTSDIR}/graphics/gdk-pixbuf/
-# GNOME parts aren't prefix safe, the get installed into "gnome-config --prefix"
+# GNOME parts aren't prefix safe, they install into "gnome-config --prefix"
USE_X_PREFIX= yes
+USE_GNOMENG= yes
WANT_GNOME= yes
USE_GMAKE= yes
+USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CFLAGS="${CFLAGS}" CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
.include <bsd.port.pre.mk>
-.if defined(HAVE_GNOME)
-USE_GNOMECTRL= yes
+.if ${HAVE_GNOME:Mlibcapplet} != ""
+USE_GNOME+= gnomeprefix gnomehack libcapplet
+PKGNAMESUFFIX= -gnome
.else
USE_GTK= yes
.endif
MAN1= chbg.1
-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|\$\(GNOME_PREFIX\)/share/control-center|\$\(GNOME_PREFIX\)/share/gnome/control-center|g; \
- s|\$\(GNOME_PREFIX\)/share/pixmaps|\$\(GNOME_PREFIX\)/share/gnome/pixmaps|g; \
- s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'
.include <bsd.port.post.mk>