aboutsummaryrefslogtreecommitdiffstats
path: root/cad
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2003-08-31 08:19:59 +0800
committeredwin <edwin@FreeBSD.org>2003-08-31 08:19:59 +0800
commit7ae9515b8a2d1dde0cd63d5c0ed91a56d48e4f5c (patch)
tree70d6353ee77700722ccb822cfda6df9ed4160bed /cad
parent9bf963c899b5ae763257de166c5ea066d7d0db1b (diff)
downloadfreebsd-ports-gnome-7ae9515b8a2d1dde0cd63d5c0ed91a56d48e4f5c.tar.gz
freebsd-ports-gnome-7ae9515b8a2d1dde0cd63d5c0ed91a56d48e4f5c.tar.zst
freebsd-ports-gnome-7ae9515b8a2d1dde0cd63d5c0ed91a56d48e4f5c.zip
[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 <rehsack@liwing.de>
Diffstat (limited to 'cad')
-rw-r--r--cad/xcircuit/Makefile30
1 files changed, 28 insertions, 2 deletions
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