From 03672f594857c69a693102badda697eb8a2135b0 Mon Sep 17 00:00:00 2001 From: Joe Marcus Clarke Date: Sun, 31 Aug 2003 02:03:21 +0000 Subject: [PATCH] Allow for selection of ghostscript port. PR: 54943 Submitted by: Jens Rehsack (based on) --- print/gnome-print/Makefile | 22 ++++++++++++++++++++-- print/gnomeprint/Makefile | 22 ++++++++++++++++++++-- 2 files changed, 40 insertions(+), 4 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 diff --git a/print/gnomeprint/Makefile b/print/gnomeprint/Makefile index 50ebce79d61c..28e5fce1207f 100644 --- a/print/gnomeprint/Makefile +++ b/print/gnomeprint/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