From 0db9422a6cb79a11395523d2429e16a332f1397a Mon Sep 17 00:00:00 2001 From: Larry Hajali Date: Tue, 25 Aug 2015 06:46:35 +0700 Subject: libraries/libcec: Updated for version 3.0.1. Signed-off-by: Willy Sudiarto Raharjo --- libraries/libcec/libcec.SlackBuild | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) (limited to 'libraries/libcec/libcec.SlackBuild') diff --git a/libraries/libcec/libcec.SlackBuild b/libraries/libcec/libcec.SlackBuild index dec95aed1523..c999ae146a56 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 +# Copyright 2011-2015 Larry Hajali # 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 -- cgit v1.2.3