Lines 2-62
Link Here
|
2 |
# $FreeBSD: head/cad/jspice3/Makefile 403633 2015-12-12 21:36:03Z bapt $ |
2 |
# $FreeBSD: head/cad/jspice3/Makefile 403633 2015-12-12 21:36:03Z bapt $ |
3 |
|
3 |
|
4 |
PORTNAME= jspice3 |
4 |
PORTNAME= jspice3 |
5 |
PORTVERSION= 2.5.011109 |
5 |
PORTVERSION= 2.5.110615 |
6 |
PORTREVISION= 1 |
|
|
7 |
CATEGORIES= cad |
6 |
CATEGORIES= cad |
8 |
MASTER_SITES= http://www.wrcad.com/ftp/pub/ |
7 |
MASTER_SITES= http://www.wrcad.com/ftp/pub/ |
9 |
DISTNAME= ${PORTNAME}-2.5-011109 |
8 |
DISTNAME= ${PORTNAME}-${PORTVERSION:R}-${PORTVERSION:E} |
10 |
|
9 |
|
11 |
MAINTAINER= ports@FreeBSD.org |
10 |
MAINTAINER= ports@FreeBSD.org |
12 |
COMMENT= Adaptation of the Berkeley Spice3f4 with superconductivity |
11 |
COMMENT= Adaptation of the Berkeley Spice3f4 with superconductivity |
13 |
|
12 |
|
14 |
BROKEN= unfetchable |
13 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R} |
|
|
14 |
|
15 |
|
15 |
|
16 |
CONFLICTS= spice-[0-9]* |
16 |
CONFLICTS= spice-[0-9]* |
17 |
|
17 |
|
18 |
OPTIONS_DEFINE= X11 EXAMPLES |
18 |
OPTIONS_DEFINE= EXAMPLES X11 |
19 |
OPTIONS_DEFAULT= X11 |
19 |
OPTIONS_DEFAULT= X11 |
20 |
WRKSRC= ${WRKDIR}/${PORTNAME}-2.5 |
20 |
OPTIONS_SUB= yes |
21 |
|
21 |
|
22 |
X11_USE= XORG=x11,xaw,xt |
22 |
X11_USE= XORG=x11,xaw,xt |
23 |
|
23 |
|
24 |
pre-configure: |
24 |
post-patch: |
25 |
@${REINPLACE_CMD} -e 's+/usr/local+${PREFIX}+g;s+-O -g+${CFLAGS}+g;' \ |
25 |
@${REINPLACE_CMD} -e \ |
|
|
26 |
'/^prefix/s|=.*|= ${PREFIX}| ; \ |
27 |
/^SPICE_HOST/s|=.*|= localhost| ; \ |
28 |
/^CC_OPT/s|=.*|= ${CFLAGS}|' \ |
26 |
${WRKSRC}/conf/unixconf/mkheader.0 |
29 |
${WRKSRC}/conf/unixconf/mkheader.0 |
27 |
|
30 |
|
28 |
pre-configure-X11-on: |
31 |
post-patch-X11-off: |
29 |
@${REINPLACE_CMD} -e 's+#%%WITH_X%%++g' \ |
32 |
@${REINPLACE_CMD} -e \ |
|
|
33 |
'/$$makeprog depend/s|^|#|' \ |
34 |
${WRKSRC}/build |
35 |
@${REINPLACE_CMD} -e \ |
36 |
's|^LIBX|#LIBX| ; \ |
37 |
s|-DWANT_X11||' \ |
30 |
${WRKSRC}/conf/unixconf/mkheader.0 |
38 |
${WRKSRC}/conf/unixconf/mkheader.0 |
31 |
|
39 |
|
32 |
pre-configure-X11-off: |
|
|
33 |
@${ECHO} "#undef HAVE_X11" >> ${WRKSRC}/src/include/spice.h |
34 |
|
35 |
do-build: |
40 |
do-build: |
36 |
(cd ${WRKSRC};${SETENV} ${MAKE_ENV} ${SH} build) |
41 |
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${SH} build) |
37 |
|
42 |
|
38 |
do-install: |
43 |
do-install: |
39 |
${MKDIR} ${STAGEDIR}${PREFIX}/lib/jspice3/helpdir \ |
44 |
.for i in help jspice3 multidec nutmeg proc2mod spiced xeditor |
40 |
${STAGEDIR}${PREFIX}/lib/jspice3/sced \ |
45 |
(cd ${WRKSRC}/src/bin && ${INSTALL_PROGRAM} ${i} \ |
41 |
${STAGEDIR}${PREFIX}/lib/jspice3/scripts |
46 |
${STAGEDIR}${PREFIX}/bin) |
42 |
(cd ${WRKSRC}/src/bin && ${INSTALL_PROGRAM} jspice3 nutmeg help \ |
47 |
.endfor |
43 |
multidec proc2mod spiced xeditor ${STAGEDIR}${PREFIX}/bin) |
48 |
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/jspice3 |
44 |
${INSTALL_DATA} ${WRKSRC}/lib/mfbcap ${WRKSRC}/lib/news \ |
49 |
(cd ${WRKSRC}/lib && ${INSTALL_DATA} mfbcap news \ |
45 |
${STAGEDIR}${PREFIX}/lib/jspice3 |
50 |
${STAGEDIR}${PREFIX}/lib/jspice3) |
46 |
${INSTALL_DATA} ${WRKSRC}/lib/helpdir/* \ |
51 |
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/jspice3/helpdir |
47 |
${STAGEDIR}${PREFIX}/lib/jspice3/helpdir |
52 |
(cd ${WRKSRC}/lib/helpdir && ${INSTALL_DATA} * \ |
48 |
${INSTALL_DATA} ${WRKSRC}//lib/sced/* \ |
53 |
${STAGEDIR}${PREFIX}/lib/jspice3/helpdir) |
49 |
${STAGEDIR}${PREFIX}/lib/jspice3/sced |
54 |
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/jspice3/sced |
50 |
${INSTALL_DATA} ${WRKSRC}/lib/scripts/* \ |
55 |
(cd ${WRKSRC}/lib/sced && ${INSTALL_DATA} * \ |
51 |
${STAGEDIR}${PREFIX}/lib/jspice3/scripts |
56 |
${STAGEDIR}${PREFIX}/lib/jspice3/sced) |
|
|
57 |
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/jspice3/scripts |
58 |
(cd ${WRKSRC}/lib/scripts && ${INSTALL_DATA} * \ |
59 |
${STAGEDIR}${PREFIX}/lib/jspice3/scripts) |
60 |
|
52 |
do-install-EXAMPLES-on: |
61 |
do-install-EXAMPLES-on: |
53 |
${MKDIR} ${STAGEDIR}${PREFIX}/share/examples/jspice3/cryocmos \ |
62 |
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR} |
54 |
${STAGEDIR}${PREFIX}/share/examples/jspice3/josephson |
63 |
(cd ${WRKSRC}/examples && ${INSTALL_DATA} *.* \ |
55 |
${INSTALL_DATA} ${WRKSRC}/examples/*.* \ |
64 |
${STAGEDIR}${EXAMPLESDIR}) |
56 |
${STAGEDIR}${PREFIX}/share/examples/jspice3 |
65 |
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/cryocmos |
57 |
${INSTALL_DATA} ${WRKSRC}/examples/cryocmos/* \ |
66 |
(cd ${WRKSRC}/examples/cryocmos && ${INSTALL_DATA} * \ |
58 |
${STAGEDIR}${PREFIX}/share/examples/jspice3/cryocmos |
67 |
${STAGEDIR}${EXAMPLESDIR}/cryocmos) |
59 |
${INSTALL_DATA} ${WRKSRC}/examples/josephson/* \ |
68 |
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/josephson |
60 |
${STAGEDIR}${PREFIX}/share/examples/jspice3/josephson |
69 |
(cd ${WRKSRC}/examples/josephson && ${INSTALL_DATA} * \ |
|
|
70 |
${STAGEDIR}${EXAMPLESDIR}/josephson) |
61 |
|
71 |
|
62 |
.include <bsd.port.mk> |
72 |
.include <bsd.port.mk> |