Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@users.sourceforge.net>2010-08-02 03:00:32 +0400
committerXhmikosR <xhmikosr@users.sourceforge.net>2010-08-02 03:00:32 +0400
commit6eebd120acbb99fd6b60b68f64d9f7652b8f8c3a (patch)
tree33c02b8e101a3b5ebccafd67b7a28e107bc29aa9 /src/filters/transform/MPCVideoDec
parente396731d863e007f5a1ee2c82ee4d456ed0bf0dd (diff)
cosmetics in buildmingwlibs.sh
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@2176 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/transform/MPCVideoDec')
-rw-r--r--src/filters/transform/MPCVideoDec/ffmpeg_x64/buildmingwlibs.sh59
1 files changed, 29 insertions, 30 deletions
diff --git a/src/filters/transform/MPCVideoDec/ffmpeg_x64/buildmingwlibs.sh b/src/filters/transform/MPCVideoDec/ffmpeg_x64/buildmingwlibs.sh
index 41d415b76..16e2772a0 100644
--- a/src/filters/transform/MPCVideoDec/ffmpeg_x64/buildmingwlibs.sh
+++ b/src/filters/transform/MPCVideoDec/ffmpeg_x64/buildmingwlibs.sh
@@ -33,12 +33,11 @@ To use this script, you should first:
$0 [ --help ] [ --updatemingw ] [ --compilemingw ]
- --help Causes all other arguments to be ignored and results in
- the display of this text
+ --help Displays this text
- --updatemingw Get the latest MinGW64 and rebuild library
+ --updatemingw Gets the latest MinGW64 and rebuilds the library
- --compilemingw Starts MinGW64 compilation
+ --compilemingw Starts MinGW64 compilation
EOF
exit
;;
@@ -60,33 +59,33 @@ for i in "$PF" "$PF/$TGT" "build" "$BD/mingw" "$BD/mingw/build-$HST"; do
done
if [[ $updatemingw == "true" ]]; then
- echo "Downloading MinGW64 crt and headers..."
- cd "$BD/mingw"
-
- # remove patched files
- if [ -f mingw-w64-crt/misc/delayimp.c ];
- then
- rm mingw-w64-crt/misc/delayimp.c
- fi
- if [ -f mingw-w64-crt/misc/mingw_getsp.S ];
- then
- rm mingw-w64-crt/misc/mingw_getsp.S
- fi
-
- svn -q co https://mingw-w64.svn.sourceforge.net/svnroot/mingw-w64/branches/releases/v1.0 .
-
- # apply Mingw64 compatibility patch
- patch -p0 -i ../../mpchc_Mingw64.patch
-
- dest="$PF/$TGT/include"
- [ -d "$dest" ] && echo "$dest" already exists || ( cp -prf mingw-w64-headers/include "$dest" && find "$dest" -name ".svn" | xargs rm -rf )
+ echo "Downloading MinGW64 crt and headers..."
+ cd "$BD/mingw"
+
+ # remove patched files
+ if [ -f mingw-w64-crt/misc/delayimp.c ];
+ then
+ rm mingw-w64-crt/misc/delayimp.c
+ fi
+ if [ -f mingw-w64-crt/misc/mingw_getsp.S ];
+ then
+ rm mingw-w64-crt/misc/mingw_getsp.S
+ fi
+
+ svn -q co https://mingw-w64.svn.sourceforge.net/svnroot/mingw-w64/branches/releases/v1.0 .
+
+ # apply Mingw64 compatibility patch
+ patch -p0 -i ../../mpchc_Mingw64.patch
+
+ dest="$PF/$TGT/include"
+ [ -d "$dest" ] && echo "$dest" already exists || ( cp -prf mingw-w64-headers/include "$dest" && find "$dest" -name ".svn" | xargs rm -rf )
fi
if [[ $compilewmingw == "true" ]]; then
- echo "Compiling MinGW64 crt and headers..."
- cd "$BD/mingw/build-$HST"
- ../mingw-w64-crt/configure --prefix="$PF" --with-sysroot="$PF" --host="$TGT" --disable-lib32 || exit 1
- make CFLAGS="-fno-leading-underscore -mno-cygwin" -s && make install || exit 1
- cp "/mingw/lib/gcc/x86_64-w64-mingw32/$GCCVER/libgcc.a" "$BD/../../../../../../lib64/libgcc.a"
- cp "$PF/x86_64-w64-mingw32/lib/libmingwex.a" "$BD/../../../../../../lib64/libmingwex.a"
+ echo "Compiling MinGW64 crt and headers..."
+ cd "$BD/mingw/build-$HST"
+ ../mingw-w64-crt/configure --prefix="$PF" --with-sysroot="$PF" --host="$TGT" --disable-lib32 || exit 1
+ make CFLAGS="-fno-leading-underscore -mno-cygwin" -s && make install || exit 1
+ cp "/mingw/lib/gcc/x86_64-w64-mingw32/$GCCVER/libgcc.a" "$BD/../../../../../../lib64/libgcc.a"
+ cp "$PF/x86_64-w64-mingw32/lib/libmingwex.a" "$BD/../../../../../../lib64/libmingwex.a"
fi