diff options
-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> |