aboutsummaryrefslogtreecommitdiff
path: root/print/gnome-print
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2003-08-31 02:03:21 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2003-08-31 02:03:21 +0000
commit03672f594857c69a693102badda697eb8a2135b0 (patch)
tree4f083e6de2b75551c8e8c0d79b12c30bfd37ea5d /print/gnome-print
parent629e11066875a4a76948fd4f64236fab13d2601d (diff)
downloadports-03672f594857c69a693102badda697eb8a2135b0.tar.gz
ports-03672f594857c69a693102badda697eb8a2135b0.zip
Notes
Diffstat (limited to 'print/gnome-print')
-rw-r--r--print/gnome-print/Makefile22
1 files changed, 20 insertions, 2 deletions
diff --git a/print/gnome-print/Makefile b/print/gnome-print/Makefile
index 50ebce79d61c..28e5fce1207f 100644
--- a/print/gnome-print/Makefile
+++ b/print/gnome-print/Makefile
@@ -16,9 +16,19 @@ DIST_SUBDIR= gnome
MAINTAINER= gnome@FreeBSD.org
COMMENT= Gnome print support library
+.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= freetype-config:${PORTSDIR}/print/freetype2 # XXX
LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2
-RUN_DEPENDS= gs:${PORTSDIR}/print/ghostscript-gnu
+RUN_DEPENDS= gs:${PORTSDIR}/${GSPORT}
PLIST_SUB= VERSION=${PORTVERSION}
@@ -30,7 +40,15 @@ USE_GNOME= gnomehack gnomeprefix gnomehier gnomelibs gnomecanvas
INSTALLS_SHLIB= yes
USE_LIBTOOL= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
- LIBS="-L${LOCALBASE}/lib"
+ 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
post-install:
@${TOUCH} ${PREFIX}/etc/gnome/fonts/gnome-print-x11.fontmap