libraries/libv4l: Updated for version 0.5.97

This commit is contained in:
Mauro Giachero 2010-05-13 00:32:05 +02:00 committed by David Somero
parent 9cb0403dbf
commit e4f3238675
2 changed files with 19 additions and 5 deletions

View file

@ -35,10 +35,13 @@ 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"
fi
set -e
@ -56,8 +59,15 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
make CFLAGS+="$SLKCFLAGS" CXXFLAGS+="$SLKCFLAGS"
make install PREFIX=/usr DESTDIR=$PKG
make \
CFLAGS+="$SLKCFLAGS" \
CXXFLAGS+="$SLKCFLAGS" \
PREFIX=/usr \
LIBDIR=/usr/lib${LIBDIRSUFFIX}
make install \
PREFIX=/usr \
LIBDIR=/usr/lib${LIBDIRSUFFIX} \
DESTDIR=$PKG
( cd $PKG
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
@ -65,11 +75,13 @@ make install PREFIX=/usr DESTDIR=$PKG
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a [CRT]* $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
COPYING* ChangeLog README* TODO \
$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.tgz
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View file

@ -1,8 +1,10 @@
PRGNAM="libv4l"
VERSION="0.5.97"
HOMEPAGE="http://hansdegoede.livejournal.com/3636.html"
DOWNLOAD="http://people.atrpms.net/~hdegoede/libv4l-0.5.97.tar.gz"
DOWNLOAD="http://dbg.download.sourcemage.org/mirror/libv4l-0.5.97.tar.gz"
DOWNLOAD_x86_64=""
MD5SUM="2d5930f44b43958191c2b092ad8a416c"
MD5SUM_x86_64=""
MAINTAINER="Mauro Giachero"
EMAIL="mauro dot giachero at gmail dot com"
APPROVED="dsomero"