summaryrefslogtreecommitdiffstats
path: root/print
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2003-08-31 10:13:35 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2003-08-31 10:13:35 +0800
commit875c9272f4adb6a79ad7987de9ba8dbf47fe45dd (patch)
tree25eb9965b42edfa41e8b4c3281482183cacc9d0a /print
parent2d89478a93555c83566209c847e0ecbd5df5c58e (diff)
downloadmarcuscom-ports-875c9272f4adb6a79ad7987de9ba8dbf47fe45dd.tar
marcuscom-ports-875c9272f4adb6a79ad7987de9ba8dbf47fe45dd.tar.gz
marcuscom-ports-875c9272f4adb6a79ad7987de9ba8dbf47fe45dd.tar.bz2
marcuscom-ports-875c9272f4adb6a79ad7987de9ba8dbf47fe45dd.tar.lz
marcuscom-ports-875c9272f4adb6a79ad7987de9ba8dbf47fe45dd.tar.xz
marcuscom-ports-875c9272f4adb6a79ad7987de9ba8dbf47fe45dd.tar.zst
marcuscom-ports-875c9272f4adb6a79ad7987de9ba8dbf47fe45dd.zip
Merge ghostscript port selection from the FreeBSD ports tree.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@1115 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'print')
-rw-r--r--print/ggv2/Makefile22
1 files changed, 20 insertions, 2 deletions
diff --git a/print/ggv2/Makefile b/print/ggv2/Makefile
index 0c3508e4b..c6beeaa8b 100644
--- a/print/ggv2/Makefile
+++ b/print/ggv2/Makefile
@@ -16,8 +16,18 @@ DIST_SUBDIR= gnome2
MAINTAINER= gnome@FreeBSD.org
COMMENT= GNOME 2 ghostscript viewer
-BUILD_DEPENDS= gs:${PORTSDIR}/print/ghostscript-gnu
-RUN_DEPENDS= gs:${PORTSDIR}/print/ghostscript-gnu
+.if defined(WITH_GHOSTSCRIPT_AFPL)
+.if ${WITH_GHOSTSCRIPT_AFPL} == yes
+GSPORT?= print/ghostscript-afpl
+.else
+GSPORT?= print/ghostscript-gnu
+.endif
+.else
+GSPORT?= print/ghostscript-gnu
+.endif
+
+BUILD_DEPENDS= gs:${PORTSDIR}/${GSPORT}
+RUN_DEPENDS= gs:${PORTSDIR}/${GSPORT}
USE_BZIP2= yes
USE_X_PREFIX= yes
@@ -28,4 +38,12 @@ USE_REINPLACE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
+pre-everything::
+.if !defined(WITH_GHOSTSCRIPT_AFPL) || ${WITH_GHOSTSCRIPT_AFPL} != yes
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} " Define WITH_GHOSTSCRIPT_AFPL=yes to use"
+ @${ECHO_MSG} " AFPL Postscript interpreter instead of GNU one"
+ @${ECHO_MSG} ""
+.endif
+
.include <bsd.port.mk>