[packages] apr: update to v1.3.9
[openwrt/svn-archive/archive.git] / sound / madplay / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=madplay
11 PKG_VERSION:=0.15.2b
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/mad \
16 ftp://ftp.mars.org/pub/mpeg/
17 PKG_MD5SUM:=6814b47ceaa99880c754c5195aa1aac1
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/madplay
22 SECTION:=sound
23 CATEGORY:=Sound
24 DEPENDS:=+libid3tag +libmad
25 TITLE:=MPEG audio player in fixed point
26 URL:=http://sourceforge.net/projects/mad
27 endef
28
29 define Package/madplay/description
30 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 endef
35
36 define Build/Configure
37 $(call Build/Configure/Default, \
38 --enable-shared \
39 --disable-static \
40 --disable-debugging \
41 --disable-profiling \
42 --disable-experimental \
43 --without-libiconv-prefix \
44 --without-libintl-prefix \
45 --without-alsa \
46 --without-esd \
47 , \
48 LIBS="-lz" \
49 )
50 endef
51
52 define Build/Compile
53 $(MAKE) -C $(PKG_BUILD_DIR) \
54 DESTDIR="$(PKG_INSTALL_DIR)" \
55 all install
56 endef
57
58 define Package/madplay/install
59 $(INSTALL_DIR) $(1)/usr/bin
60 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/madplay $(1)/usr/bin/
61 endef
62
63 $(eval $(call BuildPackage,madplay))