# Description: Nonlinear optimization library # URL: https://nlopt.readthedocs.io/ # Maintainer: Petar Petrov, slackalaxy at gmail dot com # Depends on: name=nlopt version=2.7.1 release=1 source=(https://github.com/stevengj/nlopt/archive/v${version}.tar.gz) build() { cd $name-$version mkdir -p build cd build cmake \ -D CMAKE_FLAGS:STRING="$CFLAGS" \ -D CMAKE_CXX_FLAGS:STRING="$CXXFLAGS" \ -D CMAKE_INSTALL_PREFIX=/usr \ -D CMAKE_BUILD_TYPE=Release .. make ctest --output-on-failure make install DESTDIR=$PKG }