svn commit: r505289 - head/math/secp256k1
Dmitry Marakasov
amdmi3 at FreeBSD.org
Fri Jun 28 15:51:29 UTC 2019
Author: amdmi3
Date: Fri Jun 28 15:51:28 2019
New Revision: 505289
URL: https://svnweb.freebsd.org/changeset/ports/505289
Log:
- Switch to options helpers
- Switch to new test framework
Approved by: portmgr blanket
Modified:
head/math/secp256k1/Makefile
Modified: head/math/secp256k1/Makefile
==============================================================================
--- head/math/secp256k1/Makefile Fri Jun 28 15:49:00 2019 (r505288)
+++ head/math/secp256k1/Makefile Fri Jun 28 15:51:28 2019 (r505289)
@@ -22,31 +22,22 @@ 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
-.include <bsd.port.options.mk>
-
-.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
-
-check regression-test test: build
+do-test:
cd ${WRKSRC} && ./tests
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list