mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
a732cdea65
Release notes: https://www.libtom.net/news/LTM_1.2.0/
46 lines
1.0 KiB
Makefile
46 lines
1.0 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= libtommath
|
|
DISTVERSION= 1.2.0
|
|
PORTREVISION= 0
|
|
CATEGORIES= math
|
|
MASTER_SITES= https://github.com/libtom/libtommath/releases/download/v${DISTVERSION}/
|
|
DISTNAME= ltm-${DISTVERSION}
|
|
|
|
MAINTAINER= gahr@FreeBSD.org
|
|
COMMENT= Comprehensive, modular, and portable mathematical routines
|
|
|
|
LICENSE= UNLICENSE
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
USES= gmake libtool:build tar:xz
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION}
|
|
USE_LDCONFIG= yes
|
|
|
|
MAKEFILE= makefile.shared
|
|
ALL_TARGET= default
|
|
CFLAGS+= -fPIC
|
|
PORTDOCS= *
|
|
|
|
PLIST_FILES= include/tommath.h \
|
|
lib/libtommath.a \
|
|
lib/libtommath.so \
|
|
lib/libtommath.so.${DISTVERSION:R:R} \
|
|
lib/libtommath.so.${DISTVERSION} \
|
|
libdata/pkgconfig/libtommath.pc
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/bn.pdf ${STAGEDIR}${DOCSDIR}
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libtommath.so.${DISTVERSION}
|
|
|
|
do-test:
|
|
(cd ${WRKSRC}; \
|
|
${SETENV} ${MAKE_ENV} ${MAKE_CMD} -f makefile mtest/mtest test; \
|
|
./mtest/mtest | ./test)
|
|
|
|
.include <bsd.port.mk>
|