Merge pull request #1776 from aTanW/master
[feed/packages.git] / sound / madplay / Makefile
1 #
2 # Copyright (C) 2006-2015 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:=4
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 PKG_LICENSE:=GPL-2.0+
19 PKG_LICENSE_FILES:=COPYING
20 PKG_MAINTAINER:=Simon Peter <probono@puredarwin.org>
21
22 PKG_FIXUP:=autoreconf
23
24 include $(INCLUDE_DIR)/package.mk
25 include $(INCLUDE_DIR)/nls.mk
26
27 define Package/madplay
28 SECTION:=sound
29 CATEGORY:=Sound
30 DEPENDS:=+libid3tag +libmad $(INTL_DEPENDS)
31 TITLE:=MPEG audio player in fixed point
32 URL:=http://sourceforge.net/projects/mad
33 endef
34
35 define Package/madplay/description
36 MAD is an MPEG audio decoder. It currently only supports the MPEG 1
37 standard, but fully implements all three audio layers (Layer I, Layer II,
38 and Layer III, the latter often colloquially known as MP3.). There is also
39 full support for ID3 tags.
40 endef
41
42 define Build/Configure
43 $(call Build/Configure/Default, \
44 --enable-shared \
45 --disable-static \
46 --disable-debugging \
47 --disable-profiling \
48 --disable-experimental \
49 --without-libiconv-prefix \
50 --without-libintl-prefix \
51 --without-alsa \
52 --without-esd \
53 , \
54 LIBS="-lz" \
55 )
56 endef
57
58 define Package/madplay/install
59 $(INSTALL_DIR) $(1)/usr/bin
60 $(INSTALL_BIN) $(PKG_BUILD_DIR)/madplay $(1)/usr/bin/
61 endef
62
63 $(eval $(call BuildPackage,madplay))