401aad038374586b59d00ebb2d941a0dba1eb9bf
[openwrt/svn-archive/archive.git] / sound / madplay / Makefile
1 # Copyright (C) 2006 OpenWrt.org
2 #
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
5 #
6 # $Id$
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=madplay
11 PKG_VERSION:=0.15.2b
12 PKG_RELEASE:=1
13 PKG_MD5SUM:=6814b47ceaa99880c754c5195aa1aac1
14
15 PKG_SOURCE_URL:=@SF/mad \
16 ftp://ftp.mars.org/pub/mpeg/
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/madplay
26 SECTION:=sound
27 CATEGORY:=Sound
28 DEPENDS:=+libid3tag +libmad
29 TITLE:=MPEG audio player in fixed point
30 DESCRIPTION:=MAD is an MPEG audio decoder. It currently only supports the MPEG 1\\\
31 standard, but fully implements all three audio layers (Layer I, Layer II,\\\
32 and Layer III, the latter often colloquially known as MP3.). There is also\\\
33 full support for ID3 tags.\\\
34 URL:=http://sourceforge.net/projects/mad
35 endef
36
37 define Build/Configure
38 $(call Build/Configure/Default, \
39 --enable-shared \
40 --disable-static \
41 --with-gnu-ld \
42 --disable-rpath \
43 --disable-debugging \
44 --disable-profiling \
45 --disable-experimental \
46 --without-libiconv-prefix \
47 --without-libintl-prefix \
48 --without-alsa \
49 --without-esd,LIBS="-lz" \
50 )
51 endef
52
53 define Build/Compile
54 rm -rf $(PKG_INSTALL_DIR)
55 mkdir -p $(PKG_INSTALL_DIR)
56 $(MAKE) -C $(PKG_BUILD_DIR) \
57 DESTDIR="$(PKG_INSTALL_DIR)" \
58 all install
59 endef
60
61 define Package/madplay/install
62 install -m0755 -d $(1)/usr/bin
63 install -m0755 $(PKG_INSTALL_DIR)/usr/bin/madplay $(1)/usr/bin/
64 endef
65
66 $(eval $(call BuildPackage,madplay))