svn commit: r348893 - head/biology/phylip
Pawel Pekala
pawel at FreeBSD.org
Sun Mar 23 21:52:55 UTC 2014
Author: pawel
Date: Sun Mar 23 21:52:54 2014
New Revision: 348893
URL: http://svnweb.freebsd.org/changeset/ports/348893
QAT: https://qat.redports.org/buildarchive/r348893/
Log:
- Add staging support
- Strip libraries
Modified:
head/biology/phylip/Makefile
Modified: head/biology/phylip/Makefile
==============================================================================
--- head/biology/phylip/Makefile Sun Mar 23 21:34:43 2014 (r348892)
+++ head/biology/phylip/Makefile Sun Mar 23 21:52:54 2014 (r348893)
@@ -3,7 +3,7 @@
PORTNAME= phylip
PORTVERSION= 3.695
-PORTREVISION= 1
+PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= biology
MASTER_SITES= http://evolution.gs.washington.edu/phylip/download/
@@ -13,8 +13,6 @@ COMMENT= Phylogeny Inference Package
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash
-OPTIONS_DEFINE= DOCS EXAMPLES
-
BUILD_WRKSRC= ${WRKSRC}/src
INSTALL_WRKSRC= ${WRKSRC}/src
@@ -29,28 +27,26 @@ USE_LDCONFIG= yes
PORTDOCS= *
PORTEXAMPLES= *
-NO_STAGE= yes
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE= DOCS EXAMPLES
+
+pre-install:
+ @(cd ${WRKSRC}/src && ${STRIP_CMD} libdrawtree.so libdrawgram.so)
post-install:
@cd ${WRKSRC}/exe && \
${FIND} . -maxdepth 1 -not -type d -not -name '*.jar' \
-not -name '*.unx' -not -name 'font*' -not -name '*.so' \
- -exec ${INSTALL_PROGRAM} "{}" "${PREFIX}/bin/{}" \;
+ -exec ${INSTALL_PROGRAM} "{}" "${STAGEDIR}${PREFIX}/bin/{}" \;
@cd ${WRKSRC}/exe && \
${FIND} . -maxdepth 1 -not -type d -name "*.so" \
- -exec ${INSTALL_DATA} "{}" "${PREFIX}/lib/{}" \;
- @${MKDIR} ${DATADIR}
+ -exec ${INSTALL_DATA} "{}" "${STAGEDIR}${PREFIX}/lib/{}" \;
+ @${MKDIR} ${STAGEDIR}${DATADIR}
@cd ${WRKSRC}/exe && \
${FIND} . -maxdepth 1 -not -type d -name 'font*' \
- -exec ${INSTALL_DATA} "{}" "${DATADIR}/{}" \;
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
- @(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${DOCSDIR})
-.endif
-.if ${PORT_OPTIONS:MEXAMPLES}
- @${MKDIR} ${EXAMPLESDIR}
- @(cd ${WRKSRC}/exe && ${COPYTREE_SHARE} testdata ${EXAMPLESDIR})
-.endif
+ -exec ${INSTALL_DATA} "{}" "${STAGEDIR}${DATADIR}/{}" \;
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ @(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ @(cd ${WRKSRC}/exe && ${COPYTREE_SHARE} testdata ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list