You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build-ffmpeg-mingw32.sh 554 B

12345678910111213141516171819
  1. #!/bin/sh
  2. set -e
  3. T="$HOME/lol/external/ffmpeg-`date +%Y%m%d`"
  4. make distclean || true
  5. ./configure --arch=i686 --target-os=mingw32 --cross-prefix=i686-w64-mingw32-
  6. make -j6
  7. make install DESTDIR="$T" LIBDIR="$T/lib/i686-w64-mingw32" INCDIR="$T/include"
  8. make distclean || true
  9. ./configure --arch=x86_64 --target-os=mingw32 --cross-prefix=x86_64-w64-mingw32-
  10. make -j6
  11. make install DESTDIR="$T" LIBDIR="$T/lib/x86_64-w64-mingw32"
  12. rm -rf "$T/usr"
  13. find "$T" -name 'lib*.a' | sed -e 's/\(.*\)lib\(.*\).a/& \1\2.lib/' | while read a b; do mv "$a" "$b"; done