diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2003-08-31 00:19:59 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2003-08-31 00:19:59 +0000 |
commit | 2c17bf19420da22e2915076062f943c46dca87a0 (patch) | |
tree | 3397bd34aee2e949d4a974709c555db6ecbaeb35 /cad/xcircuit | |
parent | Fix runtime on HEAD by pre-loading libc_r.so. (diff) |
[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>
Notes
Notes:
svn path=/head/; revision=88119
Diffstat (limited to 'cad/xcircuit')
-rw-r--r-- | cad/xcircuit/Makefile | 30 |
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 |