diff options
author | Hiroki Sato <hrs@FreeBSD.org> | 2014-08-21 06:03:30 +0000 |
---|---|---|
committer | Hiroki Sato <hrs@FreeBSD.org> | 2014-08-21 06:03:30 +0000 |
commit | e3e0fbf905a494b37e1edc9854bdbf0c06b2f345 (patch) | |
tree | 113ccf444e2c47e831a2bc8aa06e055142baa15d /cad | |
parent | No need to show pkg-message with staging. (diff) |
- Fix MASTER_SITES for PS documents.
- Fix LICENSE. SPICE license is a variant of MIT license, not BSDL, while
the copyright holder is UCB.
- Style clean-ups.
Notes
Notes:
svn path=/head/; revision=365531
Diffstat (limited to 'cad')
-rw-r--r-- | cad/spice/Makefile | 53 | ||||
-rw-r--r-- | cad/spice/files/FreeBSD | 5 | ||||
-rw-r--r-- | cad/spice/files/FreeBSD.without_x11 | 3 | ||||
-rw-r--r-- | cad/spice/files/Makefile | 16 | ||||
-rw-r--r-- | cad/spice/pkg-plist | 23 |
5 files changed, 35 insertions, 65 deletions
diff --git a/cad/spice/Makefile b/cad/spice/Makefile index de05b66ce1d2..7a365a4ed534 100644 --- a/cad/spice/Makefile +++ b/cad/spice/Makefile @@ -3,59 +3,64 @@ PORTNAME= spice PORTVERSION= 3f5.2 -PORTREVISION= 9 +PORTREVISION= 10 CATEGORIES= cad -MASTER_SITES= http://embedded.eecs.berkeley.edu/pubs/downloads/spice/:sources +MASTER_SITES= http://embedded.eecs.berkeley.edu/pubs/downloads/spice/:srcs \ + LOCAL/hrs/${PORTNAME}:docs PKGNAMESUFFIX= ${NOX11SUFX} -DISTFILES= spice3f5${EXTRACT_SUFX}:sources cp.ps toc.ps doc.ps +DISTFILES= spice3f5${EXTRACT_SUFX}:srcs cp.ps:docs toc.ps:docs doc.ps:docs DIST_SUBDIR= spice EXTRACT_ONLY= spice3f5${EXTRACT_SUFX} -MAINTAINER= ports@FreeBSD.org +MAINTAINER= hrs@FreeBSD.org COMMENT= General-purpose circuit simulation program -LICENSE= SPICE -LICENSE_NAME= BSD Copyright +LICENSE= MIT LICENSE_FILE= ${WRKSRC}/COPYRIGHT -LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept WRKSRC= ${WRKDIR}/${PORTNAME}3f5 MAKEFILE= ${FILESDIR}/Makefile MAKE_JOBS_UNSAFE= yes -OPTIONS_DEFINE= DOCS X11 -OPTIONS_DEFAULT=DOCS X11 +PORTDOCS= spice3f3.ps.gz +PORTEXAMPLES= bjtnoise.cir bsim1tst.cir bsim2tst.cir diffpair.cir \ + diodisto.cir ltra_1.cir ltra_2.cir ltra_3.cir \ + mixdisto.cir mos6inv.cir mosamp2.cir mosmem.cir process.mod \ + process.pro pz2.cir pzt.cir rc.cir rca3040.cir resnoise.cir \ + rtlinv.cir schmitt.cir simplepz.cir + +OPTIONS_DEFINE= DOCS EXAMPLES X11 +OPTIONS_DEFAULT=DOCS EXAMPLES X11 .include <bsd.port.options.mk> .if ${PORT_OPTIONS:MX11} USE_XORG= x11 xaw xext xmu xt NOX11SUFX= +CONFIGFILE= ${FILESDIR}/FreeBSD .else NOX11SUFX= -nox11 -MAKE_ARGS+= -DWITHOUT_X11 +CONFIGFILE= ${FILESDIR}/FreeBSD.without_x11 .endif -post-patch: - @${REINPLACE_CMD} -e 's|/usr/ucb|${LOCALBASE}/bin|' \ - ${WRKSRC}/util/build - do-configure: - @${CP} ${FILESDIR}/FreeBSD ${WRKSRC}/conf/FreeBSD - @${CP} ${FILESDIR}/FreeBSD.without_x11 \ - ${WRKSRC}/conf/FreeBSD.without_x11 - @${REINPLACE_CMD} -e 's+@CC@+${CC}+ ; s+@CFLAGS@+${CFLAGS}+ ; \ - s+@X11BASE@+${LOCALBASE}+;' \ - ${WRKSRC}/conf/FreeBSD ${WRKSRC}/conf/FreeBSD.without_x11 + (${CAT} ${CONFIGFILE}; \ + ${ECHO_CMD} "CC= ${CC}"; \ + ${ECHO_CMD} "MAKE= ${MAKE}"; \ + ${ECHO_CMD} "CC_OPT+= ${CFLAGS}"; \ + ${ECHO_CMD} "LOCALBASE=${LOCALBASE}"; \ + ) > ${WRKSRC}/conf/FreeBSD post-install: .if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${STAGEDIR}${DOCSDIR} - ${CAT} ${DISTDIR}/${DIST_SUBDIR}/*.ps > \ - ${STAGEDIR}${DOCSDIR}/spice3f3.ps - ${GZIP_CMD} ${STAGEDIR}${DOCSDIR}/*.ps + ${CAT} ${DISTDIR}/${DIST_SUBDIR}/*.ps | ${GZIP_CMD} > \ + ${STAGEDIR}${DOCSDIR}/${PORTDOCS} .endif +.if ${PORT_OPTIONS:MEXAMPLES} ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/examples/*.cir ${STAGEDIR}${EXAMPLESDIR} + cd ${WRKSRC}/examples && \ + ${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR} +.endif .include <bsd.port.mk> diff --git a/cad/spice/files/FreeBSD b/cad/spice/files/FreeBSD index bebc7251e090..990cd468d47e 100644 --- a/cad/spice/files/FreeBSD +++ b/cad/spice/files/FreeBSD @@ -1,8 +1,5 @@ # FreeBSD config exception file -MAKE = /usr/bin/make INTERFACE_OPTS = -DWANT_MFB -DWANT_X11 -CC = @CC@ -CC_OPT += @CFLAGS@ -LDFLAGS += -L@X11BASE@/lib -lm -ltermcap +LDFLAGS += -L${LOCALBASE}/lib -lm -ltermcap SYS_CFLAGS = -Dbsd diff --git a/cad/spice/files/FreeBSD.without_x11 b/cad/spice/files/FreeBSD.without_x11 index 86d5651c97d8..73e2e28561f6 100644 --- a/cad/spice/files/FreeBSD.without_x11 +++ b/cad/spice/files/FreeBSD.without_x11 @@ -1,9 +1,6 @@ # FreeBSD config exception file (non-x11 version) -MAKE = /usr/bin/make INTERFACE_OPTS = -DWANT_MFB -CC = @CC@ -CC_OPT += @CFLAGS@ LDFLAGS += -lm -ltermcap SYS_CFLAGS = -Dbsd X_DIR = diff --git a/cad/spice/files/Makefile b/cad/spice/files/Makefile index f0c37acfcc1d..839a4d05e48c 100644 --- a/cad/spice/files/Makefile +++ b/cad/spice/files/Makefile @@ -1,22 +1,16 @@ # # $FreeBSD$ # - -.ifdef WITHOUT_X11 -CONFIG= FreeBSD.without_x11 -.else -CONFIG= FreeBSD -.endif - all: - util/build ${CONFIG} default + ${SH} util/build FreeBSD default install: mkdir -p ${DESTDIR}${PREFIX}/share/spice/helpdir \ ${DESTDIR}${PREFIX}/share/spice/scripts - (cd ${CONFIG}/obj/bin && ${BSD_INSTALL_PROGRAM} \ - spice3 nutmeg sconvert help proc2mod multidec \ - ${DESTDIR}${PREFIX}/bin) + cd FreeBSD/obj/bin && \ + ${BSD_INSTALL_PROGRAM} \ + spice3 nutmeg sconvert help proc2mod multidec \ + ${DESTDIR}${PREFIX}/bin ${BSD_INSTALL_DATA} lib/helpdir/spice.txt \ ${DESTDIR}${PREFIX}/share/spice/helpdir ${BSD_INSTALL_SCRIPT} lib/scripts/setplot lib/scripts/spinit \ diff --git a/cad/spice/pkg-plist b/cad/spice/pkg-plist index b28b54fd7953..edc06fb78269 100644 --- a/cad/spice/pkg-plist +++ b/cad/spice/pkg-plist @@ -18,26 +18,3 @@ man/man5/mfbcap.5.gz @dirrm %%DATADIR%%/helpdir @dirrm %%DATADIR%%/scripts @dirrm %%DATADIR%% -%%PORTDOCS%%%%DOCSDIR%%/spice3f3.ps.gz -%%EXAMPLESDIR%%/bjtnoise.cir -%%EXAMPLESDIR%%/bsim1tst.cir -%%EXAMPLESDIR%%/bsim2tst.cir -%%EXAMPLESDIR%%/diffpair.cir -%%EXAMPLESDIR%%/diodisto.cir -%%EXAMPLESDIR%%/ltra_1.cir -%%EXAMPLESDIR%%/ltra_2.cir -%%EXAMPLESDIR%%/ltra_3.cir -%%EXAMPLESDIR%%/mixdisto.cir -%%EXAMPLESDIR%%/mos6inv.cir -%%EXAMPLESDIR%%/mosamp2.cir -%%EXAMPLESDIR%%/mosmem.cir -%%EXAMPLESDIR%%/pz2.cir -%%EXAMPLESDIR%%/pzt.cir -%%EXAMPLESDIR%%/rc.cir -%%EXAMPLESDIR%%/rca3040.cir -%%EXAMPLESDIR%%/resnoise.cir -%%EXAMPLESDIR%%/rtlinv.cir -%%EXAMPLESDIR%%/schmitt.cir -%%EXAMPLESDIR%%/simplepz.cir -@dirrm %%EXAMPLESDIR%% -%%PORTDOCS%%@dirrm %%DOCSDIR%% |