Sunday, December 02, 2018

Re: new: math/nlopt

On 2018/12/02 04:19, Klemens Nanni wrote:
> Simple library port as dependency of an wip/upcoming Slic3r port.
>
> For now I've disabled all optional/unneeded bindings; they may be
> enabled later if people show interest.
>
> Builds and tests fine on amd64 allowing me to configure/build Slic3r.
>
> I'm happy to see testing on other platforms.
> Feedback? OK?
>
> $ make test
> [...]
> 100% tests passed, 0 tests failed out of 52
>
> Total Test time (real) = 0.35 sec
> $ pkg_info NLopt
> Information for inst:NLopt-2.5.0
>
> Comment:
> library for nonlinear optimization
>
> Description:
> NLopt is a library for nonlinear local and global optimization, for functions
> with and without gradient information. It is designed as a simple, unified
> interface and packaging of several free/open-source nonlinear optimization
> libraries.
>
> Maintainer: Klemens Nanni <kn@openbsd.org>
>
> WWW: http://ab-initio.mit.edu/nlopt

Looks like a standard GH_TAGNAME thing.. (first noticed by the bogus
filename in distinfo).

Though I would probably *either* go for lowercase nlopt in the package
name *or* use NLopt in the port directory name rather than mixing case
between the two.


--- Makefile- Sun Dec 2 13:50:13 2018
+++ Makefile Sun Dec 2 13:51:18 2018
@@ -3,7 +3,9 @@
COMMENT = library for nonlinear optimization

V = 2.5.0
-DISTNAME = v${V}
+GH_ACCOUNT = stevengj
+GH_PROJECT = nlopt
+GH_TAGNAME = v$V
PKGNAME = NLopt-${V}

SHARED_LIBS = nlopt 0.0 # 0.9
@@ -19,8 +21,6 @@ PERMIT_PACKAGE_CDROM = Yes

WANTLIB = m

-MASTER_SITES = https://github.com/stevengj/nlopt/archive/
-
MODULES = devel/cmake

CONFIGURE_ARGS = -DNLOPT_GUILE=OFF \
@@ -29,7 +29,5 @@ CONFIGURE_ARGS = -DNLOPT_GUILE=OFF \
-DNLOPT_OCTAVE=OFF \
-DNLOPT_PYTHON=OFF \
-DNLOPT_SWIG=OFF
-
-WRKDIST = ${WRKDIR}/${PKGNAME:L}

.include <bsd.port.mk>

No comments:

Post a Comment