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.
This commit is contained in:
Ulrich Klauer 2013-03-06 13:10:51 +01:00
parent 0bec7387ab
commit f1e4cc5f02
2 changed files with 32 additions and 0 deletions

View File

@ -2124,6 +2124,11 @@ aptitude -t squeeze-backports install cmake yasm</pre>
<td id="tre-version">0.8.0</td>
<td id="tre-website"><a href="http://laurikari.net/tre/">TRE</a></td>
</tr>
<tr>
<td id="twolame-package">twolame</td>
<td id="twolame-version">0.3.13</td>
<td id="twolame-website"><a href="http://www.twolame.org/">TwoLAME</a></td>
</tr>
<tr>
<td id="vigra-package">vigra</td>
<td id="vigra-version">1.9.0</td>

27
src/twolame.mk Normal file
View File

@ -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