diff options
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/nlopt/nlopt.SlackBuild | 33 | ||||
-rw-r--r-- | libraries/nlopt/nlopt.info | 6 |
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="" |