2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/mad \
17 ftp://ftp.mars.org/pub/mpeg/
18 PKG_MD5SUM:=6814b47ceaa99880c754c5195aa1aac1
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23 include $(INCLUDE_DIR)/package.mk
25 define Package/madplay
28 DEPENDS:=+libid3tag +libmad
29 TITLE:=MPEG audio player in fixed point
30 URL:=http://sourceforge.net/projects/mad
33 define Package/madplay/description
34 MAD is an MPEG audio decoder. It currently only supports the MPEG 1
35 standard, but fully implements all three audio layers (Layer I, Layer II,
36 and Layer III, the latter often colloquially known as MP3.). There is also
37 full support for ID3 tags.
40 define Build/Configure
41 $(call Build/Configure/Default, \
46 --disable-experimental \
47 --without-libiconv-prefix \
48 --without-libintl-prefix \
57 $(MAKE) -C $(PKG_BUILD_DIR) \
58 DESTDIR="$(PKG_INSTALL_DIR)" \
62 define Package/madplay/install
63 $(INSTALL_DIR) $(1)/usr/bin
64 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/madplay $(1)/usr/bin/
67 $(eval $(call BuildPackage,madplay))