svn commit: r344166 - head/math/libtommath
Pietro Cerutti
gahr at FreeBSD.org
Fri Feb 14 08:27:11 UTC 2014
Author: gahr
Date: Fri Feb 14 08:27:10 2014
New Revision: 344166
URL: http://svnweb.freebsd.org/changeset/ports/344166
QAT: https://qat.redports.org/buildarchive/r344166/
Log:
- STAGE-clean
- STRIP shared library
Modified:
head/math/libtommath/Makefile
Modified: head/math/libtommath/Makefile
==============================================================================
--- head/math/libtommath/Makefile Fri Feb 14 07:59:02 2014 (r344165)
+++ head/math/libtommath/Makefile Fri Feb 14 08:27:10 2014 (r344166)
@@ -13,8 +13,8 @@ OPTIONS_DEFINE= DOCS SHARED
SHARED_DESC= Build shared library
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+USES= gmake
USE_BZIP2= yes
-USE_GMAKE= yes
ALL_TARGET= default
CFLAGS+= -fPIC
PORTDOCS= *
@@ -22,11 +22,11 @@ PORTDOCS= *
PLIST_FILES= include/tommath.h include/tommath_class.h \
include/tommath_superclass.h lib/libtommath.a
-NO_STAGE= yes
.include <bsd.port.options.mk>
post-patch:
${REINPLACE_CMD} -e 's|gcc|${CC}|g' ${WRKSRC}/makefile.shared
+ ${REINPLACE_CMD} -e 's|DESTDIR=|DESTDIR?=|' ${WRKSRC}/${MAKEFILE}
.if ${PORT_OPTIONS:MSHARED}
BUILD_DEPENDS= libtool:${PORTSDIR}/devel/libtool
@@ -37,17 +37,18 @@ MAKEFILE= makefile.shared
MAKEFILE= makefile
.endif
-.if ${PORT_OPTIONS:MDOCS}
post-install:
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/bn.pdf ${DOCSDIR}/
- ${INSTALL_DATA} ${WRKSRC}/poster.pdf ${DOCSDIR}/
- ${INSTALL_DATA} ${WRKSRC}/tommath.pdf ${DOCSDIR}/
+.if ${PORT_OPTIONS:MSHARED}
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libtommath.so.0
.endif
-
-#regression-test:
-# (cd ${WRKSRC}; \
-# ${SETENV} ${MAKE_ENV} ${GMAKE} -f ${MAKEFILE} mtest test; \
-# ./mtest/mtest | ./test)
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/bn.pdf ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/poster.pdf ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/tommath.pdf ${STAGEDIR}${DOCSDIR}
+
+regression-test:
+ (cd ${WRKSRC}; \
+ ${SETENV} ${MAKE_ENV} ${GMAKE} -f ${MAKEFILE} mtest test; \
+ ./mtest/mtest | ./test)
.include <bsd.port.mk>
More information about the svn-ports-head
mailing list