Date: Mon, 25 Aug 2014 15:51:30 +0000 (UTC) From: Hiroki Sato <hrs@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r366089 - in head/cad/spice: . files Message-ID: <201408251551.s7PFpUvm073910@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hrs Date: Mon Aug 25 15:51:30 2014 New Revision: 366089 URL: http://svnweb.freebsd.org/changeset/ports/366089 QAT: https://qat.redports.org/buildarchive/r366089/ Log: - Add HiSIM2 support. - Add LICENSE for DEV_BSIM3, DEV_BSIM3, and DEV_HISIM2 options. - Simplify do-configure. Added: head/cad/spice/files/hisim2-license.txt (contents, props changed) Modified: head/cad/spice/Makefile head/cad/spice/distinfo head/cad/spice/files/Makefile Modified: head/cad/spice/Makefile ============================================================================== --- head/cad/spice/Makefile Mon Aug 25 15:35:33 2014 (r366088) +++ head/cad/spice/Makefile Mon Aug 25 15:51:30 2014 (r366089) @@ -8,10 +8,12 @@ CATEGORIES= cad MASTER_SITES= http://embedded.eecs.berkeley.edu/pubs/downloads/spice/:srcs \ http://www-device.eecs.berkeley.edu/~bsim/Files/BSIM3/ftpv330/src/:bsim3 \ http://www-device.eecs.berkeley.edu/~bsim/Files/BSIM4/BSIM480/:bsim4 \ + http://home.hiroshima-u.ac.jp/usdl/HiSIM2/:hisim2 \ LOCAL/hrs/${PORTNAME}:docs DISTFILES= spice3f5${EXTRACT_SUFX}:srcs \ BSIM3v330.tar.Z:bsim3 \ BSIM480_Code.zip:bsim4 \ + HiSIM_2.8.0_Release_20140605.zip:hisim2 \ cp.ps:docs toc.ps:docs doc.ps:docs DIST_SUBDIR= spice EXTRACT_ONLY= spice3f5${EXTRACT_SUFX} @@ -26,7 +28,7 @@ EXTRACT_DEPENDS= ${LOCALBASE}/bin/unzip: WRKSRC= ${WRKDIR}/${PORTNAME}3f5 MAKEFILE= ${FILESDIR}/Makefile -CONFIGURE_ENV= CONFIGFILE="${WRKSRC}/conf/FreeBSD" \ +CONFIGURE_ENV= CONFIGFILE="${CONFIGFILE}" \ LOCALBASE="${LOCALBASE}" PORTDOCS= spice3f3.ps.gz @@ -36,18 +38,51 @@ PORTEXAMPLES= bjtnoise.cir bsim1tst.cir process.pro pz2.cir pzt.cir rc.cir rca3040.cir resnoise.cir \ rtlinv.cir schmitt.cir simplepz.cir -OPTIONS_DEFINE= DOCS EXAMPLES X11 DEV_BSIM3 DEV_BSIM4 +OPTIONS_DEFINE= DOCS EXAMPLES X11 DEV_BSIM3 DEV_BSIM4 DEV_HISIM2 OPTIONS_DEFAULT=DOCS EXAMPLES X11 X11_USE= XORG=x11,xaw,xext,xmu,xt X11_CONFIGURE_ENV= WITH_X11=yes DEV_BSIM3_DESC= BSIM3v3 MOS Transistor Model Support -DEV_BSIM3_CONFIGURE_ENV=DEV_BSIM3=yes DEV_BSIM4_DESC= BSIM4v4 MOS Transistor Model Support -DEV_BSIM4_CONFIGURE_ENV=DEV_BSIM4=yes +DEV_HISIM2_DESC= HiSIM2 IGFET Model Support .include <bsd.port.options.mk> +# Configuration parameters. +CC_OPT= ${CFLAGS} +CONFIGFILE= ${WRKSRC}/conf/FreeBSD +DEVICES= +.for D in BSIM3 BSIM4 HISIM2 +. if !empty(PORT_OPTIONS:MDEV_$D) +DEVICES+= ${D:tl} +. endif +.endfor + +.if !empty(PORT_OPTIONS:MDEV_BSIM3) || \ + !empty(PORT_OPTIONS:MDEV_BSIM4) || \ + !empty(PORT_OPTIONS:MDEV_HISIM2) +LICENSE_COMB= multi +LICENSE_FILE_MIT= ${WRKSRC}/COPYRIGHT +.if !empty(PORT_OPTIONS:MDEV_BSIM3) || \ + !empty(PORT_OPTIONS:MDEV_BSIM4) +LICENSE+= BSIML +LICENSE_NAME_BSIML= BSIM license +LICENSE_PERMS_BSIML= dist-mirror pkg-mirror auto-accept +.if !empty(PORT_OPTIONS:MDEV_BSIM3) +LICENSE_FILE_BSIML= ${WRKSRC}/src/lib/dev/bsim3/B3TERMS_OF_USE +.else +LICENSE_FILE_BSIML= ${WRKSRC}/src/lib/dev/bsim4/B4TERMS_OF_USE.txt +.endif +.endif +.if !empty(PORT_OPTIONS:MDEV_HISIM2) +LICENSE+= HISIML +LICENSE_NAME_HISIML= HiSIM license +LICENSE_PERMS_HISIML= dist-mirror pkg-mirror auto-accept +LICENSE_FILE_HISIML= ${FILESDIR}/hisim2-license.txt +.endif +.endif + post-extract: @${DO_NADA} .if ${PORT_OPTIONS:MDEV_BSIM3} @@ -60,13 +95,21 @@ post-extract: ${UNZIP_CMD} -qo ${DISTDIR}/${DIST_SUBDIR}/BSIM480_Code.zip \ -d ${WRKSRC}/src/lib/dev/bsim4 .endif +.if ${PORT_OPTIONS:MDEV_HISIM2} + ${UNZIP_CMD} -qo ${DISTDIR}/${DIST_SUBDIR}/HiSIM_2.8.0_Release_20140605.zip \ + -d ${WRKDIR} + ${MV} ${WRKDIR}/HiSIM_2.8.0_Release_20140605/HiSIM_2.8.0_C-Code/hisim2 \ + ${WRKSRC}/src/lib/dev +.endif -do-configure: +${CONFIGFILE}:: @${SETENV} ${CONFIGURE_ENV} ${MAKE} -f ${MAKEFILE} configure - @(${ECHO_CMD} "CC= ${CC}"; \ - ${ECHO_CMD} "MAKE= ${MAKE}"; \ - ${ECHO_CMD} "CC_OPT= ${CFLAGS}"; \ - ) >> ${WRKSRC}/conf/FreeBSD +.for V in CC MAKE CC_OPT DEVICES + @${ECHO_CMD} "${V}=${$V}" >> ${WRKSRC}/conf/FreeBSD +.endfor + +do-configure: ${CONFIGFILE} + @${DO_NADA} post-install: .if ${PORT_OPTIONS:MDOCS} Modified: head/cad/spice/distinfo ============================================================================== --- head/cad/spice/distinfo Mon Aug 25 15:35:33 2014 (r366088) +++ head/cad/spice/distinfo Mon Aug 25 15:51:30 2014 (r366089) @@ -4,8 +4,8 @@ SHA256 (spice/BSIM3v330.tar.Z) = 3d8d173 SIZE (spice/BSIM3v330.tar.Z) = 113719 SHA256 (spice/BSIM480_Code.zip) = 76850257fefc9d76369538ba5aa1cac7b09fb98311c39564e9e6d044b49db9c8 SIZE (spice/BSIM480_Code.zip) = 158442 -SHA256 (spice/BSIM6.1.0_Release_March20_2014.zip) = 664e6c2138b35f45f8883a74557abff3b18f59e9da7d89adc30d0c854919c423 -SIZE (spice/BSIM6.1.0_Release_March20_2014.zip) = 1060937 +SHA256 (spice/HiSIM_2.8.0_Release_20140605.zip) = e1bd378f1b7e6b21d22b9671003bdb4913f2e7a8fd5cf79317c0f8c6719241d3 +SIZE (spice/HiSIM_2.8.0_Release_20140605.zip) = 1007122 SHA256 (spice/cp.ps) = 3bab6c3487def4ce2e817bf7ef3c1a7d199ea8e790da3a786f936872b35d0920 SIZE (spice/cp.ps) = 10297 SHA256 (spice/toc.ps) = 22228246f98f38e39a22911251fa52782ca6a2a7fb273fd78cf3da833d1f52e8 Modified: head/cad/spice/files/Makefile ============================================================================== --- head/cad/spice/files/Makefile Mon Aug 25 15:35:33 2014 (r366088) +++ head/cad/spice/files/Makefile Mon Aug 25 15:51:30 2014 (r366089) @@ -4,8 +4,9 @@ all: ${SH} util/build FreeBSD default +CONFIGFILE?= conf/FreeBSD + # Configuration parameters -DEVLIST= VARLIST= SYS_CFLAGS LDFLAGS INTERFACE_OPTS X_DIR SYS_CFLAGS= -Dbsd LDFLAGS= -lm -ltermcap @@ -16,20 +17,13 @@ INTERFACE_OPTS+=-DWANT_X11 VARLIST+= INCX LIBX .endif X_DIR= ${LOCALBASE} -.for D in BSIM3 BSIM4 -. if defined(DEV_$D) && !empty(DEV_$D) -DEVLIST+= ${D:tl} -. endif -.endfor -configure: - rm -f ${CONFIGFILE} +configure: ${CONFIGFILE} + +${CONFIGFILE}:: .for V in ${VARLIST} echo "$V=${${V}}" >> ${CONFIGFILE} .endfor -.for V in ${DEVLIST} - echo "DEVICES+=${V}" >> ${CONFIGFILE} -.endfor PREFIX?= /usr/local Added: head/cad/spice/files/hisim2-license.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/cad/spice/files/hisim2-license.txt Mon Aug 25 15:51:30 2014 (r366089) @@ -0,0 +1,24 @@ +Software is distributed as is, completely without warranty or service +support. Hiroshima University or STARC and its employees are not liable +for the condition or performance of the software. + +Hiroshima University and STARC own the copyright and grant users a perpetual, +irrevocable, worldwide, non-exclusive, royalty-free license with respect +to the software as set forth below. + +Hiroshima University and STARC hereby disclaim all implied warranties. + +Hiroshima University and STARC grant the users the right to modify, copy, +and redistribute the software and documentation, both within the user's +organization and externally, subject to the following restrictions + +1. The users agree not to charge for Hiroshima University and STARC code +itself but may charge for additions, extensions, or support. + +2. In any product based on the software, the users agree to acknowledge +Hiroshima University and STARC that developed the software. This +acknowledgment shall appear in the product documentation. + +3. The users agree to reproduce any copyright notice which appears on +the software on any copy or modification of such made available +to others."
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408251551.s7PFpUvm073910>