summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2007-05-10 09:20:20 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2007-05-10 09:20:20 +0000
commitbf898045a1d8246f5050ec54630e7e583687b226 (patch)
tree68fd82bb1ed2cb012a3e3d6328db2eb2930f4672
parent8298b7d0e1cb7005aa491026cdb12ca92a10899e (diff)
madplay package
-rw-r--r--package/Config.in1
-rw-r--r--package/madplay/Config.in12
-rw-r--r--package/madplay/madplay.mk60
3 files changed, 73 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in
index 0e3c9370f..6541f6834 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -242,6 +242,7 @@ source "package/asterisk/Config.in"
source "package/libid3tag/Config.in"
source "package/libmad/Config.in"
source "package/libsndfile/Config.in"
+source "package/madplay/Config.in"
source "package/mpg123/Config.in"
endif
diff --git a/package/madplay/Config.in b/package/madplay/Config.in
new file mode 100644
index 000000000..df2380069
--- /dev/null
+++ b/package/madplay/Config.in
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_MADPLAY
+ bool "madplay"
+ default n
+ select BR2_PACKAGE_LIBMAD
+ select BR2_PACKAGE_LIBID3TAG
+ help
+ MAD is a high-quality fixed-point MPEG audio decoder with
+ 24-bit output. The implementation is entirely new, based on
+ the ISO/IEC standards, and performs especially well on systems
+ without native floating-point support.
+
+ http://www.underbit.com/products/mad/
diff --git a/package/madplay/madplay.mk b/package/madplay/madplay.mk
new file mode 100644
index 000000000..5ceae69d4
--- /dev/null
+++ b/package/madplay/madplay.mk
@@ -0,0 +1,60 @@
+#############################################################
+#
+# madplay
+#
+#############################################################
+
+MADPLAY_VERSION=0.15.2b
+MADPLAY_SOURCE=madplay-$(MADPLAY_VERSION).tar.gz
+MADPLAY_SITE=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/mad
+MADPLAY_DIR=$(BUILD_DIR)/madplay-$(MADPLAY_VERSION)
+MADPLAY_CAT:=$(ZCAT)
+
+$(DL_DIR)/$(MADPLAY_SOURCE):
+ $(WGET) -P $(DL_DIR) $(MADPLAY_SITE)/$(MADPLAY_SOURCE)
+
+$(MADPLAY_DIR)/.unpacked: $(DL_DIR)/$(MADPLAY_SOURCE)
+ $(MADPLAY_CAT) $(DL_DIR)/$(MADPLAY_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ touch $(MADPLAY_DIR)/.unpacked
+
+$(MADPLAY_DIR)/.configured: $(MADPLAY_DIR)/.unpacked
+ (cd $(MADPLAY_DIR); rm -rf config.cache; \
+ $(TARGET_CONFIGURE_OPTS) \
+ CFLAGS="$(TARGET_CFLAGS)" \
+ LDFLAGS="$(TARGET_LDFLAGS)" \
+ ./configure \
+ --target=$(GNU_TARGET_NAME) \
+ --host=$(GNU_TARGET_NAME) \
+ --build=$(GNU_HOST_NAME) \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ $(DISABLE_NLS) \
+ );
+ touch $(MADPLAY_DIR)/.configured
+
+$(MADPLAY_DIR)/src/madplay: $(MADPLAY_DIR)/.configured
+ $(MAKE) CC=$(TARGET_CC) -C $(MADPLAY_DIR)
+
+$(MADPLAY_DIR)/.installed: $(MADPLAY_DIR)/src/madplay
+ $(MAKE) -C $(MADPLAY_DIR) DESTDIR=$(TARGET_DIR) install
+ touch $(MADPLAY_DIR)/.installed
+
+madplay: uclibc libmad $(MADPLAY_DIR)/.installed
+
+madplay-source: $(DL_DIR)/$(MADPLAY_SOURCE)
+
+madplay-clean:
+ @if [ -d $(MADPLAY_DIR)/Makefile ] ; then \
+ $(MAKE) -C $(MADPLAY_DIR) clean ; \
+ fi;
+
+madplay-dirclean:
+ rm -rf $(MADPLAY_DIR)
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_MADPLAY)),y)
+TARGETS+=madplay
+endif