diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2003-08-31 01:17:39 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2003-08-31 01:17:39 +0000 |
commit | b97c845b6d9c9134c012b76f056295bc92251b4f (patch) | |
tree | ecb1a00c279d344d2db6d6c64cd0436bf7666ed5 /print | |
parent | 0a114fd50128f9ba22b880c5e45ac2bba35ad8e7 (diff) |
[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>
Notes
Notes:
svn path=/head/; revision=88144
Diffstat (limited to 'print')
-rw-r--r-- | print/preview-latex/Makefile | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/print/preview-latex/Makefile b/print/preview-latex/Makefile index 7cf5436e630e..9d2bf8f98f4c 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/ |