Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Jun 2019 15:51:28 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r505289 - head/math/secp256k1
Message-ID:  <201906281551.x5SFpSmm053034@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201906281551.x5SFpSmm053034>