Lines 6-12
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= libtomcrypt |
8 |
PORTNAME= libtomcrypt |
9 |
PORTVERSION= 1.10 |
9 |
PORTVERSION= 1.12 |
10 |
CATEGORIES= security |
10 |
CATEGORIES= security |
11 |
MASTER_SITES= http://libtomcrypt.com/files/ |
11 |
MASTER_SITES= http://libtomcrypt.com/files/ |
12 |
DISTNAME= crypt-${PORTVERSION} |
12 |
DISTNAME= crypt-${PORTVERSION} |
Lines 26-40
Link Here
|
26 |
|
26 |
|
27 |
OPTIONS= DOCS "build documentation (depends on teTeX)" off \ |
27 |
OPTIONS= DOCS "build documentation (depends on teTeX)" off \ |
28 |
LIBTOMMATH "Use LibTomMath" on \ |
28 |
LIBTOMMATH "Use LibTomMath" on \ |
29 |
TOMSFASTMATH "Use TomsFastMath" off |
29 |
TOMSFASTMATH "Use TomsFastMath" off \ |
|
|
30 |
GMP "Use GMP" off |
30 |
|
31 |
|
31 |
.include <bsd.port.pre.mk> |
32 |
.include <bsd.port.pre.mk> |
32 |
|
33 |
|
33 |
.if defined(WITHOUT_LIBTOMMATH) && defined(WITHOUT_TOMSFASTMATH) |
34 |
.if defined(WITHOUT_LIBTOMMATH) && defined(WITHOUT_TOMSFASTMATH) && defined(WITHOUT_GMP) |
34 |
IGNORE= you must choose either LibTomMath or TomsFastMath (or both) |
35 |
IGNORE= you must choose at least LibTomMath, TomsFastMath, or GMP (or all three) |
35 |
.endif |
36 |
.endif |
36 |
|
37 |
|
37 |
.if !defined(WITHOUT_LIBTOMMATH) |
38 |
.if defined(WITH_LIBTOMMATH) |
38 |
BUILD_DEPENDS+= ${LOCALBASE}/include/tommath.h:${PORTSDIR}/math/libtommath |
39 |
BUILD_DEPENDS+= ${LOCALBASE}/include/tommath.h:${PORTSDIR}/math/libtommath |
39 |
CFLAGS+= -DLTM_DESC |
40 |
CFLAGS+= -DLTM_DESC |
40 |
.endif |
41 |
.endif |
Lines 44-49
Link Here
|
44 |
CFLAGS+= -DTFM_DESC |
45 |
CFLAGS+= -DTFM_DESC |
45 |
.endif |
46 |
.endif |
46 |
|
47 |
|
|
|
48 |
.if defined(WITH_GMP) |
49 |
BUILD_DEPENDS+= ${LOCALBASE}/include/gmp.h:${PORTSDIR}/math/libgmp4 |
50 |
CFLAGS+= -DGMP_DESC |
51 |
.endif |
52 |
|
47 |
.if defined(WITH_DOCS) |
53 |
.if defined(WITH_DOCS) |
48 |
BUILD_DEPENDS+= latex:${PORTSDIR}/print/teTeX |
54 |
BUILD_DEPENDS+= latex:${PORTSDIR}/print/teTeX |
49 |
.else |
55 |
.else |
Lines 62-66
Link Here
|
62 |
|
68 |
|
63 |
@${ECHO_MSG} "Testing with -DUSE_LTM..." |
69 |
@${ECHO_MSG} "Testing with -DUSE_LTM..." |
64 |
(cd ${WRKSRC} && CFLAGS="${CFLAGS} -DUSE_LTM" EXTRALIBS="-L${PREFIX}/lib -ltommath" ${GMAKE} test && ${WRKSRC}/test) |
70 |
(cd ${WRKSRC} && CFLAGS="${CFLAGS} -DUSE_LTM" EXTRALIBS="-L${PREFIX}/lib -ltommath" ${GMAKE} test && ${WRKSRC}/test) |
|
|
71 |
|
72 |
@${ECHO_MSG} "Cleaning up test binary..." |
73 |
@${RM} ${WRKSRC}/test |
74 |
@${RM} ${WRKSRC}/demos/test.o |
75 |
|
76 |
@${ECHO_MSG} "Testing with -DUSE_GMP..." |
77 |
(cd ${WRKSRC} && CFLAGS="${CFLAGS} -DUSE_GMP" EXTRALIBS="-L${PREFIX}/lib -lgmp" ${GMAKE} test && ${WRKSRC}/test) |
65 |
.endif |
78 |
.endif |
66 |
.include <bsd.port.post.mk> |
79 |
.include <bsd.port.post.mk> |