From 3164a5113772151c36dd30dd30a2bf7faef9685e Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Sun, 16 Dec 2012 17:43:03 -0500 Subject: libraries/libunicap: Updated for version 0.9.12. Signed-off-by: dsomero --- libraries/libunicap/libunicap.SlackBuild | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'libraries/libunicap/libunicap.SlackBuild') diff --git a/libraries/libunicap/libunicap.SlackBuild b/libraries/libunicap/libunicap.SlackBuild index b067498b9ab93..61c3b213d3595 100644 --- a/libraries/libunicap/libunicap.SlackBuild +++ b/libraries/libunicap/libunicap.SlackBuild @@ -1,13 +1,13 @@ #!/bin/sh -# Slackware build script for unicap +# Slackware build script for libunicap # Written by Matteo Bernardini # based on slackbuilds.org default template PRGNAM=libunicap VERSION=${VERSION:-0.9.12} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -52,9 +52,9 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -# kernel in 13.37 doesn't have this header anymore -# http://lists.fedoraproject.org/pipermail/devel/2011-February/148519.html -patch -p1 < $CWD/disable-v4l.patch +# This header has moved +sed -i "s|linux\/videodev\.|libv4l1-videodev.|" \ + cpi/v4l/v4l.c cpi/v4l2cpi/uvcvideo.h CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -65,13 +65,18 @@ CXXFLAGS="$SLKCFLAGS" \ --localstatedir=/var \ --mandir=/usr/man \ --disable-static \ - --disable-v4l \ --docdir=/usr/doc/$PRGNAM-$VERSION \ --build=$ARCH-slackware-linux make make install DESTDIR=$PKG +# Move packaged rules to correct location. +mkdir $PKG/lib +mv $PKG/etc/udev $PKG/lib && rmdir $PKG/etc +# Fix for the new udev syntax +sed -i "s|SYSFS|ATTRS|g" $PKG/lib/udev/rules.d/50-euvccam.rules + find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -- cgit v1.2.3