summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2013-10-15 10:32:18 (GMT)
committerTony Theodore <tonyt@logyst.com>2013-10-15 10:32:18 (GMT)
commit1c3d9fca89eb950ad11d5e8933b4cfa5ebd55ba4 (patch)
treeaebe6cc91cc1a7181be279036679ab8948fb167e
parent928c3a7c4acd4451b37f55643a5494fd7a4cb5c4 (diff)
parentefeaa617960cb80b9ece365ad992d8ebc6600c24 (diff)
downloadmxe-1c3d9fca89eb950ad11d5e8933b4cfa5ebd55ba4.zip
mxe-1c3d9fca89eb950ad11d5e8933b4cfa5ebd55ba4.tar.gz
mxe-1c3d9fca89eb950ad11d5e8933b4cfa5ebd55ba4.tar.bz2
Merge pull request #256 from TimothyGu/master
Add a52dec package
-rw-r--r--index.html4
-rw-r--r--src/a52dec.mk27
2 files changed, 31 insertions, 0 deletions
diff --git a/index.html b/index.html
index 7071ee5..3ed1f0d 100644
--- a/index.html
+++ b/index.html
@@ -1091,6 +1091,10 @@ local-pkg-list: $(LOCAL_PKG_LIST)</pre>
</p>
<table id="package-list">
<tr>
+ <td class="package">a52dec</td>
+ <td class="website"><a href="http://liba52.sourceforge.net/">a52dec (aka. liba52)</a></td>
+ </tr>
+ <tr>
<td class="package">agg</td>
<td class="website"><a href="http://www.antigrain.com/">Anti-Grain Geometry</a></td>
</tr>
diff --git a/src/a52dec.mk b/src/a52dec.mk
new file mode 100644
index 0000000..00dcebf
--- /dev/null
+++ b/src/a52dec.mk
@@ -0,0 +1,27 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG := a52dec
+$(PKG)_IGNORE :=
+$(PKG)_VERSION := 0.7.4
+$(PKG)_CHECKSUM := 79b33bd8d89dad7436f85b9154ad35667aa37321
+$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
+$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
+$(PKG)_URL := http://liba52.sourceforge.net/files/$(PKG)-$($(PKG)_VERSION).tar.gz
+$(PKG)_DEPS := gcc
+
+define $(PKG)_UPDATE
+ $(WGET) -q -O- 'http://liba52.sourceforge.net/downloads.html' | \
+ $(SED) -n 's,.*/\([0-9][^"]*\)/"\.tar.*,\1,p' | \
+ head -1
+endef
+
+define $(PKG)_BUILD
+ cd '$(1)' && autoreconf -fi # The autotools files came with a52dec is _ancient_
+ cd '$(1)' && ./configure \
+ --host='$(TARGET)' \
+ --disable-shared \
+ --prefix='$(PREFIX)/$(TARGET)'
+ $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
+ $(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
+endef