summaryrefslogtreecommitdiffstats
path: root/src/twolame.mk
diff options
context:
space:
mode:
authorUlrich Klauer <ulrich@chirlu.de>2013-03-06 12:10:51 (GMT)
committerUlrich Klauer <ulrich@chirlu.de>2013-03-06 12:10:51 (GMT)
commitf1e4cc5f02130acaab019426d5cbedd1235d6ce5 (patch)
treef15e9c4d308dbbd06f1ec243b800a7a5271cde2f /src/twolame.mk
parent0bec7387ab96ff69b5066afbf382fdba2e0b912b (diff)
downloadmxe-f1e4cc5f02130acaab019426d5cbedd1235d6ce5.zip
mxe-f1e4cc5f02130acaab019426d5cbedd1235d6ce5.tar.gz
mxe-f1e4cc5f02130acaab019426d5cbedd1235d6ce5.tar.bz2
Add package twolame
TwoLAME is an MP2 (MPEG Audio Layer 2) encoder. The library is LGPL. Website: http://www.twolame.org/ Built via autotools. No special dependencies; libsndfile is only used for the command-line encoder, not for the library.
Diffstat (limited to 'src/twolame.mk')
-rw-r--r--src/twolame.mk27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/twolame.mk b/src/twolame.mk
new file mode 100644
index 0000000..bf00555
--- /dev/null
+++ b/src/twolame.mk
@@ -0,0 +1,27 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG := twolame
+$(PKG)_IGNORE :=
+$(PKG)_CHECKSUM := 3ca460472c2f6eeedad70291d8e37da88b64eb8b
+$(PKG)_SUBDIR := twolame-$($(PKG)_VERSION)
+$(PKG)_FILE := twolame-$($(PKG)_VERSION).tar.gz
+$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc
+
+define $(PKG)_UPDATE
+ $(WGET) -q -O- 'http://sourceforge.net/projects/$(PKG)/files/$(PKG)/' | \
+ $(SED) -n 's,^.*twolame/\([0-9][^"]*\)/".*$,\1,p' | \
+ head -n 1
+endef
+
+define $(PKG)_BUILD
+ cd '$(1)' && ./configure \
+ --host='$(TARGET)' \
+ --enable-static \
+ --disable-shared \
+ --prefix='$(PREFIX)/$(TARGET)' \
+ CFLAGS="-DLIBTWOLAME_STATIC"
+ $(MAKE) -C '$(1)' -j '$(JOBS)' SUBDIRS=libtwolame
+ $(MAKE) -C '$(1)' -j 1 install SUBDIRS=libtwolame
+endef