aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2014-04-28 12:54:19 +0000
committerPawel Pekala <pawel@FreeBSD.org>2014-04-28 12:54:19 +0000
commita7de9766992edbd91cf91ca2eac6c422328742ff (patch)
tree62e7cea3d4c7175971441d608998504faa8623ca /graphics
parentb33b30947050d7236099e994c6074e8f43c21849 (diff)
downloadports-a7de9766992edbd91cf91ca2eac6c422328742ff.tar.gz
ports-a7de9766992edbd91cf91ca2eac6c422328742ff.zip
Notes
Diffstat (limited to 'graphics')
-rw-r--r--graphics/pornview/Makefile31
-rw-r--r--graphics/pornview/pkg-plist4
2 files changed, 14 insertions, 21 deletions
diff --git a/graphics/pornview/Makefile b/graphics/pornview/Makefile
index 9e3450d7e13d..eddb104d1054 100644
--- a/graphics/pornview/Makefile
+++ b/graphics/pornview/Makefile
@@ -9,11 +9,11 @@ MASTER_SITES= SF/${PORTNAME}/OldFiles
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.p./pre/}
MAINTAINER= ports@FreeBSD.org
-COMMENT= PornView is an image viewer/manager
+COMMENT= Image viewer/manager
-LIB_DEPENDS= exif:${PORTSDIR}/graphics/libexif \
- png15:${PORTSDIR}/graphics/png \
- xcb-render-util:${PORTSDIR}/x11/xcb-util-renderutil
+LIB_DEPENDS= libexif.so:${PORTSDIR}/graphics/libexif \
+ libpng15.so:${PORTSDIR}/graphics/png \
+ libxcb-render-util.so:${PORTSDIR}/x11/xcb-util-renderutil
USE_XORG= x11 xi xext xinerama
USES= pkgconfig
@@ -25,22 +25,15 @@ LDFLAGS+= -L${LOCALBASE}/lib -lm
OPTIONS_DEFINE= LIBXINE MPLAYER NLS
OPTIONS_DEFAULT= LIBXINE
+OPTIONS_SUB= yes
-NO_STAGE= yes
-.include <bsd.port.options.mk>
-.if ${PORT_OPTIONS:MLIBXINE}
-LIB_DEPENDS+= xine.2:${PORTSDIR}/multimedia/libxine
-CONFIGURE_ARGS+= --enable-xine
-.elif ${PORT_OPTIONS:MMPLAYER}
-RUN_DEPENDS+= mplayer:${PORTSDIR}/multimedia/mplayer
-CONFIGURE_ARGS+= --enable-mplayer
-.endif
-.if ! ${PORT_OPTIONS:MNLS}
-CONFIGURE_ARGS+= --disable-nls
-PLIST_SUB+= WITH_NLS="@comment "
-.else
-PLIST_SUB+= WITH_NLS=""
-.endif
+LIBXINE_CONFIGURE_ENABLE= xine
+LIBXINE_LIB_DEPENDS= libxine.so:${PORTSDIR}/multimedia/libxine
+
+MPLAYER_CONFIGURE_ENABLE= mplayer
+MPLAYER_RUN_DEPENDS= mplayer:${PORTSDIR}/multimedia/mplayer
+
+NLS_CONFIGURE_ENABLE= nls
post-patch:
@${REINPLACE_CMD} -e \
diff --git a/graphics/pornview/pkg-plist b/graphics/pornview/pkg-plist
index 0fcc32adda5e..e671b600af93 100644
--- a/graphics/pornview/pkg-plist
+++ b/graphics/pornview/pkg-plist
@@ -1,8 +1,8 @@
bin/pornview
share/gnome/apps/Graphics/pornview.desktop
share/pixmaps/pornview.png
-%%WITH_NLS%%share/locale/fr/LC_MESSAGES/pornview.mo
-%%WITH_NLS%%share/locale/pl/LC_MESSAGES/pornview.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/pornview.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/pornview.mo
share/pornview/scripts/helloworld
@dirrm share/pornview/scripts
@dirrm share/pornview