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.

63 lines
1.5 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:=4
  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
  22. SECTION:=sound
  23. CATEGORY:=Sound
  24. DEPENDS:=+libid3tag +libmad $(INTL_DEPENDS)
  25. TITLE:=MPEG audio player in fixed point
  26. URL:=http://sourceforge.net/projects/mad
  27. endef
  28. define Package/madplay/description
  29. MAD is an MPEG audio decoder. It currently only supports the MPEG 1
  30. standard, but fully implements all three audio layers (Layer I, Layer II,
  31. and Layer III, the latter often colloquially known as MP3.). There is also
  32. full support for ID3 tags.
  33. endef
  34. define Build/Configure
  35. $(call Build/Configure/Default, \
  36. --enable-shared \
  37. --disable-static \
  38. --disable-debugging \
  39. --disable-profiling \
  40. --disable-experimental \
  41. --without-libiconv-prefix \
  42. --without-libintl-prefix \
  43. --without-alsa \
  44. --without-esd \
  45. , \
  46. LIBS="-lz" \
  47. )
  48. endef
  49. define Package/madplay/install
  50. $(INSTALL_DIR) $(1)/usr/bin
  51. $(INSTALL_BIN) $(PKG_BUILD_DIR)/madplay $(1)/usr/bin/
  52. endef
  53. $(eval $(call BuildPackage,madplay))