blob: 88d154ccf7636cff81c5a14de50941a943622832 (
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
44
45
46
47
48
49
50
51
52
|
PORTNAME= amath
PORTVERSION= 1.8.5
CATEGORIES= math
MASTER_SITES= http://dist1.innolan.net/ \
http://dist2.innolan.net/ \
https://amath.innolan.net/
MAINTAINER= cs@innolan.net
COMMENT= Simple command line calculator
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BROKEN_riscv64= fails to compile: ./prim.h:117:2: Must define endianness
USES= gmake
USE_LDCONFIG= ${PREFIX}/lib/${PORTNAME}
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX} --pkgconfig=libdata/pkgconfig \
--mandir=man LDFLAGS="-L${LOCALBASE}/lib"
MAKE_ARGS= CC=${CC} CXX=${CXX}
OPTIONS_DEFINE= TESTS
OPTIONS_DEFAULT=APPLIBM
OPTIONS_RADIO= LIBM
OPTIONS_RADIO_LIBM= APPLIBM OPENLIBM SYSLIBM
OPTIONS_SUB= yes
APPLIBM_DESC= Build and install application libraries
LIBM_DESC= Math libraries
OPENLIBM_DESC= Build with OpenLibm
SYSLIBM_DESC= System (-lm)
TESTS_DESC= Build with regression tests
OPENLIBM_CONFIGURE_WITH= openlibm
OPENLIBM_LIB_DEPENDS= libopenlibm.so:math/openlibm
SYSLIBM_CONFIGURE_WITH= libm
TESTS_CONFIGURE_ENABLE= test
TEST_TARGET= test
post-install-APPLIBM-on:
${LN} -sf libamathapp.so ${STAGEDIR}${PREFIX}/lib/amath/libamathapp.so.1
${LN} -sf libamathcplex.so ${STAGEDIR}${PREFIX}/lib/amath/libamathcplex.so.1
${LN} -sf libamathc.so ${STAGEDIR}${PREFIX}/lib/amath/libamathc.so.1
${LN} -sf libamath.so ${STAGEDIR}${PREFIX}/lib/amath/libamath.so.1
do-install-APPLIBM-off:
${INSTALL_PROGRAM} ${WRKSRC}/amath ${STAGEDIR}${PREFIX}/bin/
${INSTALL_MAN} ${WRKSRC}/amath.1 ${STAGEDIR}${PREFIX}/man/man1/
.include <bsd.port.mk>
|