From b97c845b6d9c9134c012b76f056295bc92251b4f Mon Sep 17 00:00:00 2001 From: Edwin Groothuis Date: Sun, 31 Aug 2003 01:17:39 +0000 Subject: [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 --- print/preview-latex/Makefile | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'print/preview-latex') 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/ -- cgit v1.2.3