diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2003-08-31 01:30:55 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2003-08-31 01:30:55 +0000 |
commit | 629e11066875a4a76948fd4f64236fab13d2601d (patch) | |
tree | 63ccddde7886e7b0ba53b8eae36e83fb5b9b683b /print/scribus-devel | |
parent | [PATCH] mail/courier: enable choose of ghostscript interpreter (diff) |
[PATCH] print/scribus: enable choose of ghostscript interpreter
This patch allows the admin of the machine to choose either
print/ghostscript-gnu or print/ghostscript-afpl
PR: ports/54961
Submitted by: Jens Rehsack <rehsack@liwing.de>
Notes
Notes:
svn path=/head/; revision=88152
Diffstat (limited to 'print/scribus-devel')
-rw-r--r-- | print/scribus-devel/Makefile | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/print/scribus-devel/Makefile b/print/scribus-devel/Makefile index f3baa21f9070..179829416d02 100644 --- a/print/scribus-devel/Makefile +++ b/print/scribus-devel/Makefile @@ -15,8 +15,14 @@ MASTER_SITES= http://web2.altmuehlnet.de/fschmid/ \ MAINTAINER= ports@FreeBSD.org COMMENT= A comprehensive desktop publishing program +.if defined(WITH_GHOSTSCRIPT_AFP1) && ${WITH_GHOSTSCRIPT_AFP1} == yes +GSPORT?= print/ghostscript-afpl +.else +GSPORT?= print/ghostscript-gnu +.endif + LIB_DEPENDS= cups.2:${PORTSDIR}/print/cups-base -RUN_DEPENDS= gs:${PORTSDIR}/print/ghostscript-gnu +RUN_DEPENDS= gs:${PORTSDIR}/${GSPORT} USE_QT_VER= 3 USE_REINPLACE= yes @@ -29,6 +35,14 @@ LDCONFIG_DIRS= %%PREFIX%%/lib/scribus/libs \ QTCFGLIBS+= -lm +pre-fetch: +.if !defined(WITH_GHOSTSCRIPT_AFPL) || ${WITH_GHOSTSCRIPT_AFPL} != yes + @${ECHO} "" + @${ECHO} " Define WITH_GHOSTSCRIPT_AFPL=yes to use" + @${ECHO} " AFPL Postscript interpreter instead of GNU one" + @${ECHO} "" +.endif + post-patch: @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure |