blob: 169de86c27e194328521e20a90e631268f5cbfc4 (
plain) (
blame)
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
|
# Created by: Alex Dupre <ale@FreeBSD.org>
# $FreeBSD$
PORTNAME= secp256k1
PORTVERSION= 0.1.20190225
CATEGORIES= math security java
MAINTAINER= ale@FreeBSD.org
COMMENT= Optimized C library for EC operations on curve secp256k1
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING
USES= autoreconf libtool gmake
USE_LDCONFIG= yes
USE_GITHUB= yes
GH_ACCOUNT= bitcoin-core
GH_TAGNAME= aa15154
OPTIONS_DEFINE= GMP JAVA
OPTIONS_DEFAULT=GMP JAVA
GMP_DESC= Use GMP bignum implementation
GMP_USES= localbase:ldflags
GMP_LIB_DEPENDS=libgmp.so:math/gmp
GMP_CONFIGURE_ON=--with-bignum=gmp
GMP_CONFIGURE_OFF=--with-bignum=no
JAVA_DESC= Build JNI bindings
JAVA_CONFIGURE_ENABLE=jni
JAVA_USE= JAVA=yes
JAVA_CONFIGURE_ENV=JAVA_HOME="${JAVA_HOME}"
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-experimental --enable-module-ecdh \
--enable-endomorphism --enable-module-recovery
INSTALL_TARGET= install-strip
do-test:
cd ${WRKSRC} && ./tests
.include <bsd.port.mk>
|