notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photos
All times are UTC
Ukraine
The recently imposed "must be logged in" restriction is a response to increased bot traffic on the site. This affects search, commits, and vuxml pages.
Search engines are not blocked. Try using "site:www.freshports.org" and your search terms.
After the ports freeze to fix some stuff, the freeze is over. I have some work to do before FreshPorts can start processing commits again before it can start processing again. I've created an issue for that.
Port details on branch 2026Q1
nlopt Nonlinear optimization library
2.10.1 math on this many watch lists=0 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 2.10.1Version of this port present on the latest quarterly branch.
Maintainer: rhurlin@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2026-02-11 15:36:08
Last Update: 2026-02-11 19:17:22
Commit Hash: c327e9e
License: LGPL21 MIT
WWW:
https://nlopt.readthedocs.io/
https://github.com/stevengj/nlopt/
Description:
NLopt is a free/open-source library for nonlinear optimization, providing a common interface for a number of different free optimization outines available online as well as original implementations of various other algorithms. Its features include: - Callable from C, C++, Fortran, Matlab or GNU Octave, Python, GNU Guile, Julia, GNU R, Lua, and OCaml. - A common interface for many different algorithms -- try a different algorithm just by changing one parameter. - Support for large-scale optimization (some algorithms scalable to millions of parameters and thousands of constraints). - Both global and local optimization algorithms. - Algorithms using function values only (derivative-free) and also algorithms exploiting user-supplied gradients. - Algorithms for unconstrained optimization, bound-constrained optimization, and general nonlinear inequality/equality constraints. - Free/open-source software under the GNU LGPL (and looser licenses for some portions of NLopt).
HomepageHomepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port

Manual pages:
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist
There is no configure plist information for this port.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • nlopt>0:math/nlopt
Conflicts:
CONFLICTS_INSTALL:
  • nlopt-minimal
To install the port:
cd /usr/ports/math/nlopt/ && make install clean
To add the package, run one of these commands:
  • pkg install math/nlopt
  • pkg install nlopt
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: nlopt
Package flavors (<flavor>: <package>)
  • full: nlopt
  • minimal: nlopt-minimal
distinfo:
TIMESTAMP = 1770744225 SHA256 (stevengj-nlopt-v2.10.1_GH0.tar.gz) = 30d13ce16da119db3e987784f7864e35a562ec62c186352fae55cd003e6c58ff SIZE (stevengj-nlopt-v2.10.1_GH0.tar.gz) = 2064973

Packages (timestamps in pop-ups are UTC):
nlopt
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest2.10.1_12.10.1_1---n/an/an/a
FreeBSD:13:quarterly2.10.12.10.1---n/an/an/a
FreeBSD:14:latest2.11.02.11.0--2.11.0---
FreeBSD:14:quarterly2.11.02.11.0--2.11.0---
FreeBSD:15:latest2.11.02.11.0n/a-n/an/a-2.7.1_3
FreeBSD:15:quarterly2.11.02.11.0n/a-n/an/a--
FreeBSD:16:latest2.11.02.11.0n/a-n/an/a--
 

nlopt-minimal
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest2.10.1_12.10.1_1--2.10.1_1n/an/an/a
FreeBSD:13:quarterly2.10.12.10.1--2.10.1n/an/an/a
FreeBSD:14:latest2.11.02.11.0--2.11.0---
FreeBSD:14:quarterly2.11.02.11.0--2.11.0---
FreeBSD:15:latest2.11.02.11.0n/a-n/an/a2.7.1_32.7.1_3
FreeBSD:15:quarterly2.11.02.11.0n/a-n/an/a--
FreeBSD:16:latest2.11.02.11.0n/a-n/an/a--
 

Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. cmake : devel/cmake-core
  2. ninja : devel/ninja
  3. pkgconf>=1.3.0_1 : devel/pkgconf
  4. python3.11 : lang/python311
  5. py311-numpy>=1.16,1<1.27,1 : math/py-numpy@py311
  6. swig : devel/swig
Test dependencies:
  1. python3.11 : lang/python311
Runtime dependencies:
  1. python3.11 : lang/python311
  2. py311-numpy>=1.16,1<1.27,1 : math/py-numpy@py311
Library dependencies:
  1. libguile-3.0.so : lang/guile3
  2. libgc-threaded.so : devel/boehm-gc-threaded
  3. liboctave.so : math/octave
There are no ports dependent upon this port

Configuration Options:
No options to configure
Options name:
math_nlopt
USES:
cmake:testing guile:3.0,alias localbase octave:env pkgconfig python
FreshPorts was unable to extract/find any pkg message
Master Sites:
Expand this list (1 items)
Collapse this list.
  1. https://codeload.github.com/stevengj/nlopt/tar.gz/v2.10.1?dummy=/
Collapse this list.

Number of commits found: 2

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
2.10.1
11 Feb 2026 19:17:22
commit hash: c327e9e366a7bef5de376fdb014bab77d7fb2064commit hash: c327e9e366a7bef5de376fdb014bab77d7fb2064commit hash: c327e9e366a7bef5de376fdb014bab77d7fb2064commit hash: c327e9e366a7bef5de376fdb014bab77d7fb2064 files touched by this commit
Rainer Hurling (rhurlin) search for other commits by this committer
math/nlopt: Fix build by removing unneeded patch

After [1], files/CMakeLists.txt is not necessary any more.
Fix build by removing this file.

[1]
https://github.com/stevengj/nlopt/commit/a5426ead8d8478c46201c21860e789e47f15c5a3

MFH:		2026Q1
(cherry picked from commit 66661b5c15b7095b5ab6af5dd0a82b9d8a2d4744)
2.10.1
11 Feb 2026 15:35:30
commit hash: 9e73ed83f979bc85323f66fafbf77b1fcb9de72bcommit hash: 9e73ed83f979bc85323f66fafbf77b1fcb9de72bcommit hash: 9e73ed83f979bc85323f66fafbf77b1fcb9de72bcommit hash: 9e73ed83f979bc85323f66fafbf77b1fcb9de72b files touched by this commit
Rainer Hurling (rhurlin) search for other commits by this committer
math/nlopt: Update to 2.10.1

- Fix octave 10.x build
- Fix slsqp constraints count
- Fix build with libstdc++ debug iterators
- Fix PRAXIS evaluations count

Changelog:	https://github.com/stevengj/nlopt/compare/v2.10.0...v2.10.1

Reported by:	portscout, Repology
MFH:		2026Q1

(cherry picked from commit ad40be58e49374a67449798b926e0f48e5895d33)

Number of commits found: 2