2012-12-07 21:39:55 +00:00
|
|
|
# Created by: ijliao
|
2002-02-07 07:07:48 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= gnucap
|
2015-05-11 18:34:57 +00:00
|
|
|
DISTVERSION= 2009-12-07
|
2017-06-27 13:46:53 +00:00
|
|
|
PORTREVISION= 1
|
2002-02-07 07:07:48 +00:00
|
|
|
CATEGORIES= cad
|
2009-01-20 16:23:57 +00:00
|
|
|
MASTER_SITES= http://www.gnucap.org/devel/ \
|
|
|
|
http://www.gnucap.org/devel/archive/
|
2002-02-07 07:07:48 +00:00
|
|
|
|
2011-10-24 03:33:20 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2008-06-18 20:15:20 +00:00
|
|
|
COMMENT= The GNU Circuit Analysis Package
|
2002-02-07 07:07:48 +00:00
|
|
|
|
2011-11-27 09:53:04 +00:00
|
|
|
LICENSE= GPLv3
|
|
|
|
|
2012-12-07 21:39:55 +00:00
|
|
|
OPTIONS_DEFINE= READLINE DOCS EXAMPLES
|
|
|
|
OPTIONS_DEFAULT=READLINE
|
|
|
|
READLINE_DESC= Enable readline support
|
|
|
|
|
2013-12-30 22:06:56 +00:00
|
|
|
USES= gmake
|
2006-07-29 19:34:03 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2004-07-03 15:39:00 +00:00
|
|
|
|
2011-11-27 09:53:04 +00:00
|
|
|
PORTDOCS= *
|
|
|
|
PORTEXAMPLES= *
|
2013-12-30 22:06:56 +00:00
|
|
|
PLIST_FILES= bin/gnucap bin/gnucap-modelgen \
|
|
|
|
man/man1/gnucap-ibis.1.gz man/man1/gnucap.1.gz
|
2011-11-27 09:53:04 +00:00
|
|
|
|
2015-08-19 13:29:59 +00:00
|
|
|
READLINE_USES= readline
|
|
|
|
READLINE_CONFIGURE_OFF= --with-readline=no
|
2012-12-07 21:39:55 +00:00
|
|
|
|
2011-11-27 09:53:04 +00:00
|
|
|
post-patch:
|
2012-12-07 21:39:55 +00:00
|
|
|
@${REINPLACE_CMD} -e \
|
2011-11-27 09:53:04 +00:00
|
|
|
'/^SUBDIRS/s|doc examples||' ${WRKSRC}/Makefile.in
|
2012-12-07 21:39:55 +00:00
|
|
|
.for i in src/ap_match.cc modelgen/ap_match.cc
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
"s:strchr(str2, '|'):const_cast<char*>(strchr(str2, '|')):" \
|
|
|
|
${WRKSRC}/${i}
|
|
|
|
.endfor
|
2011-11-27 09:53:04 +00:00
|
|
|
|
|
|
|
post-install:
|
2013-12-30 22:06:56 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/*.1 ${STAGEDIR}${MANPREFIX}/man/man1
|
2015-08-19 13:29:59 +00:00
|
|
|
post-install-DOCS-on:
|
2013-12-30 22:06:56 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/acs-tutorial ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/history ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/relnotes.* ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/whatisit ${STAGEDIR}${DOCSDIR}
|
2015-08-19 13:29:59 +00:00
|
|
|
post-install-EXAMPLES-on:
|
2013-12-30 22:06:56 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/README ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/runall ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/*.c ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/*.ckt ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/*.doc ${STAGEDIR}${EXAMPLESDIR}
|
2002-02-07 07:07:48 +00:00
|
|
|
|
2011-11-27 09:53:04 +00:00
|
|
|
.include <bsd.port.mk>
|