summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2005-08-29 12:37:58 +0800
committerahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2005-08-29 12:37:58 +0800
commit5a847599286afb022c53edc2193eadac969b6309 (patch)
tree90d6bbd7b9ec14567fa5cc3fd197698566fd188e /graphics
parent1d5fcf834d0c14eb5e4fd2749793075723a3c3c8 (diff)
downloadmarcuscom-ports-5a847599286afb022c53edc2193eadac969b6309.tar
marcuscom-ports-5a847599286afb022c53edc2193eadac969b6309.tar.gz
marcuscom-ports-5a847599286afb022c53edc2193eadac969b6309.tar.bz2
marcuscom-ports-5a847599286afb022c53edc2193eadac969b6309.tar.lz
marcuscom-ports-5a847599286afb022c53edc2193eadac969b6309.tar.xz
marcuscom-ports-5a847599286afb022c53edc2193eadac969b6309.tar.zst
marcuscom-ports-5a847599286afb022c53edc2193eadac969b6309.zip
- Add 2 new knobs
o WITH_DVI -- Dvi viewer via teTeX o WITH_T1LIB -- type1 fonts in the dvi viewer - Combine a few things git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@4656 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'graphics')
-rw-r--r--graphics/evince/Makefile31
1 files changed, 26 insertions, 5 deletions
diff --git a/graphics/evince/Makefile b/graphics/evince/Makefile
index c5e8eece9..aa0a5762e 100644
--- a/graphics/evince/Makefile
+++ b/graphics/evince/Makefile
@@ -3,7 +3,7 @@
# Whom: Adam Weinberger <adamw@FreeBSD.org>
#
# $FreeBSD$
-# $MCom: ports/graphics/evince/Makefile,v 1.26 2005/08/21 20:36:31 marcus Exp $
+# $MCom: ports/graphics/evince/Makefile,v 1.27 2005/08/26 06:26:47 marcus Exp $
#
PORTNAME= evince
@@ -32,12 +32,22 @@ GCONF_SCHEMAS= evince.schemas evince-thumbnailer.schemas
.include <bsd.port.pre.mk>
-.if defined(PACKAGE_BUILDING) || defined(PARALLEL_PACKAGE_BUILD)
+.if defined(PACKAGE_BUILDING) || defined(PARALLEL_PACKAGE_BUILD) \
+ || exists(${LOCALBASE}/lib/libdbus-glib-1.so)
WITH_DBUS= yes
.endif
-.if exists(${LOCALBASE}/lib/libdbus-glib-1.so)
-WITH_DBUS= yes
+.if defined(WITH_DVI) || defined(WITH_T1LIB)
+BUILD_DEPENDS+= tex:${PORTSDIR}/print/teTeX-base
+RUN_DEPENDS+= tex:${PORTSDIR}/print/teTeX-base
+
+CONFIGURE_ARGS+= --enable-dvi
+GCONF_SCHEMAS+= evince-thumbnailer-dvi.schemas
+. if defined(WITH_T1LIB)
+LIB_DEPENDS+= t1.5:${PORTSDIR}/devel/t1lib
+
+CONFIGURE_ARGS+= --enable-t1lib
+. endif
.endif
.if !defined(WITHOUT_NAUTILUS)
@@ -62,9 +72,20 @@ LIB_DEPENDS+= dbus-glib-1.1:${PORTSDIR}/devel/dbus
.endif
pre-everything::
+.if !defined(WITH_DVI) && !defined(WITH_T1LIB)
+ @${ECHO_MSG}
+ @${ECHO_MSG} "If you want dvi viewer hit Ctrl-C now and"
+ @${ECHO_MSG} "use \"make WITH_DVI=yes\""
+. if !defined(WITH_T1LIB)
+ @${ECHO_MSG}
+ @${ECHO_MSG} "If you want t1lib for type1 fonts in the dvi viewer"
+ @${ECHO_MSG} "hit Ctrl-C now and"
+ @${ECHO_MSG} "use \"make WITH_T1LIB=yes\""
+. endif
+.endif
.if !defined(WITHOUT_NAUTILUS)
@${ECHO_MSG}
- @${ECHO_MSG} "If you don't want Nautilus plugin hit Ctrl-C now and
+ @${ECHO_MSG} "If you don't want Nautilus plugin hit Ctrl-C now and"
@${ECHO_MSG} "use \"make WITHOUT_NAUTILUS=yes\""
@${ECHO_MSG}
.endif