aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorkwm <kwm@FreeBSD.org>2015-07-15 15:30:35 +0800
committerkwm <kwm@FreeBSD.org>2015-07-15 15:30:35 +0800
commitfa04b2900efe7148e87bd2f2ee527556566c696d (patch)
treee714b4ea34114a2f02e124e65d64414d851b92a0 /graphics
parentad9d27e085f75383a9bcbc574fe6282896d0f8ad (diff)
downloadfreebsd-ports-gnome-fa04b2900efe7148e87bd2f2ee527556566c696d.tar.gz
freebsd-ports-gnome-fa04b2900efe7148e87bd2f2ee527556566c696d.tar.zst
freebsd-ports-gnome-fa04b2900efe7148e87bd2f2ee527556566c696d.zip
* Enable introspection
* add support for XPS * Optionfy keyring support. * Add support for atril-lite.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/atril/Makefile46
-rw-r--r--graphics/atril/pkg-plist6
2 files changed, 45 insertions, 7 deletions
diff --git a/graphics/atril/Makefile b/graphics/atril/Makefile
index 048db542771e..4018cccd5623 100644
--- a/graphics/atril/Makefile
+++ b/graphics/atril/Makefile
@@ -3,24 +3,23 @@
PORTNAME= atril
PORTVERSION= 1.8.1
-PORTREVISION= 3
+PORTREVISION?= 4
CATEGORIES= graphics print mate
MASTER_SITES= MATE
DIST_SUBDIR= mate
MAINTAINER= gnome@FreeBSD.org
-COMMENT= MATE multi-format document viewer
+COMMENT?= MATE multi-format document viewer
BUILD_DEPENDS= itstool:${PORTSDIR}/textproc/itstool
LIB_DEPENDS= libpoppler-glib.so:${PORTSDIR}/graphics/poppler-glib \
- libspectre.so:${PORTSDIR}/print/libspectre \
- libsecret-1.so:${PORTSDIR}/security/libsecret \
- libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib
+ libspectre.so:${PORTSDIR}/print/libspectre
RUN_DEPENDS= ${LOCALBASE}/share/icons/hicolor/index.theme:${PORTSDIR}/misc/hicolor-icon-theme \
PORTSCOUT= limitw:1,even
+SLAVEPORT?= no
USES= desktop-file-utils gettext gmake libtool pathfix \
pkgconfig tar:xz
@@ -37,18 +36,36 @@ CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
INSTALL_TARGET= install-strip
+.if ${SLAVEPORT} == lite
+CONFIGURE_ARGS+=--disable-introspection \
+ --disable-thumbnailer \
+ --disable-previewer
+.else
+USE_GNOME+= introspection:build
+CONFIGURE_ARGS+= --enable-introspection
+.endif
+
GLIB_SCHEMAS= org.mate.Atril.gschema.xml
-OPTIONS_DEFINE= DVI T1LIB CAJA COMICS DJVU
-OPTIONS_DEFAULT=CAJA COMICS
+OPTIONS_DEFINE= CAJA COMICS DJVU DVI KEYRING T1LIB XPS
+OPTIONS_DEFAULT=CAJA COMICS KEYRING XPS
DVI_DESC= DVI viewer support
T1LIB_DESC= T1LIB for TYPE1 fonts to DVI (Enables DVI)
CAJA_DESC= Caja plugin
+KEYRING_DESC= Keyring support
COMICS_DESC= Comic book archives support
DJVU_DESC= DJVU support
+XPS_DESC= XPS support
.include <bsd.port.options.mk>
+.if ${SLAVEPORT} == lite
+CONFIGURE_ARGS+=--disable-dbus
+.else
+CONFIGURE_ARGS+=--enable-dbus
+LIB_DEPENDS+= libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib
+.endif
+
.if ${PORT_OPTIONS:MDVI} || ${PORT_OPTIONS:MT1LIB}
USE_TEX= base
@@ -67,6 +84,12 @@ CONFIGURE_ARGS+=--disable-dvi
PLIST_SUB+= DVI="@comment "
.endif
+.if ${PORT_OPTIONS:MKEYRING}
+LIB_DEPENDS+= libsecret-1.so:${PORTSDIR}/security/libsecret
+.else
+CONFIGURE_ARGS+=--without-keyring
+.endif
+
.if ${PORT_OPTIONS:MCAJA}
USE_MATE+= caja
CONFIGURE_ARGS+=--enable-caja
@@ -76,6 +99,15 @@ CONFIGURE_ARGS+=--disable-caja
PLIST_SUB+= CAJA="@comment "
.endif
+.if ${PORT_OPTIONS:MXPS}
+LIB_DEPENDS+= libgxps.so:${PORTSDIR}/graphics/libgxps
+CONFIGURE_ARGS+= --enable-xps
+PLIST_SUB+= XPS=""
+.else
+CONFIGURE_ARGS+= --disable-xps
+PLIST_SUB+= XPS="@comment "
+.endif
+
.if ${PORT_OPTIONS:MDJVU}
LIB_DEPENDS+= libdjvulibre.so:${PORTSDIR}/graphics/djvulibre
CONFIGURE_ARGS+=--enable-djvu
diff --git a/graphics/atril/pkg-plist b/graphics/atril/pkg-plist
index f9f859aa87b9..010559b5465b 100644
--- a/graphics/atril/pkg-plist
+++ b/graphics/atril/pkg-plist
@@ -57,10 +57,14 @@ include/atril/1.5.0/libview/ev-view.h
lib/atril/3/backends/libpdfdocument.so
lib/atril/3/backends/libpsdocument.so
lib/atril/3/backends/libtiffdocument.so
+%%XPS%%lib/atril/3/backends/libxpsdocument.so
lib/atril/3/backends/pdfdocument.atril-backend
lib/atril/3/backends/psdocument.atril-backend
lib/atril/3/backends/tiffdocument.atril-backend
+%%XPS%%lib/atril/3/backends/xpsdocument.atril-backend
%%CAJA%%lib/caja/extensions-2.0/libatril-properties-page.so
+lib/girepository-1.0/AtrilDocument-1.5.0.typelib
+lib/girepository-1.0/AtrilView-1.5.0.typelib
lib/libatrildocument.so
lib/libatrildocument.so.3
lib/libatrildocument.so.%%GTK3_VERSION%%
@@ -120,6 +124,8 @@ share/applications/atril.desktop
%%DATADIR%%/icons/hicolor/scalable/actions/object-rotate-right.svg
%%DATADIR%%/icons/hicolor/scalable/mimetypes/x-office-presentation.svg
share/dbus-1/services/org.mate.atril.Daemon.service
+share/gir-1.0/AtrilDocument-1.5.0.gir
+share/gir-1.0/AtrilView-1.5.0.gir
share/gtk-doc/html/atril/EggFindBar.html
share/gtk-doc/html/atril/EvFileMonitor.html
share/gtk-doc/html/atril/EvHistory.html