diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/faac.mk | 29 | ||||
-rw-r--r-- | src/faad2-1-uint.patch | 10 | ||||
-rw-r--r-- | src/faad2.mk | 29 | ||||
-rw-r--r-- | src/ffmpeg.mk | 53 | ||||
-rw-r--r-- | src/lame.mk | 28 | ||||
-rw-r--r-- | src/libvpx-1-config.patch | 13 | ||||
-rw-r--r-- | src/libvpx.mk | 33 | ||||
-rw-r--r-- | src/opencore-amr.mk | 28 | ||||
-rw-r--r-- | src/x264-1-ifdef.patch | 21 | ||||
-rw-r--r-- | src/x264.mk | 29 |
10 files changed, 273 insertions, 0 deletions
diff --git a/src/faac.mk b/src/faac.mk new file mode 100644 index 0000000..28548a8 --- /dev/null +++ b/src/faac.mk @@ -0,0 +1,29 @@ +# This file is part of mingw-cross-env. +# See doc/index.html for further information. + +# faac +PKG := faac +$(PKG)_IGNORE := +$(PKG)_VERSION := 1.28 +$(PKG)_CHECKSUM := d00b023a3642f81bb1fb13d962a65079121396ee +$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) +$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz +$(PKG)_WEBSITE := http://www.audiocoding.com/ +$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)-src/$(PKG)-$($(PKG)_VERSION)/$($(PKG)_FILE) +$(PKG)_DEPS := gcc faad2 + +define $(PKG)_UPDATE + $(call SOURCEFORGE_FILES,http://sourceforge.net/projects/faac/files/faac/) | \ + $(SED) -n 's,.*faac-\([0-9][^>]*\)\.tar.*,\1,p' | \ + tail -1 +endef + +define $(PKG)_BUILD + cd '$(1)' && ./configure \ + --host='$(TARGET)' \ + --prefix='$(PREFIX)/$(TARGET)' \ + --disable-shared \ + --without-mp4v2 + $(MAKE) -C '$(1)' -j '$(JOBS)' + $(MAKE) -C '$(1)' -j 1 install +endef diff --git a/src/faad2-1-uint.patch b/src/faad2-1-uint.patch new file mode 100644 index 0000000..3be04d9 --- /dev/null +++ b/src/faad2-1-uint.patch @@ -0,0 +1,10 @@ +--- ./frontend/main.c.backup 2010-07-01 16:53:48.563042615 +0200 ++++ ./frontend/main.c 2010-07-01 16:54:03.379043126 +0200 +@@ -31,7 +31,6 @@ + #ifdef _WIN32 + #define WIN32_LEAN_AND_MEAN + #include <windows.h> +-#define off_t __int64 + #else + #include <time.h> + #endif diff --git a/src/faad2.mk b/src/faad2.mk new file mode 100644 index 0000000..0fa0287 --- /dev/null +++ b/src/faad2.mk @@ -0,0 +1,29 @@ +# This file is part of mingw-cross-env. +# See doc/index.html for further information. + +# faad2 +PKG := faad2 +$(PKG)_IGNORE := +$(PKG)_VERSION := 2.7 +$(PKG)_CHECKSUM := 80eaaa5cc576c35dd28863767b795c50cbcc0511 +$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) +$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz +$(PKG)_WEBSITE := http://www.audiocoding.com/ +$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/faac/$(PKG)-src/$(PKG)-$($(PKG)_VERSION)/$($(PKG)_FILE) +$(PKG)_DEPS := gcc + +define $(PKG)_UPDATE + $(call SOURCEFORGE_FILES,http://sourceforge.net/projects/faac/files/faac/) | \ + $(SED) -n 's,.*faad2-\([0-9][^>]*\)\.tar.*,\1,p' | \ + tail -1 +endef + +define $(PKG)_BUILD + cd '$(1)' && ./configure \ + --host='$(TARGET)' \ + --prefix='$(PREFIX)/$(TARGET)' \ + --disable-shared + $(MAKE) -C '$(1)' -j '$(JOBS)' + $(MAKE) -C '$(1)' -j 1 install +endef + diff --git a/src/ffmpeg.mk b/src/ffmpeg.mk new file mode 100644 index 0000000..ed6df9e --- /dev/null +++ b/src/ffmpeg.mk @@ -0,0 +1,53 @@ +# This file is part of mingw-cross-env. +# See doc/index.html for further information. + +# ffmpeg +PKG := ffmpeg +$(PKG)_IGNORE := +$(PKG)_VERSION := 0.6 +$(PKG)_CHECKSUM := 9e4bc2f1fdb4565bea54d7fb38e705b40620e208 +$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) +$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz +$(PKG)_WEBSITE := http://www.ffmpeg.org/ +$(PKG)_URL := http://www.ffmpeg.org/releases/$($(PKG)_FILE) +$(PKG)_DEPS := gcc xvidcore speex theora vorbis lame faad2 faac opencore-amr x264 libvpx + +define $(PKG)_UPDATE + wget -q -O- 'http://www.ffmpeg.org/download.html' | \ + $(SED) -n 's,.*ffmpeg-\([0-9][^>]*\)\.tar.*,\1,p' | \ + head -1 +endef + +define $(PKG)_BUILD + + ln -sf $(PREFIX)/$(TARGET)/lib/xvidcore.a $(PREFIX)/$(TARGET)/lib/libxvidcore.a + ln -sf $(PREFIX)/$(TARGET)/bin/sdl-config $(PREFIX)/bin/$(TARGET)-sdl-config + + cd '$(1)' && ./configure \ + --cross-prefix='$(TARGET)'- \ + --enable-cross-compile \ + --arch=i686 \ + --target-os=mingw32 \ + --prefix='$(PREFIX)/$(TARGET)' \ + --disable-shared \ + --disable-debug \ + --disable-doc \ + --enable-memalign-hack \ + --enable-gpl \ + --enable-version3 \ + --enable-nonfree \ + --enable-postproc \ + --enable-libspeex \ + --enable-libtheora \ + --enable-libvorbis \ + --enable-libmp3lame \ + --enable-libxvid \ + --enable-libfaad \ + --enable-libfaac \ + --enable-libopencore-amrnb \ + --enable-libopencore-amrwb \ + --enable-libx264 \ + --enable-libvpx + $(MAKE) -C '$(1)' -j '$(JOBS)' + $(MAKE) -C '$(1)' -j 1 install +endef diff --git a/src/lame.mk b/src/lame.mk new file mode 100644 index 0000000..bfce141 --- /dev/null +++ b/src/lame.mk @@ -0,0 +1,28 @@ +# This file is part of mingw-cross-env. +# See doc/index.html for further information. + +# lame +PKG := lame +$(PKG)_IGNORE := +$(PKG)_VERSION := 3.98.4 +$(PKG)_CHECKSUM := eb29c7c937b9b7330ca979dfabc25ab2a31b9db2 +$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) +$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz +$(PKG)_WEBSITE := http://lame.sourceforge.net/ +$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE) +$(PKG)_DEPS := gcc + +define $(PKG)_UPDATE + $(call SOURCEFORGE_FILES,http://sourceforge.net/projects/lame/files/lame/) | \ + $(SED) -n 's,.*lame-\([0-9][^>]*\)\.tar.*,\1,p' | \ + tail -1 +endef + +define $(PKG)_BUILD + cd '$(1)' && ./configure \ + --host='$(TARGET)' \ + --prefix='$(PREFIX)/$(TARGET)' \ + --disable-shared + $(MAKE) -C '$(1)' -j '$(JOBS)' + $(MAKE) -C '$(1)' -j 1 install +endef diff --git a/src/libvpx-1-config.patch b/src/libvpx-1-config.patch new file mode 100644 index 0000000..7bd66bb --- /dev/null +++ b/src/libvpx-1-config.patch @@ -0,0 +1,13 @@ +diff -Nru libvpx-0.9.1-orig/configure libvpx-0.9.1/configure +--- libvpx-0.9.1-orig/configure 2010-07-09 17:10:49.771062118 +0200 ++++ libvpx-0.9.1/configure 2010-07-09 17:16:28.583061657 +0200 +@@ -437,9 +437,6 @@ + } + fi + check_header stdio.h || die "Unable to invoke compiler: ${CC} ${CFLAGS}" +- check_ld <<EOF || die "Toolchain is unable to link executables" +-int main(void) {return 0;} +-EOF + # check system headers + check_header stdint.h + check_header pthread.h diff --git a/src/libvpx.mk b/src/libvpx.mk new file mode 100644 index 0000000..8a56b2a --- /dev/null +++ b/src/libvpx.mk @@ -0,0 +1,33 @@ +# This file is part of mingw-cross-env. +# See doc/index.html for further information. + +# vpx +PKG := libvpx +$(PKG)_IGNORE := +$(PKG)_VERSION := 0.9.1 +$(PKG)_CHECKSUM := a18acb7a1a2fd62268e63aab860b43ff04669b9e +$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) +$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2 +$(PKG)_WEBSITE := http://code.google.com/p/webm/ +$(PKG)_URL := http://webm.googlecode.com/files/$($(PKG)_FILE) +$(PKG)_DEPS := gcc + +define $(PKG)_UPDATE + wget -q -O- 'http://code.google.com/p/webm/downloads/list?sort=-uploaded' | \ + $(SED) -n 's,.*libvpx-\([0-9][^<]*\)\.tar.*,\1,p' | \ + head -1 +endef + +define $(PKG)_BUILD + cd '$(1)' && \ + NM="i686-pc-mingw32-nm" \ + STRIP="i686-pc-mingw32-strip" \ + CC="i686-pc-mingw32-gcc" \ + ./configure \ + --prefix='$(PREFIX)/$(TARGET)' \ + --target=x86-win32-gcc \ + --disable-examples + $(MAKE) -C '$(1)' -j '$(JOBS)' + $(MAKE) -C '$(1)' -j 1 install + $(TARGET)-ranlib $(PREFIX)/$(TARGET)/lib/libvpx.a +endef diff --git a/src/opencore-amr.mk b/src/opencore-amr.mk new file mode 100644 index 0000000..03b144c --- /dev/null +++ b/src/opencore-amr.mk @@ -0,0 +1,28 @@ +# This file is part of mingw-cross-env. +# See doc/index.html for further information. + +# opencore-amr +PKG := opencore-amr +$(PKG)_IGNORE := +$(PKG)_VERSION := 0.1.2 +$(PKG)_CHECKSUM := 289478d49701213255e9d63a93aae9ad472125cc +$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) +$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz +$(PKG)_WEBSITE := http://opencore-amr.sourceforge.net/ +$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE) +$(PKG)_DEPS := gcc + +define $(PKG)_UPDATE + $(call SOURCEFORGE_FILES,http://sourceforge.net/projects/opencore-amr/files/opencore-amr/) | \ + $(SED) -n 's,.*opencore-amr-\([0-9][^>]*\)\.tar.*,\1,p' | \ + tail -1 +endef + +define $(PKG)_BUILD + cd '$(1)' && ./configure \ + --host='$(TARGET)' \ + --prefix='$(PREFIX)/$(TARGET)' \ + --disable-shared + $(MAKE) -C '$(1)' -j '$(JOBS)' + $(MAKE) -C '$(1)' -j 1 install +endef diff --git a/src/x264-1-ifdef.patch b/src/x264-1-ifdef.patch new file mode 100644 index 0000000..6d0e6f7 --- /dev/null +++ b/src/x264-1-ifdef.patch @@ -0,0 +1,21 @@ +diff -Nru x264-snapshot-20100706-2245.orig/x264.c x264-snapshot-20100706-2245/x264.c +--- x264-snapshot-20100706-2245.orig/x264.c 2010-07-07 09:33:15.555062464 +0200 ++++ x264-snapshot-20100706-2245/x264.c 2010-07-07 09:33:45.155061361 +0200 +@@ -195,7 +195,7 @@ + cli_opt_t opt; + int ret; + +-#if PTW32_STATIC_LIB ++#ifdef PTW32_STATIC_LIB + pthread_win32_process_attach_np(); + pthread_win32_thread_attach_np(); + #endif +@@ -214,7 +214,7 @@ + + ret = Encode( ¶m, &opt ); + +-#if PTW32_STATIC_LIB ++#ifdef PTW32_STATIC_LIB + pthread_win32_thread_detach_np(); + pthread_win32_process_detach_np(); + #endif diff --git a/src/x264.mk b/src/x264.mk new file mode 100644 index 0000000..a89ba2b --- /dev/null +++ b/src/x264.mk @@ -0,0 +1,29 @@ +# This file is part of mingw-cross-env. +# See doc/index.html for further information. + +# x264 +PKG := x264 +$(PKG)_IGNORE := +$(PKG)_VERSION := 20100714-2245 +$(PKG)_CHECKSUM := f24042f8de3aa27262a72637cf2fe06b1e968c9c +$(PKG)_SUBDIR := $(PKG)-snapshot-$($(PKG)_VERSION) +$(PKG)_FILE := $(PKG)-snapshot-$($(PKG)_VERSION).tar.bz2 +$(PKG)_WEBSITE := http://www.videolan.org/developers/x264.html +$(PKG)_URL := http://ftp.videolan.org/pub/videolan/$(PKG)/snapshots/$($(PKG)_FILE) +$(PKG)_DEPS := gcc + +define $(PKG)_UPDATE + wget -q -O- 'http://ftp.videolan.org/pub/videolan/x264/snapshots/' | \ + $(SED) -n 's,.*<a href="x264-\snapshot-\([0-9][^"]*\)\.tar.*,\1,p' | \ + head -1 +endef + +define $(PKG)_BUILD + cd '$(1)' && ./configure \ + --cross-prefix='$(TARGET)'- \ + --host='$(TARGET)' \ + --prefix='$(PREFIX)/$(TARGET)' \ + --disable-pthread + $(MAKE) -C '$(1)' -j '$(JOBS)' + $(MAKE) -C '$(1)' -j 1 install +endef |