summaryrefslogtreecommitdiffstats
path: root/print
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2003-08-31 01:17:39 +0000
committeredwin <edwin@FreeBSD.org>2003-08-31 01:17:39 +0000
commit6a9d87a31b9ea306304c47efd9c35d62c7bb549a (patch)
tree8e0452f2b0f94ac83972003a08224e49d60c9a46 /print
parent4b522a6238f02428bc4270e016edb8c1d97d4acb (diff)
downloadFreeBSD-ports-6a9d87a31b9ea306304c47efd9c35d62c7bb549a.zip
FreeBSD-ports-6a9d87a31b9ea306304c47efd9c35d62c7bb549a.tar.gz
[PATCH] print/preview-latex: 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/54948 Submitted by: Jens Rehsack <rehsack@liwing.de>
Diffstat (limited to 'print')
-rw-r--r--print/preview-latex/Makefile18
1 files changed, 16 insertions, 2 deletions
diff --git a/print/preview-latex/Makefile b/print/preview-latex/Makefile
index 7cf5436..9d2bf8f 100644
--- a/print/preview-latex/Makefile
+++ b/print/preview-latex/Makefile
@@ -16,10 +16,16 @@ PKGNAMESUFFIX= -${EMACS_PORT_NAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= LaTeX previewer on Emacs
+.if defined(WITH_GHOSTSCRIPT_AFPL) && ${WITH_GHOSTSCRIPT_AFPL} == yes
+GSPORT?= print/ghostscript-afpl
+.else
+GSPORT?= print/ghostscript-gnu
+.endif
+
BUILD_DEPENDS= ${LOCALBASE}/${EMACS_SITE_LISPDIR}/auctex/latex.el:${PORTSDIR}/print/auctex \
- gs:${PORTSDIR}/print/ghostscript-gnu
+ gs:${PORTSDIR}/${GSPORT}
RUN_DEPENDS= ${LOCALBASE}/${EMACS_SITE_LISPDIR}/auctex/latex.el:${PORTSDIR}/print/auctex \
- gs:${PORTSDIR}/print/ghostscript-gnu \
+ gs:${PORTSDIR}/${GSPORT} \
mktexlsr:${PORTSDIR}/print/teTeX
EMACS_PORT_NAME?= emacs21
@@ -34,6 +40,14 @@ CONFIGURE_ARGS+= --disable-8bit-test
DOCS= ChangeLog INSTALL PROBLEMS README latex/README-preview RELEASE TODO
+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-install:
mktexlsr
${INSTALL_DATA} ${WRKSRC}/preview-latex.el ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/preview/
OpenPOWER on IntegriCloud