svn commit: r401594 - head/math/libtommath
Dmitry Marakasov
amdmi3 at FreeBSD.org
Sat Nov 14 20:27:14 UTC 2015
Author: amdmi3
Date: Sat Nov 14 20:27:12 2015
New Revision: 401594
URL: https://svnweb.freebsd.org/changeset/ports/401594
Log:
- Update MASTER_SITES and WWW, helpers
Modified:
head/math/libtommath/Makefile
head/math/libtommath/pkg-descr
Modified: head/math/libtommath/Makefile
==============================================================================
--- head/math/libtommath/Makefile Sat Nov 14 20:12:52 2015 (r401593)
+++ head/math/libtommath/Makefile Sat Nov 14 20:27:12 2015 (r401594)
@@ -4,15 +4,12 @@ PORTNAME= libtommath
PORTVERSION= 0.42.0
PORTREVISION= 2
CATEGORIES= math
-MASTER_SITES= http://libtom.org/files/
+MASTER_SITES= http://libtom.net/files/
DISTNAME= ltm-${PORTVERSION}
MAINTAINER= ports at FreeBSD.org
COMMENT= Comprehensive, modular, and portable mathematical routines
-OPTIONS_DEFINE= DOCS SHARED
-SHARED_DESC= Build shared library
-
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USES= gmake tar:bzip2
ALL_TARGET= default
@@ -22,30 +19,28 @@ PORTDOCS= *
PLIST_FILES= include/tommath.h include/tommath_class.h \
include/tommath_superclass.h lib/libtommath.a
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE= DOCS SHARED
+
+SHARED_DESC= Build shared library
+SHARED_USES= libtool:build
+SHARED_USE= LDCONFIG=yes
+SHARED_PLIST_FILES= lib/libtommath.so lib/libtommath.so.0 lib/libtommath.so.0.0.41
+SHARED_VARS= MAKEFILE=makefile.shared
+SHARED_VARS_OFF= MAKEFILE=makefile
post-patch:
${REINPLACE_CMD} -e 's|gcc|${CC}|g' ${WRKSRC}/makefile.shared
${REINPLACE_CMD} -e 's|DESTDIR=|DESTDIR?=| ; s|-g $$(GROUP) -o $$(USER)||' ${WRKSRC}/${MAKEFILE}
-.if ${PORT_OPTIONS:MSHARED}
-USES+= libtool:build
-USE_LDCONFIG= yes
-PLIST_FILES+= lib/libtommath.so lib/libtommath.so.0 lib/libtommath.so.0.0.41
-MAKEFILE= makefile.shared
-.else
-MAKEFILE= makefile
-.endif
-
post-install:
-.if ${PORT_OPTIONS:MSHARED}
- ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libtommath.so.0
-.endif
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/bn.pdf ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/poster.pdf ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/tommath.pdf ${STAGEDIR}${DOCSDIR}
+post-install-SHARED-on:
+ @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libtommath.so.0
+
regression-test:
(cd ${WRKSRC}; \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} -f ${MAKEFILE} mtest test; \
Modified: head/math/libtommath/pkg-descr
==============================================================================
--- head/math/libtommath/pkg-descr Sat Nov 14 20:12:52 2015 (r401593)
+++ head/math/libtommath/pkg-descr Sat Nov 14 20:27:12 2015 (r401594)
@@ -2,4 +2,4 @@ LibTomMath provides highly optimized and
majority of integer based number theoretic applications (including
public key cryptography).
-WWW: http://libtom.org
+WWW: http://libtom.net/
More information about the svn-ports-all
mailing list