Annotation of pkgsrc/cad/spice/Makefile, Revision 1.30
1.30 ! tv 1: # $NetBSD: Makefile,v 1.29 2005/03/24 21:12:51 wiz Exp $
1.1 hubertf 2:
3: DISTNAME= sp3f4.kit
1.10 dmcmahil 4: PKGNAME= spice-3f5.1
1.28 dmcmahil 5: PKGREVISION= 2
1.1 hubertf 6: CATEGORIES= cad
7: MASTER_SITES= ftp://ic.eecs.berkeley.edu/pub/Spice3/
8: EXTRACT_SUFX= .tar.Z
9:
1.23 grant 10: MAINTAINER= dmcmahill@NetBSD.org
1.14 wiz 11: HOMEPAGE= http://bwrc.eecs.berkeley.edu/Classes/IcBook/SPICE/
1.17 wiz 12: COMMENT= General-purpose circuit simulation program
1.1 hubertf 13:
1.20 jlam 14:
1.24 agc 15: WRKSRC= ${WRKDIR}
1.21 jlam 16: USE_X11= # defined
1.28 dmcmahil 17: # GPL license used by GNU readline is not compatible
18: # with 4 clause BSD license used by spice.
19: #BUILDLINK_DEPENDS.readline= readline>=4.0
20: #USE_GNU_READLINE= uses rl_* interface
1.10 dmcmahil 21:
1.1 hubertf 22: # documentation in ftp://ic.eecs.berkeley.edu/pub/Spice3/um.3f3.ps
23:
1.10 dmcmahil 24: # These are included as patch-ae
1.1 hubertf 25: #PATCH_SITES= ftp://ilpsoft.eecs.berkeley.edu/pub/SPICE3F5/
26: #PATCHFILES= grid.patch newcoms.patch spsmp.patch
1.16 dmcmahil 27:
1.20 jlam 28: post-extract:
29: ${CP} ${FILESDIR}/NetBSD ${WRKSRC}/conf
30:
1.2 hubertf 31: do-configure:
32: ${RM} -f ${WRKSRC}/makefile
1.20 jlam 33: cd ${WRKSRC}/conf; for file in NetBSD defaults; do \
34: ${SED} -e "s|@MAKE_PROGRAM@|${MAKE_PROGRAM}|g" \
35: -e "s|@CFLAGS@|${CFLAGS}|g" \
36: -e "s|@LDFLAGS@|${LDFLAGS}|g" \
37: -e 's|@X11BASE@|${X11BASE}|g' \
38: -e "s|@WRKSRC@|${WRKSRC}|g" \
39: -e 's|@PREFIX@|${PREFIX}|g' \
40: $${file} > $${file}.new; \
41: ${MV} -f $${file}.new $${file}; \
42: done
1.2 hubertf 43:
44: do-build:
1.21 jlam 45: cd ${WRKSRC}; util/build NetBSD default
1.2 hubertf 46:
47: do-install:
1.21 jlam 48: cd ${WRKSRC}; util/build NetBSD install
49: ${CHMOD} a+rx ${PREFIX}/bin/spice3 ${PREFIX}/bin/nutmeg \
50: ${PREFIX}/bin/sconvert ${PREFIX}/bin/help \
51: ${PREFIX}/bin/proc2mod ${PREFIX}/bin/multidec
52: strip ${PREFIX}/bin/spice3 ${PREFIX}/bin/nutmeg \
53: ${PREFIX}/bin/sconvert ${PREFIX}/bin/help \
54: ${PREFIX}/bin/proc2mod ${PREFIX}/bin/multidec
1.11 wiz 55: ${CHMOD} -R a+rX ${PREFIX}/share/spice3
1.2 hubertf 56: ${INSTALL_MAN} ${WRKSRC}/man/man5/mfbcap.5 ${PREFIX}/man/man5/mfbcap.5
57: ${INSTALL_MAN} ${WRKSRC}/man/man1/sconvert.1 ${PREFIX}/man/man1/sconvert.1
58: ${INSTALL_MAN} ${WRKSRC}/man/man1/nutmeg.1 ${PREFIX}/man/man1/nutmeg.1
59: ${INSTALL_MAN} ${WRKSRC}/man/man1/spice.1 ${PREFIX}/man/man1/spice.1
60: ${INSTALL_MAN} ${WRKSRC}/man/man3/mfb.3 ${PREFIX}/man/man3/mfb.3
61:
1.1 hubertf 62: post-install:
1.10 dmcmahil 63: ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/spice3
1.1 hubertf 64: ${INSTALL_DATA} ${WRKSRC}/examples/*.cir ${PREFIX}/share/examples/spice3
65:
1.28 dmcmahil 66: #.include "../../devel/readline/buildlink3.mk"
1.2 hubertf 67: .include "../../mk/bsd.pkg.mk"
CVSweb <webmaster@jp.NetBSD.org>