summaryrefslogtreecommitdiff
path: root/libraries/nlopt
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2022-02-06 11:41:59 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-02-07 00:08:51 +0700
commita3a0616993309f9d83c038bbde49c6e71bd93fec (patch)
treebe42048a8f669c2a70c8f809ee59a409373410e1 /libraries/nlopt
parent1edae9158dee61f841c1eeb2864b0b695c949d37 (diff)
downloadslackbuilds-a3a0616993309f9d83c038bbde49c6e71bd93fec.tar.gz
libraries/nlopt: Updated for version 2.7.1.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/nlopt')
-rw-r--r--libraries/nlopt/nlopt.SlackBuild33
-rw-r--r--libraries/nlopt/nlopt.info6
2 files changed, 17 insertions, 22 deletions
diff --git a/libraries/nlopt/nlopt.SlackBuild b/libraries/nlopt/nlopt.SlackBuild
index ba241fc6cf..780b93d3dc 100644
--- a/libraries/nlopt/nlopt.SlackBuild
+++ b/libraries/nlopt/nlopt.SlackBuild
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=nlopt
-VERSION=${VERSION:-2.4.2}
+VERSION=${VERSION:-2.7.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -79,29 +79,24 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --mandir=/usr/man \
- --docdir=/usr/doc/$PRGNAM-$VERSION \
- --enable-shared \
- --build=$ARCH-slackware-linux
-
-make
-make install DESTDIR=$PKG
+mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib$LIBDIRSUFFIX \
+ -DCMAKE_INSTALL_MANDIR=/usr/man \
+ -DCMAKE_BUILD_TYPE=Release ..
+ make
+ make install DESTDIR=$PKG
+cd ..
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-find $PKG/usr/man -type f -exec gzip -9 {} \;
-for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a README COPYING $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS README* NEWS* COPY* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/libraries/nlopt/nlopt.info b/libraries/nlopt/nlopt.info
index 3c084f48e8..b183a8208b 100644
--- a/libraries/nlopt/nlopt.info
+++ b/libraries/nlopt/nlopt.info
@@ -1,8 +1,8 @@
PRGNAM="nlopt"
-VERSION="2.4.2"
+VERSION="2.7.1"
HOMEPAGE="https://nlopt.readthedocs.io/en/latest/"
-DOWNLOAD="https://github.com/stevengj/nlopt/releases/download/nlopt-2.4.2/nlopt-2.4.2.tar.gz"
-MD5SUM="d0b8f139a4acf29b76dbae69ade8ac54"
+DOWNLOAD="https://github.com/stevengj/nlopt/archive/v2.7.1/nlopt-2.7.1.tar.gz"
+MD5SUM="ed1a3000a1c8c248d51df126dfcfaa78"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""