summaryrefslogtreecommitdiff
path: root/multimedia/gst-gnome-vfs/gst-gnome-vfs.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/gst-gnome-vfs/gst-gnome-vfs.SlackBuild')
-rw-r--r--multimedia/gst-gnome-vfs/gst-gnome-vfs.SlackBuild16
1 files changed, 10 insertions, 6 deletions
diff --git a/multimedia/gst-gnome-vfs/gst-gnome-vfs.SlackBuild b/multimedia/gst-gnome-vfs/gst-gnome-vfs.SlackBuild
index 211f4e6dcc..41f5212064 100644
--- a/multimedia/gst-gnome-vfs/gst-gnome-vfs.SlackBuild
+++ b/multimedia/gst-gnome-vfs/gst-gnome-vfs.SlackBuild
@@ -3,7 +3,7 @@
# Written by Marco Cecchetti (mrc.ildp@gmail.com)
PRGNAM=gst-gnome-vfs
-VERSION=${VERSION:-0.10.21}
+VERSION=${VERSION:-0.10.23}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -15,10 +15,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
@@ -27,7 +30,7 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf gst-plugins-base-$VERSION
-tar xvf $CWD/gst-plugins-base-$VERSION.tar.gz
+tar xvf $CWD/gst-plugins-base-$VERSION.tar.?z*
cd gst-plugins-base-$VERSION
chown -R root:root .
find . \
@@ -40,6 +43,7 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--enable-static=no \
--disable-nls \
--disable-debug \
@@ -60,9 +64,9 @@ CXXFLAGS="$SLKCFLAGS" \
make
-mkdir -p $PKG/usr/lib/gstreamer-0.10
-cp ext/gnomevfs/.libs/libgstgnomevfs.so $PKG/usr/lib/gstreamer-0.10
-cp ext/gnomevfs/.libs/libgstgnomevfs.la $PKG/usr/lib/gstreamer-0.10
+mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/gstreamer-0.10
+cp ext/gnomevfs/.libs/libgstgnomevfs.so $PKG/usr/lib${LIBDIRSUFFIX}/gstreamer-0.10
+cp ext/gnomevfs/.libs/libgstgnomevfs.la $PKG/usr/lib${LIBDIRSUFFIX}/gstreamer-0.10
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
@@ -78,4 +82,4 @@ 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}