summaryrefslogtreecommitdiff
path: root/libraries/libcec/libcec.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libcec/libcec.SlackBuild')
-rw-r--r--libraries/libcec/libcec.SlackBuild35
1 files changed, 20 insertions, 15 deletions
diff --git a/libraries/libcec/libcec.SlackBuild b/libraries/libcec/libcec.SlackBuild
index dec95aed15..c999ae146a 100644
--- a/libraries/libcec/libcec.SlackBuild
+++ b/libraries/libcec/libcec.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for libcec
-# Copyright 2011-2014 Larry Hajali <larryhaja[at]gmail[dot]com>
+# Copyright 2011-2015 Larry Hajali <larryhaja[at]gmail[dot]com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=libcec
-VERSION=${VERSION:-2.2.0}
+VERSION=${VERSION:-3.0.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -69,29 +69,34 @@ 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 {} \;
-autoreconf -vif
+# Fix python install folder.
+sed -i \
+ -e "s|lib/|lib${LIBDIRSUFFIX}/|" -e 's|dist-|site-|' \
+ src/$PRGNAM/cmake/CheckPlatformSupport.cmake
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --enable-static=no \
- --disable-dependency-tracking \
- --disable-silent-rules \
- --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
+# Fix permissions on python file.
+chmod 755 $PKG/usr/bin/pyCecClient.py
+
install -D -m 0644 debian/cec-client.1 $PKG/usr/man/man1/cec-client.1
find $PKG/usr/man -type f -exec gzip -9 {} \;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS COPYING README $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS ChangeLog COPYING README.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install