diff options
author | Larry Hajali <larryhaja[at]gmail[dot]com> | 2011-10-18 17:17:19 -0500 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2011-10-22 10:17:08 -0200 |
commit | 158369f3643f5813aed50a87b87c9fb546f410b0 (patch) | |
tree | 5d198d98e1760e70e62e00d6a36dcda0f4108834 /libraries/libdc1394/libdc1394.SlackBuild | |
parent | 3adb386c508261fcdb6d21cdf6cc9664c24648ee (diff) | |
download | slackbuilds-158369f3643f5813aed50a87b87c9fb546f410b0.tar.gz |
libraries/libdc1394: Updated for version 2.1.3.
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'libraries/libdc1394/libdc1394.SlackBuild')
-rw-r--r-- | libraries/libdc1394/libdc1394.SlackBuild | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/libraries/libdc1394/libdc1394.SlackBuild b/libraries/libdc1394/libdc1394.SlackBuild index f404832942..ef85d7dc36 100644 --- a/libraries/libdc1394/libdc1394.SlackBuild +++ b/libraries/libdc1394/libdc1394.SlackBuild @@ -3,16 +3,14 @@ # Written by Larry Hajali <larryhaja[at]gmail[dot]com> PRGNAM=libdc1394 -VERSION=${VERSION:-2.1.2} +VERSION=${VERSION:-2.1.3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -# Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; arm*) ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: *) ARCH=$( uname -m ) ;; esac fi @@ -51,33 +49,35 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +patch -p2 < $CWD/libdc1394-usbinit.patch +patch -p2 < $CWD/libdc1394-videodev.h.patch + +autoreconf -ivf + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ - --sysconfdir=/etc \ - --localstatedir=/var \ --mandir=/usr/man \ --enable-doxygen-man \ - --enable-doxygen-html \ --docdir=/usr/doc/$PRGNAM-$VERSION \ --enable-static=no \ --with-x \ --build=$ARCH-slackware-linux make -make install-strip DESTDIR=$PKG +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 -( cd $PKG/usr/man - find . -type f -exec gzip -9 {} \; - for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done -) +find $PKG/usr/man -type f -exec gzip -9 {} \; mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - AUTHORS ChangeLog COPYING INSTALL NEWS README doc/html \ - $PKG/usr/doc/$PRGNAM-$VERSION + AUTHORS ChangeLog COPYING INSTALL NEWS README \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |