From 1035cb6ba782a13ba0e51ebe7d7053cd8317cf1b Mon Sep 17 00:00:00 2001 From: "Vanilla I. Shu" Date: Thu, 7 Aug 2014 14:42:45 +0000 Subject: [PATCH] 1: Stagify. 2: Strip binary. --- math/pure-mpfr/Makefile | 30 +++++++++--------------------- 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/math/pure-mpfr/Makefile b/math/pure-mpfr/Makefile index a90e1bbac416..379b8716e4d0 100644 --- a/math/pure-mpfr/Makefile +++ b/math/pure-mpfr/Makefile @@ -14,32 +14,20 @@ COMMENT= Multiprecision floats for Pure LICENSE= GPLv3 LGPL3 LICENSE_COMB= dual -MAKE_ARGS+= libdir="${PREFIX}/lib" - USES= pkgconfig pure +MAKE_ARGS+= libdir="${PREFIX}/lib" +PORTDOCS= README +PORTEXAMPLES= * +OPTIONS_DEFINE= DOCS EXAMPLES PLIST_FILES= lib/pure/mpfr.pure \ lib/pure/mpfr.so -NO_STAGE= yes - -PORTDOCS= README - -PORTEXAMPLES= * - -OPTIONS_DEFINE= DOCS EXAMPLES - -.include - post-install: -.if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} -.endif - -.if ${PORT_OPTIONS:MEXAMPLES} - @${MKDIR} ${EXAMPLESDIR} - @(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${EXAMPLESDIR}) -.endif + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/pure/mpfr.so + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + @(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) .include