diff options
author | reg <reg@FreeBSD.org> | 2000-10-05 07:22:56 +0000 |
---|---|---|
committer | reg <reg@FreeBSD.org> | 2000-10-05 07:22:56 +0000 |
commit | 05b7017f031a0b7ec77897d1ff4479959829076e (patch) | |
tree | 26ae85d09c84baa372a2949e4ad9d1546c408c7e /graphics/gqview/Makefile | |
parent | 68dad4980b984b6c03859651af5eefb37c1c9d90 (diff) | |
download | FreeBSD-ports-05b7017f031a0b7ec77897d1ff4479959829076e.zip FreeBSD-ports-05b7017f031a0b7ec77897d1ff4479959829076e.tar.gz |
Implement WANT_GNOME.
Diffstat (limited to 'graphics/gqview/Makefile')
-rw-r--r-- | graphics/gqview/Makefile | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/graphics/gqview/Makefile b/graphics/gqview/Makefile index 7c7275c..b13152b 100644 --- a/graphics/gqview/Makefile +++ b/graphics/gqview/Makefile @@ -13,16 +13,26 @@ MASTER_SITE_SUBDIR= ${PORTNAME} MAINTAINER= nakai@FreeBSD.org -LIB_DEPENDS= gdk_imlib.5:${PORTSDIR}/graphics/imlib - -GTK_CONFIG?= ${X11BASE}/bin/gtk12-config - USE_X_PREFIX= yes +USE_IMLIB= yes +WANT_GNOME= yes GNU_CONFIGURE= yes CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ - GTK_CONFIG="${GTK_CONFIG}" \ LIBS="-L${LOCALBASE}/lib" -CONFIGURE_ARGS= --without-gnome --disable-imlibtest --disable-gtktest + +.include <bsd.port.pre.mk> + +.if defined(HAVE_GNOME) +USE_GNOME= yes +.else +CONFIGURE_ENV+= GNOME_CONFIG=no +.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|GNOME_DATADIR\)/gnome/|GNOME_DATADIR\)/|g' post-install: .if !defined(NOPORTDOCS) @@ -30,4 +40,4 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/gqview .endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> |