diff options
author | Larry Hajali <larryhaja[at]gmail[dot]com> | 2015-08-25 06:46:35 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-08-25 06:46:35 +0700 |
commit | 0db9422a6cb79a11395523d2429e16a332f1397a (patch) | |
tree | 5c12132e4893fa6d02c6fda851d778aea7a469fc /libraries | |
parent | 3d1844138e327fbe4d27c31bf6b4bcae79fa8d57 (diff) |
libraries/libcec: Updated for version 3.0.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/libcec/libcec.SlackBuild | 35 | ||||
-rw-r--r-- | libraries/libcec/libcec.info | 8 |
2 files changed, 24 insertions, 19 deletions
diff --git a/libraries/libcec/libcec.SlackBuild b/libraries/libcec/libcec.SlackBuild index dec95aed15238..c999ae146a564 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 diff --git a/libraries/libcec/libcec.info b/libraries/libcec/libcec.info index 8bbb0c947dd8f..f3542436bdc63 100644 --- a/libraries/libcec/libcec.info +++ b/libraries/libcec/libcec.info @@ -1,10 +1,10 @@ PRGNAM="libcec" -VERSION="2.2.0" +VERSION="3.0.1" HOMEPAGE="http://libcec.pulse-eight.com/" -DOWNLOAD="https://github.com/Pulse-Eight/libcec/archive/libcec-2.2.0.tar.gz" -MD5SUM="006df0d807d4b72bc6859e592c7a70eb" +DOWNLOAD="https://github.com/Pulse-Eight/libcec/archive/libcec-3.0.1.tar.gz" +MD5SUM="216ab1a5f04300dcad9d5b5d67ef9100" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="lockdev" +REQUIRES="lockdev platform" MAINTAINER="Larry Hajali" EMAIL="larryhaja[at]gmail[dot]com" |