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