You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
1.8 KiB

  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=madplay
  9. PKG_VERSION:=0.15.2b
  10. PKG_RELEASE:=5
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@SF/mad \
  13. ftp://ftp.mars.org/pub/mpeg/
  14. PKG_MD5SUM:=6814b47ceaa99880c754c5195aa1aac1
  15. PKG_LICENSE:=GPL-2.0+
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_MAINTAINER:=Simon Peter <probono@puredarwin.org>
  18. PKG_FIXUP:=autoreconf
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/nls.mk
  21. define Package/madplay/default
  22. SECTION:=sound
  23. CATEGORY:=Sound
  24. DEPENDS:=+libid3tag +libmad $(INTL_DEPENDS)
  25. TITLE:=MPEG audio player in fixed point - $(1)
  26. VARIANT:=$(1)
  27. URL:=http://sourceforge.net/projects/mad
  28. endef
  29. Package/madplay-alsa=$(call Package/madplay/default,alsa)
  30. Package/madplay=$(call Package/madplay/default,oss)
  31. define Package/madplay/description
  32. MAD is an MPEG audio decoder. It currently only supports the MPEG 1
  33. standard, but fully implements all three audio layers (Layer I, Layer II,
  34. and Layer III, the latter often colloquially known as MP3.). There is also
  35. full support for ID3 tags.
  36. endef
  37. define Build/Configure
  38. $(call Build/Configure/Default, \
  39. --enable-shared \
  40. --disable-static \
  41. --disable-debugging \
  42. --disable-profiling \
  43. --disable-experimental \
  44. --without-libiconv-prefix \
  45. --without-libintl-prefix \
  46. --without-esd \
  47. , \
  48. LIBS="-lz" \
  49. )
  50. endef
  51. ifeq ($(BUILD_VARIANT),madplay-alsa)
  52. CONFIGURE_ARGS += \
  53. --without-oss \
  54. --with-alsa
  55. endif
  56. ifeq ($(BUILD_VARIANT),madplay)
  57. CONFIGURE_ARGS += \
  58. --without-alsa
  59. endif
  60. define Package/madplay-$(BUILD_VARIANT)/install
  61. $(INSTALL_DIR) $(1)/usr/bin
  62. $(INSTALL_BIN) $(PKG_BUILD_DIR)/madplay $(1)/usr/bin/
  63. endef
  64. $(eval $(call BuildPackage,madplay-alsa))
  65. $(eval $(call BuildPackage,madplay))