aboutsummaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2010-01-15 16:06:39 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2010-01-15 16:06:39 +0000
commit20c4eaefa27f36b7f5010f8cd02a1b6db7d31744 (patch)
tree579b9fcf4791e5ea0511598a71d37e9689b00da9 /print
parentd908dcb7e12b7bbd87b8dea5818742248f406d4e (diff)
downloadports-20c4eaefa27f36b7f5010f8cd02a1b6db7d31744.tar.gz
ports-20c4eaefa27f36b7f5010f8cd02a1b6db7d31744.zip
Notes
Diffstat (limited to 'print')
-rw-r--r--print/cups-base/Makefile21
-rw-r--r--print/cups-base/pkg-plist2
2 files changed, 16 insertions, 7 deletions
diff --git a/print/cups-base/Makefile b/print/cups-base/Makefile
index 9402785914b0..04743baf8851 100644
--- a/print/cups-base/Makefile
+++ b/print/cups-base/Makefile
@@ -47,7 +47,8 @@ OPTIONS?= GNUTLS "Build with GNUTLS library" on \
LDAP "Build with LDAP support" off \
DBUS "Build with DBUS support" off \
LIBUSB "Build with USB support" off \
- GHOSTSCRIPT "Build pdftps with GHOSTSCRIPT" on \
+ GHOSTSCRIPT "Build pdftops with GHOSTSCRIPT" on \
+ XPDF "Build pdftops with XPDF" off \
XDG_OPEN "Build with XDG_OPEN as browser" off
CUPS_ETCDIR= ${PREFIX}/etc/cups
@@ -124,12 +125,20 @@ CONFIGURE_ARGS+= --without-php
PLIST_SUB+= PHP="@comment "
.endif
-.if !defined(CUPS_CLIENT) && !defined(CUPS_IMAGE) && defined(WITH_GHOSTSCRIPT)
+.if !defined(CUPS_CLIENT) && !defined(CUPS_IMAGE) && !defined(WITHOUT_GHOSTSCRIPT)
+.if defined(WITH_XPDF)
+IGNORE= "Pick ghostscript or xpdf, not both"
+.endif
USE_GHOSTSCRIPT= yes
-CONFIGURE_ARGS+= --enable-pdftops --with-pdftops=gs
-PLIST_SUB+= WITH_GHOSTSCRIPT=""
+CONFIGURE_ARGS+= --enable-pdftops --with-pdftops=${LOCALBASE}/bin/gs
+PLIST_SUB+= WITH_PDFTOPS=""
+.elif !defined(CUPS_CLIENT) && !defined(CUPS_IMAGE) && defined(WITH_XPDF)
+BUILD_DEPENDS+= pdftops:${PORTSDIR}/graphics/xpdf
+RUN_DEPENDS+= pdftops:${PORTSDIR}/graphics/xpdf
+CONFIGURE_ARGS+= --enable-pdftops --with-pdftops=${LOCALBASE}/bin/pdftops
+PLIST_SUB+= WITH_PDFTOPS=""
.else
-PLIST_SUB+= WITH_GHOSTSCRIPT="@comment "
+PLIST_SUB+= WITH_PDFTOPS="@comment "
.endif
.if !defined(CUPS_CLIENT) && !defined(CUPS_IMAGE) && defined(WITH_PYTHON)
@@ -323,7 +332,7 @@ pre-su-install:
.endif
post-install:
-.if defined(WITH_GHOSTSCRIPT)
+.if !defined(WITHOUT_GHOSTSCRIPT) || defined(WITH_XPDF)
${INSTALL_PROGRAM} ${WRKSRC}/filter/pdftops ${PREFIX}/libexec/cups/filter/
.endif
${INSTALL} -d ${CUPS_ETCDIR}/
diff --git a/print/cups-base/pkg-plist b/print/cups-base/pkg-plist
index 7ba9593f83c5..536083546fec 100644
--- a/print/cups-base/pkg-plist
+++ b/print/cups-base/pkg-plist
@@ -89,7 +89,7 @@ libexec/cups/daemon/cups-lpd
libexec/cups/daemon/cups-polld
libexec/cups/filter/commandtoescpx
libexec/cups/filter/commandtopclx
-%%WITH_GHOSTSCRIPT%%libexec/cups/filter/pdftops
+%%WITH_PDFTOPS%%libexec/cups/filter/pdftops
libexec/cups/filter/rastertoescpx
libexec/cups/filter/rastertopclx
libexec/cups/monitor/bcp