2013-04-30 20:30:22 +00:00
|
|
|
# Created by: Julian Jenkins <kaveman@magna.com.au>
|
1999-08-25 04:58:03 +00:00
|
|
|
# $FreeBSD$
|
1996-05-23 08:17:41 +00:00
|
|
|
|
2000-04-08 23:24:42 +00:00
|
|
|
PORTNAME= spice
|
2003-06-30 19:47:18 +00:00
|
|
|
PORTVERSION= 3f5.2
|
2013-04-30 20:30:22 +00:00
|
|
|
PORTREVISION= 8
|
1996-11-15 23:31:01 +00:00
|
|
|
CATEGORIES= cad
|
2006-07-24 12:34:40 +00:00
|
|
|
MASTER_SITES= http://embedded.eecs.berkeley.edu/pubs/downloads/spice/:sources
|
2013-04-30 20:30:22 +00:00
|
|
|
PKGNAMESUFFIX= ${NOX11SUFX}
|
2006-04-05 20:51:27 +00:00
|
|
|
DISTFILES= spice3f5${EXTRACT_SUFX}:sources \
|
2006-07-24 12:34:40 +00:00
|
|
|
cp.ps toc.ps doc.ps
|
2003-07-19 03:13:48 +00:00
|
|
|
DIST_SUBDIR= spice
|
2006-04-05 20:51:27 +00:00
|
|
|
EXTRACT_ONLY= spice3f5${EXTRACT_SUFX}
|
1996-05-23 08:17:41 +00:00
|
|
|
|
2013-04-30 20:30:22 +00:00
|
|
|
MAINTAINER= hrs@FreeBSD.org
|
2014-06-09 11:21:52 +00:00
|
|
|
COMMENT= General-purpose circuit simulation program
|
1997-10-22 07:04:55 +00:00
|
|
|
|
2011-07-28 21:58:16 +00:00
|
|
|
LICENSE= BSD
|
|
|
|
|
2006-04-05 20:51:27 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}3f5
|
2013-04-30 20:30:22 +00:00
|
|
|
MAKEFILE= ${FILESDIR}/Makefile
|
|
|
|
MAKE_ENV+= STRIP_CMD=${STRIP_CMD}
|
|
|
|
MAKE_JOBS_UNSAFE= yes
|
1996-12-23 07:26:19 +00:00
|
|
|
MAN1= sconvert.1 nutmeg.1 spice.1
|
|
|
|
MAN3= mfb.3
|
|
|
|
MAN5= mfbcap.5
|
1999-10-08 19:37:27 +00:00
|
|
|
MLINKS= spice.1 spice3.1
|
1996-05-23 08:17:41 +00:00
|
|
|
|
2013-04-30 20:30:22 +00:00
|
|
|
OPTIONS_DEFINE= DOCS X11
|
|
|
|
OPTIONS_DEFAULT=DOCS X11
|
|
|
|
|
2013-09-20 15:58:41 +00:00
|
|
|
NO_STAGE= yes
|
2013-04-30 20:30:22 +00:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MX11}
|
|
|
|
USE_XORG= x11 xaw xext xmu xt
|
|
|
|
NOX11SUFX=
|
|
|
|
.else
|
|
|
|
NOX11SUFX= -nox11
|
2006-04-05 20:51:27 +00:00
|
|
|
COMMENT= A general-purpose circuit simulation program (non-X11 version)
|
2004-12-29 18:38:16 +00:00
|
|
|
MAKE_ARGS+= -DWITHOUT_X11
|
|
|
|
.endif
|
|
|
|
|
2003-11-20 09:41:17 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|/usr/ucb|${LOCALBASE}/bin|' ${WRKSRC}/util/build
|
|
|
|
|
2005-11-25 13:41:52 +00:00
|
|
|
do-configure:
|
|
|
|
@${CP} ${FILESDIR}/FreeBSD ${WRKSRC}/conf/FreeBSD
|
|
|
|
@${CP} ${FILESDIR}/FreeBSD.without_x11 ${WRKSRC}/conf/FreeBSD.without_x11
|
2003-07-19 03:13:48 +00:00
|
|
|
@${REINPLACE_CMD} -e 's+@CC@+${CC}+ ; s+@CFLAGS@+${CFLAGS}+ ; \
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 17:56:05 +00:00
|
|
|
s+@X11BASE@+${LOCALBASE}+;' \
|
2004-12-29 18:38:16 +00:00
|
|
|
${WRKSRC}/conf/FreeBSD ${WRKSRC}/conf/FreeBSD.without_x11
|
2003-07-19 03:13:48 +00:00
|
|
|
|
1996-05-23 08:17:41 +00:00
|
|
|
post-install:
|
2013-04-30 20:30:22 +00:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2003-07-19 03:13:48 +00:00
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${CAT} ${DISTDIR}/${DIST_SUBDIR}/*.ps > ${DOCSDIR}/spice3f3.ps
|
|
|
|
${GZIP_CMD} ${DOCSDIR}/*.ps
|
2011-07-28 21:58:16 +00:00
|
|
|
.endif
|
2003-07-19 03:13:48 +00:00
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/*.cir ${EXAMPLESDIR}
|
1996-05-23 08:17:41 +00:00
|
|
|
|
2013-04-30 20:30:22 +00:00
|
|
|
.include <bsd.port.mk>
|