packages: Use $(CP) instead of $(INSTALL_BIN) for binaries.
[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
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   URL:=http://sourceforge.net/projects/mad
31 endef
32
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.
38 endef
39
40 define Build/Configure
41         $(call Build/Configure/Default, \
42                 --enable-shared \
43                 --disable-static \
44                 --disable-debugging \
45                 --disable-profiling \
46                 --disable-experimental \
47                 --without-libiconv-prefix \
48                 --without-libintl-prefix \
49                 --without-alsa \
50                 --without-esd \
51                 , \
52                 LIBS="-lz" \
53         )
54 endef
55
56 define Build/Compile
57         $(MAKE) -C $(PKG_BUILD_DIR) \
58                 DESTDIR="$(PKG_INSTALL_DIR)" \
59                 all install
60 endef
61
62 define Package/madplay/install  
63         $(INSTALL_DIR) $(1)/usr/bin
64         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/madplay $(1)/usr/bin/
65 endef
66
67 $(eval $(call BuildPackage,madplay))