summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2012-02-12 12:16:54 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2012-02-12 12:16:54 +0100
commitb11c2e11e86df020994a373d7e54539e5cb1d250 (patch)
tree737836df52afdd088ea74f8c81a2e28735ac5ecf
parent859ed7494212f66dc78e22dfccc875d1cad43d22 (diff)
downloadptxdist-b11c2e11e86df020994a373d7e54539e5cb1d250.tar.gz
ptxdist-b11c2e11e86df020994a373d7e54539e5cb1d250.tar.xz
lame: new package
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/lame.in19
-rw-r--r--rules/lame.make73
2 files changed, 92 insertions, 0 deletions
diff --git a/rules/lame.in b/rules/lame.in
new file mode 100644
index 000000000..e81b4096c
--- /dev/null
+++ b/rules/lame.in
@@ -0,0 +1,19 @@
+## SECTION=multimedia_sound
+
+menuconfig LAME
+ tristate
+ select LIBC_M
+ prompt "lame "
+ help
+ LAME is a high quality MPEG Audio Layer III (MP3) encoder
+ licensed under the LGPL.
+
+
+if LAME
+
+config LAME_FRONTEND
+ bool
+ prompt "install frontend"
+
+endif
+
diff --git a/rules/lame.make b/rules/lame.make
new file mode 100644
index 000000000..a4e2a1a0f
--- /dev/null
+++ b/rules/lame.make
@@ -0,0 +1,73 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2012 by Michael Olbrich <m.olbrich@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_LAME) += lame
+
+#
+# Paths and names
+#
+LAME_VERSION := 3.99.4
+LAME_MD5 := e54d7847bfd01f18d56c07e65147d75a
+LAME := lame-$(LAME_VERSION)
+LAME_SUFFIX := tar.gz
+LAME_URL := $(call ptx/mirror, SF, lame/$(LAME).$(LAME_SUFFIX))
+LAME_SOURCE := $(SRCDIR)/$(LAME).$(LAME_SUFFIX)
+LAME_DIR := $(BUILDDIR)/$(LAME)
+LAME_LICENSE := LGPLv2
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+LAME_CONF_TOOL := autoconf
+LAME_CONF_OPT := \
+ $(CROSS_AUTOCONF_USR) \
+ $(GLOBAL_LARGE_FILE_OPTION) \
+ --disable-static \
+ --disable-nasm \
+ --disable-rpath \
+ --disable-cpml \
+ --disable-gtktest \
+ --disable-efence \
+ --disable-analyzer-hooks \
+ --enable-decoder \
+ --$(call ptx/endis, PTXCONF_LAME_FRONTEND)-frontend \
+ --disable-mp3x \
+ --enable-mp3rtp \
+ --enable-expopt=full \
+ --disable-debug \
+ --without-dmalloc
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/lame.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, lame)
+ @$(call install_fixup, lame,PRIORITY,optional)
+ @$(call install_fixup, lame,SECTION,base)
+ @$(call install_fixup, lame,AUTHOR,"Michael Olbrich <m.olbrich@pengutronix.de>")
+ @$(call install_fixup, lame,DESCRIPTION,missing)
+
+ @$(call install_lib, lame, 0, 0, 0644, libmp3lame)
+
+ @$(call install_finish, lame)
+
+ @$(call touch)
+
+# vim: syntax=make