From 2c17bf19420da22e2915076062f943c46dca87a0 Mon Sep 17 00:00:00 2001 From: Edwin Groothuis Date: Sun, 31 Aug 2003 00:19:59 +0000 Subject: [PATCH] cad/xcircuit: 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/54918 Submitted by: Jens Rehsack --- cad/xcircuit/Makefile | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) (limited to 'cad/xcircuit') diff --git a/cad/xcircuit/Makefile b/cad/xcircuit/Makefile index 5655d7bc5442..5b9b110726a9 100644 --- a/cad/xcircuit/Makefile +++ b/cad/xcircuit/Makefile @@ -15,7 +15,13 @@ MASTER_SITES= http://xcircuit.ece.jhu.edu/archive/ MAINTAINER= ports@FreeBSD.org COMMENT= An X11 drawing program [especially for circuit schematics] -RUN_DEPENDS= gs:${PORTSDIR}/print/ghostscript-gnu +.if defined(WITH_GHOSTSCRIPT_AFPL) && ${WITH_GHOSTSCRIPT_AFPL} == yes +GSPORT?= print/ghostscript-afpl +.else +GSPORT?= print/ghostscript-gnu +.endif + +RUN_DEPENDS= gs:${PORTSDIR}/${GSPORT} USE_BZIP2= yes USE_X_PREFIX= yes @@ -37,7 +43,7 @@ CONFIGURE_ARGS= --with-tcl=${LOCALBASE}/lib/tcl8.4 \ --with-tk=${LOCALBASE}/lib/tk8.4 ALL_TARGET= tcl INSTALL_TARGET= install-tcl -PLIST_SUB+= PYTHON="@comment " NOPYTHON="" TCLTK="" NOTCLTK="@comment " +PLIST_SUB+= PYTHON="@comment " NOPYTHON="" TCLTK="" NOTCLTK="@comment " CFLAGS+= -I${LOCALBASE}/include/tcl8.4 -I${LOCALBASE}/include/tk8.4 \ -I${X11BASE}/include .else @@ -54,6 +60,26 @@ PLIST_SUB+= PYTHON="@comment " NOPYTHON="" TCLTK="@comment " NOTCLTK="" .endif .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 +.if !defined(WITH_TCLTK) + @${ECHO} "" + @${ECHO} " Define WITH_TCLTK for Tcl/Tk support" + @${ECHO} " (prevents python support)" + @${ECHO} "" +.endif +.if !defined(WITH_PYTHON) + @${ECHO} "" + @${ECHO} " Or define WITH_PYTHON for Python support" + @${ECHO} " (only available without WITH_TCLTK defined)" + @${ECHO} "" +.endif + post-patch: @${REINPLACE_CMD} -e 's|TCL_LIB_NAME=.*$$|TCL_LIB_NAME="tcl84"|g ; \ s|TK_LIB_NAME=.*$$|TK_LIB_NAME="tk84"|g' ${WRKSRC}/configure -- cgit v1.2.3