aboutsummaryrefslogblamecommitdiff
path: root/math/secp256k1/Makefile
blob: 5e79a91c974842e798c4820ac67b5c6a0bb25380 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
                                          

                         
                            








                                                                        
 


                            
                       




                                             
                                 





                                  

                                           

                   

                                                              

                             
        

                               
                      
# Created by: Alex Dupre <ale@FreeBSD.org>

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>