1996-05-23 08:17:41 +00:00
|
|
|
# New ports collection makefile for: spice
|
|
|
|
# Date created: 26 Mar 96
|
|
|
|
# Whom: 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
|
2010-02-11 19:40:33 +00:00
|
|
|
PORTREVISION= 7
|
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
|
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
|
|
|
|
2003-07-19 03:13:48 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-21 11:08:38 +00:00
|
|
|
COMMENT= A 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
|
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
|
2005-11-25 13:41:52 +00:00
|
|
|
MAKEFILE= ${FILESDIR}/Makefile
|
2003-11-20 09:41:17 +00:00
|
|
|
MAKE_ENV+= STRIP_CMD=${STRIP_CMD}
|
2009-11-22 19:49:43 +00:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
1996-05-23 08:17:41 +00:00
|
|
|
|
2004-12-29 18:38:16 +00:00
|
|
|
.ifdef WITHOUT_X11
|
|
|
|
PKGNAMESUFFIX= -without-x11
|
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
|
|
|
|
.else
|
- 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
|
|
|
USE_XORG= x11 xaw xext xmu xt
|
2004-12-29 18:38:16 +00:00
|
|
|
.endif
|
|
|
|
|
2003-10-29 03:40:13 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
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:
|
1998-06-08 09:21:41 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
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
|
|
|
|
2003-10-25 07:44:34 +00:00
|
|
|
.include <bsd.port.post.mk>
|