diff options
Diffstat (limited to 'graphics/evince/Makefile')
-rw-r--r-- | graphics/evince/Makefile | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/graphics/evince/Makefile b/graphics/evince/Makefile index 8b9106163..5960d05eb 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.31 2005/09/04 06:59:36 mezz Exp $ +# $MCom: ports/graphics/evince/Makefile,v 1.32 2005/09/05 06:31:17 ahze Exp $ # PORTNAME= evince @@ -67,8 +67,14 @@ CONFIGURE_ARGS+= --disable-nautilus PLIST_SUB+= NAUTILUS="@comment " .endif +.if exists(${X11BASE}/bin/djview) +DJVU_DIR?= # empty +.else +DJVU_DIR?= -nox11 +.endif + .if defined(WITH_DJVU) -LIB_DEPENDS+= djvulibre.14:${PORTSDIR}/graphics/djvulibre +LIB_DEPENDS+= djvulibre.14:${PORTSDIR}/graphics/djvulibre${DJVU_DIR} CONFIGURE_ARGS+= --enable-djvu GCONF_SCHEMAS+= evince-thumbnailer-djvu.schemas .else @@ -79,15 +85,6 @@ CONFIGURE_ARGS+= --disable-djvu LIB_DEPENDS+= dbus-glib-1.1:${PORTSDIR}/devel/dbus .endif -pre-everything:: -.if !defined(WITH_DJVU) - @${ECHO_MSG} - @${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-patch: @${REINPLACE_CMD} -e 's|-lt1lib|-lt1 -lm|' \ ${WRKSRC}/configure \ |