summaryrefslogtreecommitdiff
path: root/libraries/ois/ois.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/ois/ois.SlackBuild')
-rw-r--r--libraries/ois/ois.SlackBuild30
1 files changed, 16 insertions, 14 deletions
diff --git a/libraries/ois/ois.SlackBuild b/libraries/ois/ois.SlackBuild
index 48ef5f043b..e025b00a4c 100644
--- a/libraries/ois/ois.SlackBuild
+++ b/libraries/ois/ois.SlackBuild
@@ -24,8 +24,8 @@
PRGNAM=ois
SRCDIR=OIS
-VERSION=${VERSION:-1.4.0}
-SRCVER=${SRCVER:-1.4}
+VERSION=${VERSION:-1.5.0}
+SRCVER=1.5
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -71,25 +71,27 @@ 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 {} \;
-[ ! -x ./bootstrap ] && chmod +x ./bootstrap
-./bootstrap
+sed -i \
+ -e "s|lib$|lib${LIBDIRSUFFIX}|" \
+ -e "s|\"lib\"|\"lib${LIBDIRSUFFIX}\"|" CMakeLists.txt
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --enable-static=no \
- --build=$ARCH-slackware-linux
+mkdir -p build
+cd build
+ cmake -G "Unix Makefiles" \
+ -DCMAKE_INSTALL_PREFIX:PATH="/usr" \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_BUILD_TYPE=Release ..
-make
-make install DESTDIR=$PKG
+ make VERBOSE=1
+ 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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a README.md $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a *.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install