aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbland <bland@FreeBSD.org>2005-04-30 05:29:34 +0800
committerbland <bland@FreeBSD.org>2005-04-30 05:29:34 +0800
commitb78a18c643783f8885f21367e29502561fe3eed6 (patch)
tree7ae951479d0e3ac01cbf4045e29eadbccb9f6589
parent79cb1b38d933561129d84868c7d1725495e07213 (diff)
downloadfreebsd-ports-gnome-b78a18c643783f8885f21367e29502561fe3eed6.tar.gz
freebsd-ports-gnome-b78a18c643783f8885f21367e29502561fe3eed6.tar.zst
freebsd-ports-gnome-b78a18c643783f8885f21367e29502561fe3eed6.zip
Add WITH_DJVU knob.
-rw-r--r--graphics/evince/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/graphics/evince/Makefile b/graphics/evince/Makefile
index 673a7f4ba4d0..52673e30e1f7 100644
--- a/graphics/evince/Makefile
+++ b/graphics/evince/Makefile
@@ -30,6 +30,24 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
GCONF_SCHEMAS= evince.schemas evince-thumbnailer.schemas
+.if defined(WITH_DJVU)
+LIB_DEPENDS+= djvulibre.14:${PORTSDIR}/graphics/djvulibre
+CONFIGURE_ARGS+= --enable-djvu
+.else
+CONFIGURE_ARGS+= --disable-djvu
+.endif
+
+pre-everything::
+.if !defined(WITH_DJVU)
+ @${ECHO_MSG}
+ @${ECHO_MSG} "If you want DjVu support included, hit Ctrl-C now and use"
+ @${ECHO_MSG} "\"make WITH_DJVU=yes\""
+ @${ECHO_MSG} "NOTE: GNOME/Gtk+ users may want to avoid QT dependency required"
+ @${ECHO_MSG} "by defaut djvulibre installation. They need to use
+ @${ECHO_MSG} "\"make WITHOUT_X11=yes\" when build that library then."
+ @${ECHO_MSG}
+.endif
+
post-install:
@-update-desktop-database