1996-05-23 10:17:41 +02:00
|
|
|
# New ports collection makefile for: spice
|
|
|
|
# Date created: 26 Mar 96
|
|
|
|
# Whom: Julian Jenkins <kaveman@magna.com.au>
|
|
|
|
#
|
1999-08-25 06:58:03 +02:00
|
|
|
# $FreeBSD$
|
1996-05-23 10:17:41 +02:00
|
|
|
#
|
|
|
|
|
2000-04-09 01:24:42 +02:00
|
|
|
PORTNAME= spice
|
2003-06-30 21:47:18 +02:00
|
|
|
PORTVERSION= 3f5.2
|
2010-02-11 20:40:33 +01:00
|
|
|
PORTREVISION= 7
|
1996-11-16 00:31:01 +01:00
|
|
|
CATEGORIES= cad
|
2006-07-24 14:34:40 +02:00
|
|
|
MASTER_SITES= http://embedded.eecs.berkeley.edu/pubs/downloads/spice/:sources
|
2006-04-05 22:51:27 +02:00
|
|
|
DISTFILES= spice3f5${EXTRACT_SUFX}:sources \
|
2006-07-24 14:34:40 +02:00
|
|
|
cp.ps toc.ps doc.ps
|
2003-07-19 05:13:48 +02:00
|
|
|
DIST_SUBDIR= spice
|
2006-04-05 22:51:27 +02:00
|
|
|
EXTRACT_ONLY= spice3f5${EXTRACT_SUFX}
|
1996-05-23 10:17:41 +02:00
|
|
|
|
2003-07-19 05:13:48 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-21 12:08:38 +01:00
|
|
|
COMMENT= A general-purpose circuit simulation program
|
1997-10-22 09:04:55 +02:00
|
|
|
|
2006-04-05 22:51:27 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}3f5
|
1996-12-23 08:26:19 +01:00
|
|
|
MAN1= sconvert.1 nutmeg.1 spice.1
|
|
|
|
MAN3= mfb.3
|
|
|
|
MAN5= mfbcap.5
|
1999-10-08 21:37:27 +02:00
|
|
|
MLINKS= spice.1 spice3.1
|
2005-11-25 14:41:52 +01:00
|
|
|
MAKEFILE= ${FILESDIR}/Makefile
|
2003-11-20 10:41:17 +01:00
|
|
|
MAKE_ENV+= STRIP_CMD=${STRIP_CMD}
|
2009-11-22 20:49:43 +01:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
1996-05-23 10:17:41 +02:00
|
|
|
|
2004-12-29 19:38:16 +01:00
|
|
|
.ifdef WITHOUT_X11
|
|
|
|
PKGNAMESUFFIX= -without-x11
|
2006-04-05 22:51:27 +02:00
|
|
|
COMMENT= A general-purpose circuit simulation program (non-X11 version)
|
2004-12-29 19:38:16 +01: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 19:56:05 +02:00
|
|
|
USE_XORG= x11 xaw xext xmu xt
|
2004-12-29 19:38:16 +01:00
|
|
|
.endif
|
|
|
|
|
2003-10-29 04:40:13 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2003-11-20 10:41:17 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|/usr/ucb|${LOCALBASE}/bin|' ${WRKSRC}/util/build
|
|
|
|
|
2005-11-25 14:41:52 +01:00
|
|
|
do-configure:
|
|
|
|
@${CP} ${FILESDIR}/FreeBSD ${WRKSRC}/conf/FreeBSD
|
|
|
|
@${CP} ${FILESDIR}/FreeBSD.without_x11 ${WRKSRC}/conf/FreeBSD.without_x11
|
2003-07-19 05:13:48 +02: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 19:56:05 +02:00
|
|
|
s+@X11BASE@+${LOCALBASE}+;' \
|
2004-12-29 19:38:16 +01:00
|
|
|
${WRKSRC}/conf/FreeBSD ${WRKSRC}/conf/FreeBSD.without_x11
|
2003-07-19 05:13:48 +02:00
|
|
|
|
1996-05-23 10:17:41 +02:00
|
|
|
post-install:
|
1998-06-08 11:21:41 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2003-07-19 05:13:48 +02:00
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${CAT} ${DISTDIR}/${DIST_SUBDIR}/*.ps > ${DOCSDIR}/spice3f3.ps
|
|
|
|
${GZIP_CMD} ${DOCSDIR}/*.ps
|
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/*.cir ${EXAMPLESDIR}
|
1997-10-22 09:04:55 +02:00
|
|
|
.endif
|
1996-05-23 10:17:41 +02:00
|
|
|
|
2003-10-25 09:44:34 +02:00
|
|
|
.include <bsd.port.post.mk>
|