summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorMauro Giachero <mauro dot giachero at gmail dot com>2010-05-13 00:32:05 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:32:05 +0200
commite4f3238675f54219a9469394ec4bbb48950b6510 (patch)
tree3ae7c451a69f1ccf8a10ff03d3a0d76ddeb1c294 /libraries
parent9cb0403dbf17f901f66d11ee7fd05790a4c8d69e (diff)
downloadslackbuilds-e4f3238675f54219a9469394ec4bbb48950b6510.tar.gz
libraries/libv4l: Updated for version 0.5.97
Diffstat (limited to 'libraries')
-rw-r--r--libraries/libv4l/libv4l.SlackBuild20
-rw-r--r--libraries/libv4l/libv4l.info4
2 files changed, 19 insertions, 5 deletions
diff --git a/libraries/libv4l/libv4l.SlackBuild b/libraries/libv4l/libv4l.SlackBuild
index ede68c1709..a69708efd6 100644
--- a/libraries/libv4l/libv4l.SlackBuild
+++ b/libraries/libv4l/libv4l.SlackBuild
@@ -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}
diff --git a/libraries/libv4l/libv4l.info b/libraries/libv4l/libv4l.info
index 6ecb8afbeb..8cbe367a4d 100644
--- a/libraries/libv4l/libv4l.info
+++ b/libraries/libv4l/libv4l.info
@@ -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"