mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
madplay: add alsa build variant
Signed-off-by: John Crispin <blogic@openwrt.org>
This commit is contained in:
+20
-5
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user