1999-12-25 10:40:48 -05:00
|
|
|
# New ports collection makefile for: cider
|
|
|
|
# Date created: 1999-12-12
|
|
|
|
# Whom: AMAKAWA Shuhei <amakawa@jp.FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-08 19:24:42 -04:00
|
|
|
PORTNAME= cider
|
|
|
|
PORTVERSION= 1.b1
|
2001-10-09 07:21:39 -04:00
|
|
|
PORTREVISION= 2
|
1999-12-25 10:40:48 -05:00
|
|
|
CATEGORIES= cad
|
|
|
|
MASTER_SITES= ftp://ic.eecs.berkeley.edu/pub/Cider/new/
|
2000-04-08 19:24:42 -04:00
|
|
|
DISTNAME= cider1b1
|
1999-12-25 10:40:48 -05:00
|
|
|
EXTRACT_SUFX= .tar.Z
|
|
|
|
|
|
|
|
MAINTAINER= amakawa@jp.FreeBSD.org
|
2003-02-21 06:08:38 -05:00
|
|
|
COMMENT= A mixed-level circuit and device simulator (includes SPICE3)
|
1999-12-25 10:40:48 -05:00
|
|
|
|
1999-12-29 16:32:14 -05:00
|
|
|
WRKSRC= ${WRKDIR}/sim
|
1999-12-25 10:40:48 -05:00
|
|
|
USE_XLIB= yes
|
|
|
|
MAN1= sconvert.1 nutmeg.1 spice.1 cider.1
|
|
|
|
MAN3= mfb.3
|
|
|
|
MAN5= mfbcap.5
|
|
|
|
MLINKS= spice.1 spice3.1
|
|
|
|
|
|
|
|
pre-patch:
|
1999-12-29 16:32:14 -05:00
|
|
|
@${CP} -f ${WRKSRC}/spice/common/lib/helpdir/spice.txt ${WRKSRC}/cider/common/lib/helpdir/spice.txt
|
|
|
|
|
|
|
|
post-patch:
|
2000-01-24 00:00:57 -05:00
|
|
|
@${LN} -fs ../../../spice/common/util/makelib.sh ${WRKSRC}/cider/common/util
|
|
|
|
@${LN} -fs ../../../../spice/common/src/lib/sparse/spdefs.h ${WRKSRC}/cider/common/src/include
|
1999-12-29 16:32:14 -05:00
|
|
|
@${CP} -f ${FILESDIR}/Makefile.spice ${WRKSRC}/spice/common/Makefile
|
|
|
|
@${CP} -f ${FILESDIR}/Makefile.cider ${WRKSRC}/cider/common/Makefile
|
|
|
|
@${CP} -f ${FILESDIR}/FreeBSD ${WRKSRC}/spice/common/conf
|
|
|
|
@${CP} -f ${FILESDIR}/FreeBSD ${WRKSRC}/cider/common/conf
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
@(cd ${WRKSRC}/spice/common && ${SETENV} ${MAKE_ENV} ${MAKE})
|
|
|
|
@(cd ${WRKSRC}/cider/common && ${SETENV} ${MAKE_ENV} ${MAKE})
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
@(cd ${WRKSRC}/spice/common && ${SETENV} ${MAKE_ENV} ${MAKE} install)
|
|
|
|
@(cd ${WRKSRC}/cider/common && ${SETENV} ${MAKE_ENV} ${MAKE} install)
|
1999-12-25 10:40:48 -05:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
1999-12-29 16:32:14 -05:00
|
|
|
@${MKDIR} ${PREFIX}/share/examples/spice3
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/spice/common/examples/*.cir ${PREFIX}/share/examples/spice3
|
|
|
|
@${MKDIR} ${PREFIX}/share/examples/cider
|
|
|
|
@${TAR} -cf - -C ${WRKSRC}/cider/common/examples . | ${TAR} -xf - -C ${PREFIX}/share/examples/cider
|
|
|
|
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/examples/cider
|
1999-12-25 10:40:48 -05:00
|
|
|
.endif
|
2001-07-04 12:01:19 -04:00
|
|
|
@${LN} -fs ${PREFIX}/share/spice3/scripts/spinit ${PREFIX}/share/cider/scripts
|
1999-12-25 10:40:48 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|