madplay: add PKG_RELEASE and keep oss variants name
[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:=5
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/default
28 SECTION:=sound
29 CATEGORY:=Sound
30 DEPENDS:=+libid3tag +libmad $(INTL_DEPENDS)
31 TITLE:=MPEG audio player in fixed point - $(1)
32 VARIANT:=$(1)
33 URL:=http://sourceforge.net/projects/mad
34 endef
35
36 Package/madplay-alsa=$(call Package/madplay/default,alsa)
37 Package/madplay=$(call Package/madplay/default,oss)
38
39 define Package/madplay/description
40 MAD is an MPEG audio decoder. It currently only supports the MPEG 1
41 standard, but fully implements all three audio layers (Layer I, Layer II,
42 and Layer III, the latter often colloquially known as MP3.). There is also
43 full support for ID3 tags.
44 endef
45
46 define Build/Configure
47 $(call Build/Configure/Default, \
48 --enable-shared \
49 --disable-static \
50 --disable-debugging \
51 --disable-profiling \
52 --disable-experimental \
53 --without-libiconv-prefix \
54 --without-libintl-prefix \
55 --without-esd \
56 , \
57 LIBS="-lz" \
58 )
59 endef
60
61 ifeq ($(BUILD_VARIANT),madplay-alsa)
62 CONFIGURE_ARGS += \
63 --without-oss \
64 --with-alsa
65 endif
66
67 ifeq ($(BUILD_VARIANT),madplay)
68 CONFIGURE_ARGS += \
69 --without-alsa
70 endif
71
72 define Package/madplay-$(BUILD_VARIANT)/install
73 $(INSTALL_DIR) $(1)/usr/bin
74 $(INSTALL_BIN) $(PKG_BUILD_DIR)/madplay $(1)/usr/bin/
75 endef
76
77 $(eval $(call BuildPackage,madplay-alsa))
78 $(eval $(call BuildPackage,madplay))