From b92dd4c4019ac416c7f7ea6a8e9bd740b1762957 Mon Sep 17 00:00:00 2001 From: rhatto Date: Fri, 25 Apr 2008 16:22:06 +0000 Subject: faac: rebuilt from mkbuild git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@1826 370017ae-e619-0410-ac65-c121f96126d4 --- media/libs/faac/faac.SlackBuild | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'media/libs/faac/faac.SlackBuild') diff --git a/media/libs/faac/faac.SlackBuild b/media/libs/faac/faac.SlackBuild index 694112b6..8f6e1306 100755 --- a/media/libs/faac/faac.SlackBuild +++ b/media/libs/faac/faac.SlackBuild @@ -89,6 +89,34 @@ tar --no-same-owner --no-same-permissions -xvf "$SRC_DIR/$SRC" || exit $ERROR_TA PKG_SRC="$PWD/`ls -l | awk '/^d/ { print $8 }'`" cd "$PKG_SRC" +# Patch source +patches=" + $PKG_NAME.diff $PKG_NAME-$PKG_VERSION.diff + $PKG_NAME-$PKG_VERSION-$ARCH.diff $PKG_NAME-$ARCH.diff" +for patch in $patches; do + if [ -f "$CWD/$patch" ]; then + patch -Np1 < "$CWD/$patch" || exit $ERROR_PATCH + elif [ -f "$CWD/patches/$patch" ]; then + patch -Np1 < "$CWD/patches/$patch" || exit $ERROR_PATCH + fi +done + +if echo [[PATCH URLS]] | grep -q -v "PATCH URLS"; then + for patch_url in [[PATCH URLS]]; do + patch="`basename $patch_url`" + if [ ! -s "$SRC_DIR/$patch" ]; then + wget "$patch_url" -O "$SRC_DIR/$patch" || exit $ERROR_WGET + fi + if [ "`basename $patch .gz`" != "$patch" ]; then + gzip -dc $SRC_DIR/$patch | patch -Np1 || exit $ERROR_PATCH + elif [ "`basename $patch .bz2`" != "$patch" ]; then + bzip2 -dc $SRC_DIR/$patch | patch -Np1 || exit $ERROR_PATCH + else + patch -Np1 < "$SRC_DIR/$patch" || exit $ERROR_PATCH + fi + done +fi + # Configure sh ./bootstrap CFLAGS="$SLKCFLAGS" \ -- cgit v1.2.3