mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
98b5a3ec78
- Switch to new test framework Approved by: portmgr blanket
44 lines
951 B
Makefile
44 lines
951 B
Makefile
# 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>
|