aboutsummaryrefslogtreecommitdiff
path: root/media/libs/gst-plugins-good/gst-plugins-good.SlackBuild
diff options
context:
space:
mode:
authorrafael2k <rafael2k@370017ae-e619-0410-ac65-c121f96126d4>2009-04-28 16:41:13 +0000
committerrafael2k <rafael2k@370017ae-e619-0410-ac65-c121f96126d4>2009-04-28 16:41:13 +0000
commit922c6e33197b1796d7a5648ba479abb5ec0c8aaa (patch)
tree92b35700c92d67f3a68f7a42297cc812c0375e94 /media/libs/gst-plugins-good/gst-plugins-good.SlackBuild
parent2b41dfce7114ff00d707cdf77b83da78d1cb4798 (diff)
downloadslackbuilds-922c6e33197b1796d7a5648ba479abb5ec0c8aaa.tar.gz
slackbuilds-922c6e33197b1796d7a5648ba479abb5ec0c8aaa.tar.bz2
gst-plugins-good
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@2167 370017ae-e619-0410-ac65-c121f96126d4
Diffstat (limited to 'media/libs/gst-plugins-good/gst-plugins-good.SlackBuild')
-rwxr-xr-xmedia/libs/gst-plugins-good/gst-plugins-good.SlackBuild14
1 files changed, 9 insertions, 5 deletions
diff --git a/media/libs/gst-plugins-good/gst-plugins-good.SlackBuild b/media/libs/gst-plugins-good/gst-plugins-good.SlackBuild
index 33e4a33a..19d59afb 100755
--- a/media/libs/gst-plugins-good/gst-plugins-good.SlackBuild
+++ b/media/libs/gst-plugins-good/gst-plugins-good.SlackBuild
@@ -16,7 +16,8 @@
#
# slackbuild for gst-plugins-good, by Rafael Diniz
# requires: gstreamer gst-plugins-base
-# tested: gst-plugins-good-0.10.8
+# tested: gst-plugins-good-0.10.14
+# model: generic.mkSlackBuild $Rev: 805 $
#
# Look for slackbuildrc
@@ -31,13 +32,14 @@ CWD="$(pwd)"
SRC_NAME="gst-plugins-good"
PKG_NAME="gst-plugins-good"
ARCH=${ARCH:=i486}
-SRC_VERSION=${VERSION:=0.10.8}
+SRC_VERSION=${VERSION:=0.10.14}
PKG_VERSION="$(echo "$SRC_VERSION" | tr '[[:blank:]-]' '_')"
BUILD=${BUILD:=1rd}
SRC_DIR=${SRC_DIR:=$CWD}/$PKG_NAME
TMP=${TMP:=/tmp}
PKG=${PKG:=$TMP/package-$PKG_NAME}
REPOS=${REPOS:=$TMP}
+SLACKBUILD_PATH=${SLACKBUILD_PATH:="media/libs/gst-plugins-good"}
PREFIX=${PREFIX:=/usr}
PKG_WORK="$TMP/$SRC_NAME"
CONF_OPTIONS=${CONF_OPTIONS:="--sysconfdir=/etc --with-docdir=/usr/doc/$PKG_NAME-$PKG_VERSION"}
@@ -47,9 +49,9 @@ NUMJOBS=${NUMJOBS:="-j3"}
LIBDIR="$PREFIX/lib"
if [ "$ARCH" = "i386" ]; then
- SLKCFLAGS="-O2 -march=i386 -mcpu=i686"
+ SLKCFLAGS="-O2 -march=i386 -mtune=i686"
elif [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mcpu=i686"
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686"
elif [ "$ARCH" = "s390" ]; then
@@ -65,6 +67,7 @@ ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33
ERROR_MD5=34; ERROR_CONF=35; ERROR_HELP=36
ERROR_TAR=37; ERROR_MKPKG=38; ERROR_GPG=39
ERROR_PATCH=40; ERROR_VCS=41; ERROR_MKDIR=42
+ERROR_MANIFEST=43;
# Clean up any leftovers of previous builds
rm -rf "$PKG_WORK" 2> /dev/null
@@ -151,7 +154,8 @@ fi
# Build the package
cd "$PKG"
-makepkg -l y -c n "$REPOS/$PKG_NAME-$PKG_VERSION-$ARCH-$BUILD.tgz" || exit $ERROR_MKPKG
+mkdir -p $REPOS/$SLACKBUILD_PATH
+makepkg -l y -c n "$REPOS/$SLACKBUILD_PATH/$PKG_NAME-$PKG_VERSION-$ARCH-$BUILD.tgz" || exit $ERROR_MKPKG
# Delete source and build directories if requested
if [ "$CLEANUP" == "yes" ] || [ "$1" = "--cleanup" ]; then