diff options
author | Alexander Leidinger <netchild@FreeBSD.org> | 2002-08-31 11:29:29 +0000 |
---|---|---|
committer | Alexander Leidinger <netchild@FreeBSD.org> | 2002-08-31 11:29:29 +0000 |
commit | 7ab19ba8cdd436fdb855173f41792d8806de7010 (patch) | |
tree | 2e55d3f2bc24baa95b6d7f58ba87b503194df946 /graphics/chbg/Makefile | |
parent | b18f2651ac623f9c57169aeb4e44bb14dc5dffdb (diff) | |
download | ports-7ab19ba8cdd436fdb855173f41792d8806de7010.tar.gz ports-7ab19ba8cdd436fdb855173f41792d8806de7010.zip |
Switch to GNOMENG, use REINPLACE.
Notes
Notes:
svn path=/head/; revision=65365
Diffstat (limited to 'graphics/chbg/Makefile')
-rw-r--r-- | graphics/chbg/Makefile | 18 |
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> |