diff options
author | rhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4> | 2008-04-25 16:22:06 +0000 |
---|---|---|
committer | rhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4> | 2008-04-25 16:22:06 +0000 |
commit | b92dd4c4019ac416c7f7ea6a8e9bd740b1762957 (patch) | |
tree | f9ab8d6f60aa16829d0c318c35018d34d181e7c5 /media/libs/faac/faac.SlackBuild | |
parent | c155919bf43a3cf42f33b780003b381153a6f2fd (diff) | |
download | slackbuilds-b92dd4c4019ac416c7f7ea6a8e9bd740b1762957.tar.gz slackbuilds-b92dd4c4019ac416c7f7ea6a8e9bd740b1762957.tar.bz2 |
faac: rebuilt from mkbuild
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@1826 370017ae-e619-0410-ac65-c121f96126d4
Diffstat (limited to 'media/libs/faac/faac.SlackBuild')
-rwxr-xr-x | media/libs/faac/faac.SlackBuild | 28 |
1 files changed, 28 insertions, 0 deletions
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" \ |