summaryrefslogtreecommitdiffstats
path: root/src/faad2.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/faad2.mk')
-rw-r--r--src/faad2.mk29
1 files changed, 29 insertions, 0 deletions
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
+