aboutsummaryrefslogtreecommitdiff
path: root/math/libtommath
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2015-11-14 20:27:12 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2015-11-14 20:27:12 +0000
commitc2da4a19a6b4a0a761898e5056f84bd60db1d31c (patch)
treea5b3a1883b1b7006d50bebe12841367d456775c7 /math/libtommath
parent9f228ac3d23dad49277af96beced090be7440c15 (diff)
downloadports-c2da4a19a6b4a0a761898e5056f84bd60db1d31c.tar.gz
ports-c2da4a19a6b4a0a761898e5056f84bd60db1d31c.zip
- Update MASTER_SITES and WWW, helpers
Notes
Notes: svn path=/head/; revision=401594
Diffstat (limited to 'math/libtommath')
-rw-r--r--math/libtommath/Makefile29
-rw-r--r--math/libtommath/pkg-descr2
2 files changed, 13 insertions, 18 deletions
diff --git a/math/libtommath/Makefile b/math/libtommath/Makefile
index 79e10a8d70f6..62fc3f9322ef 100644
--- a/math/libtommath/Makefile
+++ b/math/libtommath/Makefile
@@ -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@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; \
diff --git a/math/libtommath/pkg-descr b/math/libtommath/pkg-descr
index fa6528272ce3..aeeb9acb7f25 100644
--- a/math/libtommath/pkg-descr
+++ b/math/libtommath/pkg-descr
@@ -2,4 +2,4 @@ LibTomMath provides highly optimized and portable routines for a vast
majority of integer based number theoretic applications (including
public key cryptography).
-WWW: http://libtom.org
+WWW: http://libtom.net/