2002-10-24 19:05:53 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.18 2002/10/24 23:05:53 naddy Exp $
|
2001-04-08 19:32:44 -04:00
|
|
|
|
|
|
|
COMMENT= "Simulation Program for Integrated Circuit Electronics"
|
1998-06-03 19:02:23 -04:00
|
|
|
|
|
|
|
DISTNAME= sp3f4.kit
|
|
|
|
PKGNAME= spice-3f5
|
|
|
|
CATEGORIES= cad
|
|
|
|
|
2000-03-12 13:02:32 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= "no fee"
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= "no fee"
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
1998-06-03 19:02:23 -04:00
|
|
|
MASTER_SITES= ftp://ic.eecs.berkeley.edu/pub/Spice3/
|
|
|
|
DISTFILES= sp3f4.kit.tar.Z sp3f4.patch.tar.Z
|
|
|
|
|
2002-10-24 19:05:53 -04:00
|
|
|
USE_X11= Yes
|
2000-02-10 18:14:27 -05:00
|
|
|
WRKDIST= ${WRKDIR}
|
2002-07-17 18:40:00 -04:00
|
|
|
MAKE_ENV= MAKE_PROGRAM='${MAKE_PROGRAM}' CC="${CC}"
|
1998-06-03 19:02:23 -04:00
|
|
|
|
2002-10-24 19:05:53 -04:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
1998-06-03 19:02:23 -04:00
|
|
|
# Apply the patches that make this 3f5
|
|
|
|
#
|
|
|
|
pre-patch:
|
|
|
|
@${ECHO_MSG} "===> Applying distribution patches";
|
|
|
|
.if defined(PATCH_DEBUG)
|
2001-02-26 06:52:17 -05:00
|
|
|
@cd ${WRKDIR}/3f4patches; \
|
1998-06-03 19:02:23 -04:00
|
|
|
${PATCH} -d ${WRKSRC}/src/lib/fte -E -p1 < grid.patch; \
|
|
|
|
${PATCH} -d ${WRKSRC}/src/lib/fte -E -p1 < newcoms.patch; \
|
2001-02-26 06:52:17 -05:00
|
|
|
${PATCH} -d ${WRKSRC}/src/lib/sparse -E -p1 < spsmp.patch
|
2001-08-02 19:54:56 -04:00
|
|
|
@find ${WRKSRC}/ -name \*.orig -exec rm -f {} \;
|
1998-06-03 19:02:23 -04:00
|
|
|
.else
|
2001-02-26 06:52:17 -05:00
|
|
|
@cd ${WRKDIR}/3f4patches; \
|
1998-06-03 19:02:23 -04:00
|
|
|
${PATCH} -d ${WRKSRC}/src/lib/fte -N -s -E -p1 < grid.patch; \
|
|
|
|
${PATCH} -d ${WRKSRC}/src/lib/fte -N -s -E -p1 < newcoms.patch; \
|
2001-02-26 06:52:17 -05:00
|
|
|
${PATCH} -d ${WRKSRC}/src/lib/sparse -N -s -E -p1 < spsmp.patch
|
2001-08-02 19:54:56 -04:00
|
|
|
@find ${WRKSRC}/ -name \*.orig -exec rm -f {} \;
|
1998-06-03 19:02:23 -04:00
|
|
|
.endif
|
|
|
|
|
2001-02-26 06:52:17 -05:00
|
|
|
do-configure:
|
|
|
|
@cp ${FILESDIR}/Makefile ${WRKSRC}
|
|
|
|
@cp ${FILESDIR}/OpenBSD ${WRKSRC}/conf
|
|
|
|
|
1998-06-03 19:02:23 -04:00
|
|
|
.include <bsd.port.mk>
|