fix aiccu compile
[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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=madplay
12 PKG_VERSION:=0.15.2b
13 PKG_RELEASE:=1
14
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
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/madplay
23 SECTION:=sound
24 CATEGORY:=Sound
25 DEPENDS:=+libid3tag +libmad
26 TITLE:=MPEG audio player in fixed point
27 URL:=http://sourceforge.net/projects/mad
28 endef
29
30 define Package/madplay/description
31 MAD is an MPEG audio decoder. It currently only supports the MPEG 1
32 standard, but fully implements all three audio layers (Layer I, Layer II,
33 and Layer III, the latter often colloquially known as MP3.). There is also
34 full support for ID3 tags.
35 endef
36
37 define Build/Configure
38 $(call Build/Configure/Default, \
39 --enable-shared \
40 --disable-static \
41 --disable-debugging \
42 --disable-profiling \
43 --disable-experimental \
44 --without-libiconv-prefix \
45 --without-libintl-prefix \
46 --without-alsa \
47 --without-esd \
48 , \
49 LIBS="-lz" \
50 )
51 endef
52
53 define Build/Compile
54 $(MAKE) -C $(PKG_BUILD_DIR) \
55 DESTDIR="$(PKG_INSTALL_DIR)" \
56 all install
57 endef
58
59 define Package/madplay/install
60 $(INSTALL_DIR) $(1)/usr/bin
61 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/madplay $(1)/usr/bin/
62 endef
63
64 $(eval $(call BuildPackage,madplay))