summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbf <bf@FreeBSD.org>2014-07-01 23:44:40 +0000
committerbf <bf@FreeBSD.org>2014-07-01 23:44:40 +0000
commit382cc069d65530c7af26d64537dbb78c5eb7052e (patch)
tree1f4a89b6c1b9ca9e42c54df12802d9925b9ed9fb
parent552ba901d52867e65ebe08c69544c34576331cac (diff)
downloadFreeBSD-ports-382cc069d65530c7af26d64537dbb78c5eb7052e.zip
FreeBSD-ports-382cc069d65530c7af26d64537dbb78c5eb7052e.tar.gz
Use staging; strip
-rw-r--r--math/metis/Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/math/metis/Makefile b/math/metis/Makefile
index 2c5fe70..3cc47e8 100644
--- a/math/metis/Makefile
+++ b/math/metis/Makefile
@@ -24,7 +24,8 @@ STATIC_DESC= libmetis archive
OPTIONS_DEFAULT= SHARED STATIC
-NO_STAGE= yes
+BINS= cmpfillin gpmetis graphchk m2gmetis mpmetis ndmetis
+
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MOPENMP}
@@ -104,6 +105,13 @@ do-build:
${MAKE_ARGS} ${ALL_TARGET_${o}}
.endif
.endfor
+.if ${PORT_OPTIONS:MSHARED}
+ @cd ${WRKSRC_SHARED}/programs; ${STRIP_CMD} ${BINS}
+ @cd ${WRKSRC_SHARED}/libmetis; ${STRIP_CMD} libmetis.so.*
+.endif
+.if ${PORT_OPTIONS:MSTATIC}
+ @cd ${WRKSRC_STATIC}/libmetis; ${STRIP_CMD} libmetis.a
+.endif
check regression-test test: build
cd ${WRKSRC_SHARED}/graphs ; ../programs/gpmetis ./4elt.graph 5
@@ -121,8 +129,8 @@ do-install:
PORTDOCS= manual.pdf
post-install:
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/manual/manual.pdf ${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/manual/manual.pdf ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>
OpenPOWER on IntegriCloud