|
@@ -19,6 +19,8 @@ PKG_LICENSE:=GPL-2.0+
|
19
|
19
|
PKG_LICENSE_FILES:=COPYING
|
20
|
20
|
PKG_MAINTAINER:=Simon Peter <probono@puredarwin.org>
|
21
|
21
|
|
|
22
|
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
|
|
23
|
+
|
22
|
24
|
PKG_FIXUP:=autoreconf
|
23
|
25
|
|
24
|
26
|
include $(INCLUDE_DIR)/package.mk
|
|
@@ -27,13 +29,13 @@ include $(INCLUDE_DIR)/nls.mk
|
27
|
29
|
define Package/madplay/default
|
28
|
30
|
SECTION:=sound
|
29
|
31
|
CATEGORY:=Sound
|
30
|
|
- DEPENDS:=+libid3tag +libmad $(INTL_DEPENDS)
|
|
32
|
+ DEPENDS:=+libid3tag +libmad $(INTL_DEPENDS) $(2)
|
31
|
33
|
TITLE:=MPEG audio player in fixed point - $(1)
|
32
|
34
|
VARIANT:=$(1)
|
33
|
35
|
URL:=http://sourceforge.net/projects/mad
|
34
|
36
|
endef
|
35
|
37
|
|
36
|
|
-Package/madplay-alsa=$(call Package/madplay/default,alsa)
|
|
38
|
+Package/madplay-alsa=$(call Package/madplay/default,alsa,+alsa-lib)
|
37
|
39
|
Package/madplay=$(call Package/madplay/default,oss)
|
38
|
40
|
|
39
|
41
|
define Package/madplay/description
|
|
@@ -58,18 +60,23 @@ define Build/Configure
|
58
|
60
|
)
|
59
|
61
|
endef
|
60
|
62
|
|
61
|
|
-ifeq ($(BUILD_VARIANT),madplay-alsa)
|
|
63
|
+ifeq ($(BUILD_VARIANT),alsa)
|
62
|
64
|
CONFIGURE_ARGS += \
|
63
|
65
|
--without-oss \
|
64
|
66
|
--with-alsa
|
65
|
67
|
endif
|
66
|
68
|
|
67
|
|
-ifeq ($(BUILD_VARIANT),madplay)
|
|
69
|
+ifeq ($(BUILD_VARIANT),oss)
|
68
|
70
|
CONFIGURE_ARGS += \
|
69
|
71
|
--without-alsa
|
70
|
72
|
endif
|
71
|
73
|
|
72
|
|
-define Package/madplay-$(BUILD_VARIANT)/install
|
|
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
|
73
|
80
|
$(INSTALL_DIR) $(1)/usr/bin
|
74
|
81
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/madplay $(1)/usr/bin/
|
75
|
82
|
endef
|