svn commit: r423954 - head/science/fastcap

Dmitry Marakasov amdmi3 at FreeBSD.org
Fri Oct 14 09:03:46 UTC 2016


Author: amdmi3
Date: Fri Oct 14 09:03:45 2016
New Revision: 423954
URL: https://svnweb.freebsd.org/changeset/ports/423954

Log:
  - Add LICENSE
  - Switch to options helpers

Modified:
  head/science/fastcap/Makefile

Modified: head/science/fastcap/Makefile
==============================================================================
--- head/science/fastcap/Makefile	Fri Oct 14 07:57:42 2016	(r423953)
+++ head/science/fastcap/Makefile	Fri Oct 14 09:03:45 2016	(r423954)
@@ -9,6 +9,11 @@ MASTER_SITES=	http://www.wrcad.com/ftp/p
 MAINTAINER=	ports at 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 
 
 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}


More information about the svn-ports-head mailing list