Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Oct 2016 09:03:45 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r423954 - head/science/fastcap
Message-ID:  <201610140903.u9E93jxu005403@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610140903.u9E93jxu005403>