madplay: add alsa build variant

Signed-off-by: John Crispin <blogic@openwrt.org>
This commit is contained in:
John Crispin
2015-10-02 11:04:59 +02:00
parent 2e57574f30
commit f2e8c6a80f
2 changed files with 193 additions and 5 deletions
+20 -5
View File
@@ -24,14 +24,18 @@ PKG_FIXUP:=autoreconf
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/nls.mk
define Package/madplay
define Package/madplay/default
SECTION:=sound
CATEGORY:=Sound
DEPENDS:=+libid3tag +libmad $(INTL_DEPENDS)
TITLE:=MPEG audio player in fixed point
TITLE:=MPEG audio player in fixed point - $(1)
VARIANT:=$(1)
URL:=http://sourceforge.net/projects/mad
endef
Package/madplay-alsa=$(call Package/madplay/default,alsa)
Package/madplay-oss=$(call Package/madplay/default,oss)
define Package/madplay/description
MAD is an MPEG audio decoder. It currently only supports the MPEG 1
standard, but fully implements all three audio layers (Layer I, Layer II,
@@ -48,16 +52,27 @@ define Build/Configure
--disable-experimental \
--without-libiconv-prefix \
--without-libintl-prefix \
--without-alsa \
--without-esd \
, \
LIBS="-lz" \
)
endef
define Package/madplay/install
ifeq ($(BUILD_VARIANT),madplay-alsa)
CONFIGURE_ARGS += \
--without-oss \
--with-alsa
endif
ifeq ($(BUILD_VARIANT),madplay-oss)
CONFIGURE_ARGS += \
--without-alsa
endif
define Package/madplay-$(BUILD_VARIANT)/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/madplay $(1)/usr/bin/
endef
$(eval $(call BuildPackage,madplay))
$(eval $(call BuildPackage,madplay-alsa))
$(eval $(call BuildPackage,madplay-oss))