diff options
author | jdp <jdp@FreeBSD.org> | 2004-12-30 02:38:16 +0800 |
---|---|---|
committer | jdp <jdp@FreeBSD.org> | 2004-12-30 02:38:16 +0800 |
commit | f3c53d2c45698af35139f304b6d362c053b6ed99 (patch) | |
tree | 718987d489de7b2888810c3c4eb8023e63b182a2 /cad/spice/Makefile | |
parent | cf340fbcd1a8122422c81006d20e7d1706d405df (diff) | |
download | freebsd-ports-gnome-f3c53d2c45698af35139f304b6d362c053b6ed99.tar.gz freebsd-ports-gnome-f3c53d2c45698af35139f304b6d362c053b6ed99.tar.zst freebsd-ports-gnome-f3c53d2c45698af35139f304b6d362c053b6ed99.zip |
Allow the spice port to be built without X11 support by defining
WITHOUT_X11.
Diffstat (limited to 'cad/spice/Makefile')
-rw-r--r-- | cad/spice/Makefile | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/cad/spice/Makefile b/cad/spice/Makefile index c6057b007321..9fe2f13ee6e1 100644 --- a/cad/spice/Makefile +++ b/cad/spice/Makefile @@ -19,7 +19,6 @@ EXTRACT_ONLY= sp3f4.kit${EXTRACT_SUFX} MAINTAINER= ports@FreeBSD.org COMMENT= A general-purpose circuit simulation program -USE_XLIB= yes USE_REINPLACE= yes NO_WRKSUBDIR= yes MAN1= sconvert.1 nutmeg.1 spice.1 @@ -28,6 +27,14 @@ MAN5= mfbcap.5 MLINKS= spice.1 spice3.1 MAKE_ENV+= STRIP_CMD=${STRIP_CMD} +.ifdef WITHOUT_X11 +COMMENT= A general-purpose circuit simulation program (non-X11 version) +PKGNAMESUFFIX= -without-x11 +MAKE_ARGS+= -DWITHOUT_X11 +.else +USE_XLIB= yes +.endif + .include <bsd.port.pre.mk> post-patch: @@ -35,8 +42,8 @@ post-patch: post-configure: @${REINPLACE_CMD} -e 's+@CC@+${CC}+ ; s+@CFLAGS@+${CFLAGS}+ ; \ - s+@X11BASE@+${X11BASE}+;' \ - ${WRKSRC}/conf/FreeBSD + s+@X11BASE@+${X11BASE}+;' \ + ${WRKSRC}/conf/FreeBSD ${WRKSRC}/conf/FreeBSD.without_x11 post-install: .if !defined(NOPORTDOCS) |