From 3b81109e0d60a8d2868ffb183406195b613a5366 Mon Sep 17 00:00:00 2001 From: Patrick Atoon Date: Fri, 4 May 2012 08:22:09 +0200 Subject: [PATCH] Removing the need to rename patches on version changes. --- contrib/binaries-deps-versions | 13 +++++++++++++ contrib/build-pms-binaries.sh | 10 +++++----- ...4587-configure.patch => mplayer-configure.patch} | 0 ...1-ffmpeg-58c25724.patch => mplayer-ffmpeg.patch} | 0 .../{mplayer-r34883-SB32.patch => mplayer.patch} | 0 5 files changed, 18 insertions(+), 5 deletions(-) rename contrib/{mplayer-r34587-configure.patch => mplayer-configure.patch} (100%) rename contrib/{mplayer-r34866-SB31-ffmpeg-58c25724.patch => mplayer-ffmpeg.patch} (100%) rename contrib/{mplayer-r34883-SB32.patch => mplayer.patch} (100%) diff --git a/contrib/binaries-deps-versions b/contrib/binaries-deps-versions index 6eec60953..adf830478 100644 --- a/contrib/binaries-deps-versions +++ b/contrib/binaries-deps-versions @@ -1,3 +1,15 @@ +# +# This file defines the versions used by these scripts: +# +# download-pms-binaries-source.sh +# build-pms-binaries.sh +# +# Revisions for the source code patches: +# +# mplayer-configure.patch MPlayer r34587 +# mplayer-ffmpeg.patch MPlayer r34866-SB31, FFmpeg-58c25724 +# mplayer.patch MPlayer r34883-SB32 +# VERSION_BZIP2=1.0.6 VERSION_DCRAW=9.07 VERSION_ENCA=1.13 @@ -31,3 +43,4 @@ VERSION_X264=r2197 VERSION_XVID=1.3.2 VERSION_ZLIB=1.2.5 VERSION_YASM=1.2.0 + diff --git a/contrib/build-pms-binaries.sh b/contrib/build-pms-binaries.sh index 968b899bd..41224d068 100755 --- a/contrib/build-pms-binaries.sh +++ b/contrib/build-pms-binaries.sh @@ -775,7 +775,7 @@ build_ffmpeg() { fi # Apply SB patch that was used for the Windows version - $PATCH -p1 < $WORKDIR/mplayer-r34866-SB31-ffmpeg-58c25724.patch + $PATCH -p1 < $WORKDIR/mplayer-ffmpeg.patch exit_on_error $MAKE -j$THREADS @@ -1333,7 +1333,7 @@ build_mplayer() { # See https://svn.macports.org/ticket/30279 # Apply SB patch that was used for the Windows version - $PATCH -p0 < $WORKDIR/mplayer-r34883-SB32.patch + $PATCH -p0 < $WORKDIR/mplayer.patch exit_on_error # Theora and vorbis support seems broken in this revision, disable it for now @@ -1352,11 +1352,11 @@ build_mplayer() { export LDFLAGS="$LDFLAGS -O4 -fomit-frame-pointer -pipe" # Apply SB patch that was used for the Windows version - $PATCH -p0 < $WORKDIR/mplayer-r34883-SB32.patch + $PATCH -p0 < $WORKDIR/mplayer.patch exit_on_error - # mplayer configure patch for r34587-SB22 - $PATCH -p0 < $WORKDIR/mplayer-r34587-configure.patch + # mplayer configure patch + $PATCH -p0 < $WORKDIR/mplayer-configure.patch exit_on_error # libvorbis support seems broken in this revision, disable it for now diff --git a/contrib/mplayer-r34587-configure.patch b/contrib/mplayer-configure.patch similarity index 100% rename from contrib/mplayer-r34587-configure.patch rename to contrib/mplayer-configure.patch diff --git a/contrib/mplayer-r34866-SB31-ffmpeg-58c25724.patch b/contrib/mplayer-ffmpeg.patch similarity index 100% rename from contrib/mplayer-r34866-SB31-ffmpeg-58c25724.patch rename to contrib/mplayer-ffmpeg.patch diff --git a/contrib/mplayer-r34883-SB32.patch b/contrib/mplayer.patch similarity index 100% rename from contrib/mplayer-r34883-SB32.patch rename to contrib/mplayer.patch