summaryrefslogtreecommitdiffstats
path: root/graphics/evince/Makefile
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2005-08-17 01:22:38 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2005-08-17 01:22:38 +0800
commitac54ab86b86d8b1e494fa8bae5941e802c0e2349 (patch)
tree68d2fc702670fc7516004743b50cd803132e9b62 /graphics/evince/Makefile
parent383b650352848eaacb153415cd9869a99cfb396e (diff)
downloadmarcuscom-ports-ac54ab86b86d8b1e494fa8bae5941e802c0e2349.tar
marcuscom-ports-ac54ab86b86d8b1e494fa8bae5941e802c0e2349.tar.gz
marcuscom-ports-ac54ab86b86d8b1e494fa8bae5941e802c0e2349.tar.bz2
marcuscom-ports-ac54ab86b86d8b1e494fa8bae5941e802c0e2349.tar.lz
marcuscom-ports-ac54ab86b86d8b1e494fa8bae5941e802c0e2349.tar.xz
marcuscom-ports-ac54ab86b86d8b1e494fa8bae5941e802c0e2349.tar.zst
marcuscom-ports-ac54ab86b86d8b1e494fa8bae5941e802c0e2349.zip
I misread, D-BUS is not required, so make it optional (on when package
building). git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@4509 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'graphics/evince/Makefile')
-rw-r--r--graphics/evince/Makefile22
1 files changed, 19 insertions, 3 deletions
diff --git a/graphics/evince/Makefile b/graphics/evince/Makefile
index b38367682..06bfa9ab4 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.19 2005/08/16 15:25:01 ahze Exp $
+# $MCom: ports/graphics/evince/Makefile,v 1.20 2005/08/16 17:16:41 marcus Exp $
#
PORTNAME= evince
@@ -16,8 +16,7 @@ MASTER_SITE_SUBDIR= sources/${PORTNAME}/0.3
MAINTAINER= gnome@FreeBSD.org
COMMENT= GNOME 2 multi-format document viewer
-LIB_DEPENDS= poppler.0:${PORTSDIR}/graphics/poppler \
- dbus-glib-1.1:${PORTSDIR}/devel/dbus
+LIB_DEPENDS= poppler.0:${PORTSDIR}/graphics/poppler
USE_BZIP2= yes
USE_AUTOTOOLS= libtool:15
@@ -34,6 +33,14 @@ GCONF_SCHEMAS= evince.schemas evince-thumbnailer.schemas
.include <bsd.port.pre.mk>
+.if defined(PACKAGE_BUILDING) || defined(PARALLEL_PACKAGE_BUILD)
+WITH_DBUS= yes
+.endif
+
+.if exists(${LOCALBASE}/lib/libdbus-glib-1.so)
+WITH_DBUS= yes
+.endif
+
.if !defined(WITHOUT_NAUTILUS)
USE_GNOME+= nautilus2
CONFIGURE_ARGS+= --enable-nautilus
@@ -51,6 +58,10 @@ GCONF_SCHEMAS+= evince-thumbnailer-djvu.schemas
CONFIGURE_ARGS+= --disable-djvu
.endif
+.if defined(WITH_DBUS)
+LIB_DEPENDS+= dbus-glib-1.1:${PORTSDIR}/devel/dbus
+.endif
+
pre-everything::
.if !defined(WITHOUT_NAUTILUS)
@${ECHO_MSG}
@@ -66,6 +77,11 @@ pre-everything::
@${ECHO_MSG} "\"make WITHOUT_X11=yes\" when build that library then."
@${ECHO_MSG}
.endif
+.if !defined(WITH_DBUS)
+ @${ECHO_MSG} "If you want D-BUS support included, hit Ctrl-C now and"
+ @${ECHO_MSG} "use \"make WITH_DBUS=yes\""
+ @${ECHO_MSG}
+.endif
post-install:
@-update-desktop-database