fwknop: init script improvements
[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:=7
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_HASH:=5a79c7516ff7560dffc6a14399a389432bc619c905b13d3b73da22fa65acede0
18
19 PKG_MAINTAINER:=Simon Peter <probono@puredarwin.org>
20 PKG_LICENSE:=GPL-2.0-or-later
21 PKG_LICENSE_FILES:=COPYING
22
23 PKG_FIXUP:=autoreconf
24 PKG_INSTALL:=1
25 PKG_BUILD_PARALLEL:=1
26
27 include $(INCLUDE_DIR)/package.mk
28 include $(INCLUDE_DIR)/nls.mk
29
30 define Package/madplay/default
31 SECTION:=sound
32 CATEGORY:=Sound
33 DEPENDS:=+libid3tag +libmad $(INTL_DEPENDS) $(2)
34 TITLE:=MPEG audio player in fixed point - $(1)
35 VARIANT:=$(1)
36 URL:=http://sourceforge.net/projects/mad
37 endef
38
39 Package/madplay-alsa=$(call Package/madplay/default,alsa,+alsa-lib)
40 Package/madplay=$(call Package/madplay/default,oss)
41
42 define Package/madplay/description
43 MAD is an MPEG audio decoder. It currently only supports the MPEG 1
44 standard, but fully implements all three audio layers (Layer I, Layer II,
45 and Layer III, the latter often colloquially known as MP3.). There is also
46 full support for ID3 tags.
47 endef
48
49 CONFIGURE_ARGS += \
50 --enable-shared \
51 --disable-static \
52 --disable-debugging \
53 --disable-profiling \
54 --disable-experimental \
55 --without-libiconv-prefix \
56 --without-libintl-prefix \
57 --without-esd \
58
59 CONFIGURE_VARS += \
60 lt_prog_compiler_pic=$(FPIC)
61
62 MAKE_FLAGS += CFLAGS="$(TARGET_CFLAGS)"
63
64 ifeq ($(BUILD_VARIANT),alsa)
65 CONFIGURE_ARGS += \
66 --without-oss \
67 --with-alsa
68 else
69 CONFIGURE_ARGS += \
70 --without-alsa \
71 --with-oss
72 endif
73
74 define Package/madplay/install
75 $(INSTALL_DIR) $(1)/usr/bin
76 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/madplay $(1)/usr/bin/
77 endef
78
79 define Package/madplay-alsa/install
80 $(INSTALL_DIR) $(1)/usr/bin
81 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/madplay $(1)/usr/bin/
82 endef
83
84 $(eval $(call BuildPackage,madplay-alsa))
85 $(eval $(call BuildPackage,madplay))