mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
- Add LICENSE
- Switch to options helpers
This commit is contained in:
parent
24986179d8
commit
d67bea2e18
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=423954
@ -9,6 +9,11 @@ MASTER_SITES= http://www.wrcad.com/ftp/pub/ LOCAL/bf
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Three-dimensional capacitance extraction program
|
||||
|
||||
LICENSE= FASTCAP
|
||||
LICENSE_NAME= fastcap license
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
LICENSE_PERMS= auto-accept
|
||||
|
||||
HAS_CONFIGURE= yes
|
||||
CONFIGURE_SCRIPT= config
|
||||
WRKSRC= ${WRKDIR}/fastcap-2.0wr
|
||||
@ -17,7 +22,8 @@ BINFILES= busgen capgen cubegen fastcap pipedgen pyragen
|
||||
|
||||
OPTIONS_DEFINE= DOCS EXAMPLES
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
post-extract:
|
||||
@${HEAD} -32 ${WRKSRC}/src/direct.c | ${TAIL} +2 > ${WRKSRC}/LICENSE
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's,TYPE=other,TYPE=4,' \
|
||||
@ -41,8 +47,12 @@ post-patch:
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${BINFILES:S,^,${WRKSRC}/bin/,} ${STAGEDIR}${PREFIX}/bin
|
||||
|
||||
do-install-EXAMPLES-on:
|
||||
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}
|
||||
|
||||
do-install-DOCS-on:
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${CAT} ${WRKSRC}/README ${WRKSRC}/README.mit > ${STAGEDIR}${DOCSDIR}/readme
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/*.ps ${STAGEDIR}${DOCSDIR}
|
||||
|
Loading…
Reference in New Issue
Block a user