Makefile (2078B)
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:=6 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_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION) 23 24 PKG_FIXUP:=autoreconf 25 26 include $(INCLUDE_DIR)/package.mk 27 include $(INCLUDE_DIR)/nls.mk 28 29 define Package/madplay/default 30 SECTION:=sound 31 CATEGORY:=Sound 32 DEPENDS:=+libid3tag +libmad $(INTL_DEPENDS) $(2) 33 TITLE:=MPEG audio player in fixed point - $(1) 34 VARIANT:=$(1) 35 URL:=http://sourceforge.net/projects/mad 36 endef 37 38 Package/madplay-alsa=$(call Package/madplay/default,alsa,+alsa-lib) 39 Package/madplay=$(call Package/madplay/default,oss) 40 41 define Package/madplay/description 42 MAD is an MPEG audio decoder. It currently only supports the MPEG 1 43 standard, but fully implements all three audio layers (Layer I, Layer II, 44 and Layer III, the latter often colloquially known as MP3.). There is also 45 full support for ID3 tags. 46 endef 47 48 define Build/Configure 49 $(call Build/Configure/Default, \ 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 LIBS="-lz" \ 60 ) 61 endef 62 63 ifeq ($(BUILD_VARIANT),alsa) 64 CONFIGURE_ARGS += \ 65 --without-oss \ 66 --with-alsa 67 endif 68 69 ifeq ($(BUILD_VARIANT),oss) 70 CONFIGURE_ARGS += \ 71 --without-alsa 72 endif 73 74 define Package/madplay/install 75 $(INSTALL_DIR) $(1)/usr/bin 76 $(INSTALL_BIN) $(PKG_BUILD_DIR)/madplay $(1)/usr/bin/ 77 endef 78 79 define Package/madplay-alsa/install 80 $(INSTALL_DIR) $(1)/usr/bin 81 $(INSTALL_BIN) $(PKG_BUILD_DIR)/madplay $(1)/usr/bin/ 82 endef 83 84 $(eval $(call BuildPackage,madplay-alsa)) 85 $(eval $(call BuildPackage,madplay))