diff --git a/graphics/pornview/Makefile b/graphics/pornview/Makefile index 08efc4a7182e..e2ea9f3c3a64 100644 --- a/graphics/pornview/Makefile +++ b/graphics/pornview/Makefile @@ -1,42 +1,48 @@ # New ports collection Makefile for: pornview # Date created: 24 Nov 2002 # Whom: Tilman Linneweh # # $FreeBSD$ # PORTNAME= pornview PORTVERSION= 0.2.0.p.1 PORTREVISION= 6 CATEGORIES= graphics MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} DISTNAME= ${PORTNAME}-${PORTVERSION:S/.p./pre/} -MAINTAINER= ports@FreeBSD.org +MAINTAINER= dinoex@FreeBSD.org COMMENT= PornView is an image viewer/manager LIB_DEPENDS= exif.12:${PORTSDIR}/graphics/libexif USE_X_PREFIX= yes USE_GNOME= gdkpixbuf gnomehack gnomeprefix USE_REINPLACE= yes GNU_CONFIGURE= yes CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" .if defined(WITH_LIBXINE) LIB_DEPENDS+= xine.13:${PORTSDIR}/multimedia/libxine CONFIGURE_ARGS+= --enable-xine .elif defined(WITH_MPLAYER) RUN_DEPENDS+= mplayer:${PORTSDIR}/multimedia/mplayer CONFIGURE_ARGS+= --enable-mplayer .endif +.if defined(WITHOUT_NLS) +CONFIGURE_ARGS+= --disable-nls +PLIST_SUB+= WITH_NLS="@comment " +.else +PLIST_SUB+= WITH_NLS="" +.endif post-patch: @${REINPLACE_CMD} -e \ 's|INCLUDED_LIBINTL=yes|INCLUDED_LIBINTL=no|g ; \ s|\\[$$][{]top_builddir[}]/intl/libintl.a|-lintl|g ; \ s|[{]datadir[}]/locale|{prefix}/share/locale|g' ${WRKSRC}/configure .include diff --git a/graphics/pornview/pkg-plist b/graphics/pornview/pkg-plist index def76ea79cee..1f53c2f61395 100644 --- a/graphics/pornview/pkg-plist +++ b/graphics/pornview/pkg-plist @@ -1,8 +1,8 @@ bin/pornview share/gnome/apps/Graphics/pornview.desktop share/gnome/pixmaps/pornview.png -share/locale/fr/LC_MESSAGES/pornview.mo -share/locale/pl/LC_MESSAGES/pornview.mo +%%WITH_NLS%%share/locale/fr/LC_MESSAGES/pornview.mo +%%WITH_NLS%%share/locale/pl/LC_MESSAGES/pornview.mo share/gnome/pornview/scripts/helloworld @dirrm share/gnome/pornview/scripts @dirrm share/gnome/pornview