diff options
Diffstat (limited to 'libraries/libunicap/libunicap.SlackBuild')
-rw-r--r-- | libraries/libunicap/libunicap.SlackBuild | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/libraries/libunicap/libunicap.SlackBuild b/libraries/libunicap/libunicap.SlackBuild index b067498b9a..61c3b213d3 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 <ponce@slackbuilds.org> # 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 |