diff options
author | Jeremy Lea <reg@FreeBSD.org> | 2000-10-05 07:22:56 +0000 |
---|---|---|
committer | Jeremy Lea <reg@FreeBSD.org> | 2000-10-05 07:22:56 +0000 |
commit | 7b4c77811e89d7fc1131ca6e63df3e719bc86b1d (patch) | |
tree | 9695733a1620c4c290c86f161a4f1b73160ed39a /graphics/gqview | |
parent | Implement USE_GNOME, part 2. (diff) |
Implement WANT_GNOME.
Notes
Notes:
svn path=/head/; revision=33430
Diffstat (limited to 'graphics/gqview')
-rw-r--r-- | graphics/gqview/Makefile | 24 | ||||
-rw-r--r-- | graphics/gqview/pkg-plist | 2 |
2 files changed, 19 insertions, 7 deletions
diff --git a/graphics/gqview/Makefile b/graphics/gqview/Makefile index 7c7275cf5f97..b13152b4e21a 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> diff --git a/graphics/gqview/pkg-plist b/graphics/gqview/pkg-plist index 67acecb3a462..487d31fe6b2f 100644 --- a/graphics/gqview/pkg-plist +++ b/graphics/gqview/pkg-plist @@ -1,5 +1,7 @@ bin/gqview share/doc/gqview/README +%%GNOME:%%share/gnome/apps/Graphics/gqview.desktop +%%GNOME:%%share/gnome/pixmaps/gqview.png share/locale/de/LC_MESSAGES/gqview.mo share/locale/es/LC_MESSAGES/gqview.mo share/locale/fr/LC_MESSAGES/gqview.mo |