summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbsam <bsam@FreeBSD.org>2013-06-19 18:38:46 +0000
committerbsam <bsam@FreeBSD.org>2013-06-19 18:38:46 +0000
commit968f4ce380ab96e7ff0f3e6318e675aee516fb91 (patch)
treea585063e79a8807711e01bcf0fa737a70c46bb8f
parent121e5709ead206a7157e300d9ea4990d442c7afc (diff)
downloadFreeBSD-ports-968f4ce380ab96e7ff0f3e6318e675aee516fb91.zip
FreeBSD-ports-968f4ce380ab96e7ff0f3e6318e675aee516fb91.tar.gz
. NOPORTEXAMPLES -> PORT_OPTIONS:MEXAMPLES;
. use PORTEXAMPLES at Makefile; . trim Makefile headers.
-rw-r--r--biology/mopac/Makefile14
-rw-r--r--biology/mopac/pkg-plist14
2 files changed, 8 insertions, 20 deletions
diff --git a/biology/mopac/Makefile b/biology/mopac/Makefile
index d9b9374..4b7aa3b 100644
--- a/biology/mopac/Makefile
+++ b/biology/mopac/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: mopac
-# Date created: 1997-04-23
-# Whom: Ryo MIYAMOTO <rmiya@cc.hirosaki-u.ac.jp>
-#
+# Created by: Ryo MIYAMOTO <rmiya@cc.hirosaki-u.ac.jp>
# $FreeBSD$
-#
PORTNAME= mopac
PORTVERSION= 7.${MOPAC_SUBVERSION}
@@ -30,6 +26,10 @@ LDFLAGS+= -L${LOCALBASE}/lib
MOPAC_SUBVERSION= 1.11
+PORTEXAMPLES= *
+
+OPTIONS_DEFINE= EXAMPLES
+
post-patch:
@${REINPLACE_CMD} -e '/pkgconfig/s|$$(libdir)|$$(prefix)/libdata|g' \
${WRKSRC}/Makefile.am
@@ -37,10 +37,12 @@ post-patch:
-e 's|./src/mopac7|${PREFIX}/libexec/mopac7|g' \
${WRKSRC}/run_${PORTNAME}7
+.include <bsd.port.options.mk>
+
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/run_${PORTNAME}7 ${PREFIX}/bin/${PORTNAME}7
${INSTALL_PROGRAM} ${WRKSRC}/src/.libs/${PORTNAME}7 ${PREFIX}/libexec/${PORTNAME}7
-.if !defined(NOPORTEXAMPLES)
+.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}/test
${INSTALL_DATA} ${WRKSRC}/tests/*.dat ${EXAMPLESDIR}/test
.endif
diff --git a/biology/mopac/pkg-plist b/biology/mopac/pkg-plist
index 374dde1..60d8cae 100644
--- a/biology/mopac/pkg-plist
+++ b/biology/mopac/pkg-plist
@@ -6,18 +6,4 @@ lib/libmopac7.so
lib/libmopac7.so.0
libdata/pkgconfig/libmopac7.pc
libexec/mopac7
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test/1scf.dat
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test/elements.dat
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test/force.dat
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test/geometry.dat
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test/keys.dat
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test/nch34+.dat
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test/oldgeo.dat
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test/paras.dat
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test/test_cos.dat
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test/test_ef_.dat
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test/test_gre.dat
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test/test_pol.dat
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/test
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
@dirrm include/mopac7
OpenPOWER on IntegriCloud