diff options
author | rafael2k <rafael2k@370017ae-e619-0410-ac65-c121f96126d4> | 2009-04-28 16:56:58 +0000 |
---|---|---|
committer | rafael2k <rafael2k@370017ae-e619-0410-ac65-c121f96126d4> | 2009-04-28 16:56:58 +0000 |
commit | ae4bcc6913705978248b1def6ca69445b1eabd7d (patch) | |
tree | 6dd9a6e05dd10d5dd4f0272d61ba388b19e2dd9f /media/libs/gst-plugins-bad/gst-plugins-bad.SlackBuild | |
parent | 922c6e33197b1796d7a5648ba479abb5ec0c8aaa (diff) | |
download | slackbuilds-ae4bcc6913705978248b1def6ca69445b1eabd7d.tar.gz slackbuilds-ae4bcc6913705978248b1def6ca69445b1eabd7d.tar.bz2 |
gst-plugins-bad
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@2168 370017ae-e619-0410-ac65-c121f96126d4
Diffstat (limited to 'media/libs/gst-plugins-bad/gst-plugins-bad.SlackBuild')
-rwxr-xr-x | media/libs/gst-plugins-bad/gst-plugins-bad.SlackBuild | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/media/libs/gst-plugins-bad/gst-plugins-bad.SlackBuild b/media/libs/gst-plugins-bad/gst-plugins-bad.SlackBuild index f74f7d4b..424fb674 100755 --- a/media/libs/gst-plugins-bad/gst-plugins-bad.SlackBuild +++ b/media/libs/gst-plugins-bad/gst-plugins-bad.SlackBuild @@ -16,7 +16,8 @@ # # slackbuild for gst-plugins-bad, by Rafael Diniz # requires: gstreamer gst-plugins-base -# tested: gst-plugins-bad-0.10.7 +# tested: gst-plugins-bad-0.10.11 +# model: generic.mkSlackBuild $Rev: 805 $ # # Look for slackbuildrc @@ -31,13 +32,14 @@ CWD="$(pwd)" SRC_NAME="gst-plugins-bad" PKG_NAME="gst-plugins-bad" ARCH=${ARCH:=i486} -SRC_VERSION=${VERSION:=0.10.7} +SRC_VERSION=${VERSION:=0.10.11} 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-bad"} 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 |