mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
4ac28dd88f
- Convert to OptionsNG, add READLINE option - Realign pkg-descr PR: ports/172724 Submitted by: KATO Tsuguru <tkato432@yahoo.com> Feature safe: yes
65 lines
1.6 KiB
Makefile
65 lines
1.6 KiB
Makefile
# Created by: ijliao
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= gnucap
|
|
PORTVERSION= 2009.12.07
|
|
CATEGORIES= cad
|
|
MASTER_SITES= http://www.gnucap.org/devel/ \
|
|
http://www.gnucap.org/devel/archive/
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S/./-/g}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= The GNU Circuit Analysis Package
|
|
|
|
LICENSE= GPLv3
|
|
|
|
OPTIONS_DEFINE= READLINE DOCS EXAMPLES
|
|
OPTIONS_DEFAULT=READLINE
|
|
READLINE_DESC= Enable readline support
|
|
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
MAN1= gnucap.1 gnucap-ibis.1
|
|
PORTDOCS= *
|
|
PORTEXAMPLES= *
|
|
PLIST_FILES= bin/gnucap bin/gnucap-modelgen
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MREADLINE}
|
|
USE_READLINE= yes
|
|
.else
|
|
CONFIGURE_ARGS+=--with-readline=no
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e \
|
|
'/^SUBDIRS/s|doc examples||' ${WRKSRC}/Makefile.in
|
|
.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
|
|
|
|
post-install:
|
|
${INSTALL_MAN} ${WRKSRC}/doc/*.1 ${MANPREFIX}/man/man1
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/acs-tutorial ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/history ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/relnotes.* ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/whatisit ${DOCSDIR}
|
|
.endif
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/examples/README ${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/examples/runall ${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/examples/*.c ${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/examples/*.ckt ${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/examples/*.doc ${EXAMPLESDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|