blob: 2886d7f16922edfa58e1a4bcffd06d4110e86ac9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
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>
|