# Created by: Alex Dupre # $FreeBSD$ PORTNAME= secp256k1 PORTVERSION= 0.1.20180531 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= 1e6f1f5 OPTIONS_DEFINE= GMP JAVA OPTIONS_DEFAULT=GMP JAVA GMP_DESC= Use GMP bignum implementation 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 GNU_CONFIGURE= yes CONFIGURE_ARGS= --enable-experimental --enable-module-ecdh INSTALL_TARGET= install-strip .include .if ${PORT_OPTIONS:MGMP} CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib .endif .if ${PORT_OPTIONS:MJAVA} USE_JAVA= yes CONFIGURE_ENV+= JAVA_HOME="${JAVA_HOME}" .endif .include