diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2022-02-07 15:35:44 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-02-07 23:04:38 +0700 |
commit | bf8cac8e5def1376afa53fa1eb56c06f9f65217e (patch) | |
tree | db020d16cceda0f71d079317b3e86eb7afdbe0b0 /libraries/libcifpp/libcifpp.SlackBuild | |
parent | b3fe415b1ae45dd02af76cd8474daed9b9f89638 (diff) |
libraries/libcifpp: Updated for version 3.0.0.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/libcifpp/libcifpp.SlackBuild')
-rw-r--r-- | libraries/libcifpp/libcifpp.SlackBuild | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/libraries/libcifpp/libcifpp.SlackBuild b/libraries/libcifpp/libcifpp.SlackBuild index 69810923acb06..a6d67c082e0eb 100644 --- a/libraries/libcifpp/libcifpp.SlackBuild +++ b/libraries/libcifpp/libcifpp.SlackBuild @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=libcifpp -VERSION=${VERSION:-1.0.0} +VERSION=${VERSION:-3.0.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -79,19 +79,18 @@ 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 \ - --build=$ARCH-slackware-linux - -make -make install libdir=$PKG/usr/lib${LIBDIRSUFFIX} +mkdir -p build +cd build + cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DMAN_INSTALL_DIR=/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 |