aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorwg <wg@FreeBSD.org>2013-09-26 22:07:08 +0800
committerwg <wg@FreeBSD.org>2013-09-26 22:07:08 +0800
commit192f23bd5f4af9426c81176b2bdc18b0a78adbe6 (patch)
tree022033d8a609034ff38401ec387b30bcfc3d412d /graphics
parentf9e6a25a735706140b974f8ae9a0f562a4012a5c (diff)
downloadfreebsd-ports-gnome-192f23bd5f4af9426c81176b2bdc18b0a78adbe6.tar.gz
freebsd-ports-gnome-192f23bd5f4af9426c81176b2bdc18b0a78adbe6.tar.zst
freebsd-ports-gnome-192f23bd5f4af9426c81176b2bdc18b0a78adbe6.zip
graphics/apvlv: allow staging
- Allow staging [1] - Use options helpers [1] - Convert lib depends to new format PR: ports/182383 [1] Submitted by: Maxim Samsonov <xors mailup.net> (maintainer) [1]
Diffstat (limited to 'graphics')
-rw-r--r--graphics/apvlv/Makefile32
-rw-r--r--graphics/apvlv/pkg-plist1
2 files changed, 11 insertions, 22 deletions
diff --git a/graphics/apvlv/Makefile b/graphics/apvlv/Makefile
index 62957385db57..396ba4758397 100644
--- a/graphics/apvlv/Makefile
+++ b/graphics/apvlv/Makefile
@@ -12,7 +12,7 @@ COMMENT= PDF/DJVU Viewer that behaves like Vim
LICENSE= GPLv2
-LIB_DEPENDS= poppler-glib.8:${PORTSDIR}/graphics/poppler-glib
+LIB_DEPENDS= libpoppler-glib.so:${PORTSDIR}/graphics/poppler-glib
USE_GNOME= gtk20
USES= cmake pkgconfig
@@ -22,28 +22,16 @@ CMAKE_ARGS+= -DSYSCONFDIR=${PREFIX}/etc \
-DAPVLV_WITH_UMD=OFF \
-DAPVLV_WITH_TXT=ON
-MAN1= apvlv.1
-
OPTIONS_DEFINE= DJVU WEBKIT
-DJVU_DESC= Build with DjVu support
-WEBKIT_DESC= Build with WebKit support
-
-NO_STAGE= yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MDJVU}
-CMAKE_ARGS+= -DAPVLV_WITH_DJVU=ON
-LIB_DEPENDS+= djvulibre:${PORTSDIR}/graphics/djvulibre
-.else
-CMAKE_ARGS+= -DAPVLV_WITH_DJVU=OFF
-.endif
-
-.if ${PORT_OPTIONS:MWEBKIT}
-CMAKE_ARGS+= -DAPVLV_WITH_HTML=ON
-LIB_DEPENDS+= webkitgtk-1.0:${PORTSDIR}/www/webkit-gtk2
-.else
-CMAKE_ARGS+= -DAPVLV_WITH_HTML=OFF
-.endif
+DJVU_DESC= DjVu document support
+
+DJVU_CMAKE_ON= -DAPVLV_WITH_DJVU=ON
+DJVU_CMAKE_OFF= -DAPVLV_WITH_DJVU=OFF
+DJVU_LIB_DEPENDS= libdjvulibre.so:${PORTSDIR}/graphics/djvulibre
+
+WEBKIT_CMAKE_ON= -DAPVLV_WITH_HTML=ON
+WEBKIT_CMAKE_OFF= -DAPVLV_WITH_HTML=OFF
+WEBKIT_LIB_DEPENDS= libwebkitgtk-1.0.so:${PORTSDIR}/www/webkit-gtk2
.include <bsd.port.mk>
diff --git a/graphics/apvlv/pkg-plist b/graphics/apvlv/pkg-plist
index bae4a8ceb5d4..8acd4afbadd0 100644
--- a/graphics/apvlv/pkg-plist
+++ b/graphics/apvlv/pkg-plist
@@ -1,5 +1,6 @@
bin/apvlv
etc/apvlvrc
+man/man1/apvlv.1.gz
%%DOCSDIR%%/Startup.pdf
%%DOCSDIR%%/Startup.tex
%%DOCSDIR%%/apvlvrc.example