View | Details | Raw Unified | Return to bug 98214 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-5 / +18 lines)
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>
(-)distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (crypt-1.10.tar.bz2) = 8da42847a5ac43e82965121c9e26e525
1
MD5 (crypt-1.12.tar.bz2) = 0a018c0a84deea104bbc21d566f142fc
2
SHA256 (crypt-1.10.tar.bz2) = 3115f8d91956ae8e05a19d74e6d2d2321e5e466a6daf69a4c43c2aa48334308d
2
SHA256 (crypt-1.12.tar.bz2) = 3001f79f26d3e70ae52e3f752c506aec1159c5efdcc43ca970cbfc7904c50907
3
SIZE (crypt-1.10.tar.bz2) = 1324351
3
SIZE (crypt-1.12.tar.bz2) = 1393191

Return to bug 98214