summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja[at]gmail[dot]com>2012-01-06 06:55:53 -0600
committerErik Hanson <erik@slackbuilds.org>2012-01-06 06:55:53 -0600
commit70f43990ff23f401cbd03218dfaa289c32b11f88 (patch)
tree89705bfebc3d1d5a6f59cdd51dd4a5d9860743cc
parent9a9ae4daf064f950013a30696596119f66157085 (diff)
downloadslackbuilds-70f43990ff23f401cbd03218dfaa289c32b11f88.tar.gz
libraries/libcec: Added (library for the Pulse-Eight USB - HDMI CEC adaptor)
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
-rw-r--r--libraries/libcec/README6
-rw-r--r--libraries/libcec/libcec.SlackBuild82
-rw-r--r--libraries/libcec/libcec.info10
-rw-r--r--libraries/libcec/slack-desc19
4 files changed, 117 insertions, 0 deletions
diff --git a/libraries/libcec/README b/libraries/libcec/README
new file mode 100644
index 0000000000..451611c622
--- /dev/null
+++ b/libraries/libcec/README
@@ -0,0 +1,6 @@
+libCEC is an open-source dual licensed library designed for communicating
+with the Pulse-Eight USB - HDMI CEC Adaptor.
+
+Note: when downloading with wget or through sbopkg add the
+'--content-disposition' flag to get proper tarball. Otherwise, it will
+just be downloaded as libcec-$VERSION. :/
diff --git a/libraries/libcec/libcec.SlackBuild b/libraries/libcec/libcec.SlackBuild
new file mode 100644
index 0000000000..c339ee8373
--- /dev/null
+++ b/libraries/libcec/libcec.SlackBuild
@@ -0,0 +1,82 @@
+#!/bin/sh
+
+# Slackware build script for libcec
+
+# Written by Larry Hajali <larryhaja[at]gmail[dot]com>
+
+PRGNAM=libcec
+VERSION=${VERSION:-1.3.1}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+[ -e ${PRGNAM}-${VERSION} ] && mv ${PRGNAM}-${VERSION} Pulse-Eight-libcec-$PRGNAM-$VERSION-0-gfe0cd8a.tar.gz
+DIRNAME=$(tar -tf $CWD/Pulse-Eight-libcec-$PRGNAM-$VERSION-0-gfe0cd8a.tar.gz | head -1)
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $DIRNAME
+tar xvf $CWD/Pulse-Eight-libcec-$PRGNAM-$VERSION-0-gfe0cd8a.tar.gz
+cd $DIRNAME
+chown -R root:root .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
+
+autoreconf -vif
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --enable-static=no \
+ --disable-dependency-tracking \
+ --build=$ARCH-slackware-linux
+
+make
+make install DESTDIR=$PKG
+
+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 AUTHORS COPYING README $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/libraries/libcec/libcec.info b/libraries/libcec/libcec.info
new file mode 100644
index 0000000000..7b83771323
--- /dev/null
+++ b/libraries/libcec/libcec.info
@@ -0,0 +1,10 @@
+PRGNAM="libcec"
+VERSION="1.3.1"
+HOMEPAGE="http://libcec.pulse-eight.com/"
+DOWNLOAD="https://github.com/Pulse-Eight/libcec/tarball/libcec-1.3.1"
+MD5SUM="39cea6861f98d26509edf35220f45ec3"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="Larry Hajali"
+EMAIL="larryhaja[at]gmail[dot]com"
+APPROVED="Erik Hanson"
diff --git a/libraries/libcec/slack-desc b/libraries/libcec/slack-desc
new file mode 100644
index 0000000000..b0ba1ae8f9
--- /dev/null
+++ b/libraries/libcec/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+libcec: libcec (library for the Pulse-Eight USB - HDMI CEC adaptor)
+libcec:
+libcec: libCEC is an open-source dual licensed library designed for
+libcec: communicating with the Pulse-Eight USB - HDMI CEC Adaptor.
+libcec:
+libcec: Homepage: http://libcec.pulse-eight.com/
+libcec:
+libcec:
+libcec:
+libcec:
+libcec: