From a7de9766992edbd91cf91ca2eac6c422328742ff Mon Sep 17 00:00:00 2001 From: Pawel Pekala Date: Mon, 28 Apr 2014 12:54:19 +0000 Subject: - Port is stage safe - Fix recursive COMMENT - Convert to new LIB_DEPENDS format - Use options helpers, subs --- graphics/pornview/Makefile | 31 ++++++++++++------------------- graphics/pornview/pkg-plist | 4 ++-- 2 files changed, 14 insertions(+), 21 deletions(-) (limited to 'graphics') 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 -.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 -- cgit