mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
[PATCH] x11/dgs: enable choose of ghostscript interpreter
This patch allows the admin of the machine to choose either print/ghostscript-gnu or print/ghostscript-afp1 PR: ports/54956 Submitted by: Jens Rehsack <rehsack@liwing.de>
This commit is contained in:
parent
7cd52c6f6c
commit
af07884dbd
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=88150
@ -14,10 +14,16 @@ MASTER_SITE_SUBDIR= dgs
|
||||
MAINTAINER= nakai@FreeBSD.org
|
||||
COMMENT= A display ghostscript system
|
||||
|
||||
.if defined(WITH_GHOSTSCRIPT_AFPL) && ${WITH_GHOSTSCRIPT_AFPL} == yes
|
||||
GSPORT?= print/ghostscript-afpl
|
||||
.else
|
||||
GSPORT?= print/ghostscript-gnu
|
||||
.endif
|
||||
|
||||
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
|
||||
png.5:${PORTSDIR}/graphics/png \
|
||||
tiff.4:${PORTSDIR}/graphics/tiff
|
||||
RUN_DEPENDS= gs:${PORTSDIR}/print/ghostscript-gnu
|
||||
RUN_DEPENDS= gs:${PORTSDIR}/${GSPORT}
|
||||
|
||||
USE_X_PREFIX= yes
|
||||
USE_GMAKE= yes
|
||||
@ -32,6 +38,14 @@ MANN= dpsexec.man makepsres.man xepsf.man
|
||||
.error You have `USE_DGS' variable defined either in environment or in make(1) arguments. Please undefine and try again.
|
||||
.endif
|
||||
|
||||
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
|
||||
|
||||
pre-patch:
|
||||
@find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
|
||||
's|manm|mann|g'
|
||||
|
Loading…
Reference in New Issue
Block a user