summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrochner <drochner>2006-08-30 17:07:26 +0000
committerdrochner <drochner>2006-08-30 17:07:26 +0000
commit385a5425faa201f6e92b48e6ee7d262b59a4d24d (patch)
tree2bba07325d7e8df10e2baf8b66966e581127185d
parent8af65b9e8c3b1b94d5c157aceebe4cbdfab07b57 (diff)
downloadpkgsrc-385a5425faa201f6e92b48e6ee7d262b59a4d24d.tar.gz
add an option to support thr "djvu" file format
(no change to default configuration)
-rw-r--r--print/evince-nautilus/Makefile9
-rw-r--r--print/evince/Makefile13
-rw-r--r--print/evince/PLIST3
3 files changed, 20 insertions, 5 deletions
diff --git a/print/evince-nautilus/Makefile b/print/evince-nautilus/Makefile
index d9458c6de52..c5db4b3ef41 100644
--- a/print/evince-nautilus/Makefile
+++ b/print/evince-nautilus/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2006/06/21 16:01:44 jlam Exp $
+# $NetBSD: Makefile,v 1.8 2006/08/30 17:07:26 drochner Exp $
#
.include "../../print/evince/Makefile.common"
@@ -7,7 +7,7 @@ PKGNAME= ${DISTNAME:S/evince/evince-nautilus/}
COMMENT= File properties plugin for evince files
PKG_OPTIONS_VAR= PKG_OPTIONS.evince
-PKG_SUPPORTED_OPTIONS= dvi
+PKG_SUPPORTED_OPTIONS= dvi djvu
PKG_SUGGESTED_OPTIONS= # none
.include "../../mk/bsd.options.mk"
@@ -22,6 +22,11 @@ BUILDLINK_API_DEPENDS.teTeX-bin+= teTeX-bin>=3.0nb13
#BUILD_DIRS= pdf backend lib properties
.endif
+.if !empty(PKG_OPTIONS:Mdjvu)
+CONFIGURE_ARGS+= --enable-djvu
+.include "../../graphics/djvulibre/buildlink3.mk"
+.endif
+
INSTALL_DIRS= properties
.include "../../print/libgnomeprint/buildlink3.mk"
diff --git a/print/evince/Makefile b/print/evince/Makefile
index f6ffcbc57ad..0eb7ed66268 100644
--- a/print/evince/Makefile
+++ b/print/evince/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2006/08/23 09:49:36 jmmv Exp $
+# $NetBSD: Makefile,v 1.22 2006/08/30 17:07:26 drochner Exp $
#
.include "../../print/evince/Makefile.common"
@@ -11,7 +11,7 @@ GCONF2_SCHEMAS= evince.schemas
GCONF2_SCHEMAS+= evince-thumbnailer.schemas
PKG_OPTIONS_VAR= PKG_OPTIONS.evince
-PKG_SUPPORTED_OPTIONS= dvi
+PKG_SUPPORTED_OPTIONS= dvi djvu
PKG_SUGGESTED_OPTIONS= # none
.include "../../mk/bsd.options.mk"
@@ -25,6 +25,15 @@ GCONF2_SCHEMAS+= evince-thumbnailer-dvi.schemas
PLIST_SUBST+= DVI="@comment "
.endif
+.if !empty(PKG_OPTIONS:Mdjvu)
+CONFIGURE_ARGS+= --enable-djvu
+PLIST_SUBST+= DJVU= #empty
+GCONF2_SCHEMAS+= evince-thumbnailer-djvu.schemas
+.include "../../graphics/djvulibre-lib/buildlink3.mk"
+.else
+PLIST_SUBST+= DJVU="@comment "
+.endif
+
.include "../../devel/GConf2/schemas.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../security/gnome-keyring/buildlink3.mk"
diff --git a/print/evince/PLIST b/print/evince/PLIST
index e465b2251d4..973c7147fb5 100644
--- a/print/evince/PLIST
+++ b/print/evince/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.9 2006/08/16 20:24:54 wiz Exp $
+@comment $NetBSD: PLIST,v 1.10 2006/08/30 17:07:26 drochner Exp $
bin/evince
bin/evince-thumbnailer
share/applications/evince.desktop
@@ -8,6 +8,7 @@ share/evince/evince-toolbar.xml
share/evince/evince-ui.xml
share/evince/hand-open.png
share/gconf/schemas/evince-thumbnailer.schemas
+${DJVU}share/gconf/schemas/evince-thumbnailer-djvu.schemas
${DVI}share/gconf/schemas/evince-thumbnailer-dvi.schemas
share/gconf/schemas/evince.schemas
share/gnome/help/evince/C/evince.xml