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:=9
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@SF/mad \
  13. ftp://ftp.mars.org/pub/mpeg/
  14. PKG_HASH:=5a79c7516ff7560dffc6a14399a389432bc619c905b13d3b73da22fa65acede0
  15. PKG_MAINTAINER:=Simon Peter <probono@puredarwin.org>
  16. PKG_LICENSE:=GPL-2.0-or-later
  17. PKG_LICENSE_FILES:=COPYING
  18. PKG_INSTALL:=1
  19. PKG_BUILD_PARALLEL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. include $(INCLUDE_DIR)/nls.mk
  22. define Package/madplay
  23. SECTION:=sound
  24. CATEGORY:=Sound
  25. DEPENDS:=+libid3tag +libmad $(INTL_DEPENDS) +alsa-lib
  26. TITLE:=MPEG audio player in fixed point - ALSA
  27. URL:=https://sourceforge.net/projects/mad
  28. endef
  29. define Package/madplay/description
  30. MAD is an MPEG audio decoder. It currently only supports the MPEG 1
  31. standard, but fully implements all three audio layers (Layer I, Layer II,
  32. and Layer III, the latter often colloquially known as MP3.). There is also
  33. full support for ID3 tags.
  34. endef
  35. CONFIGURE_ARGS += \
  36. --enable-shared \
  37. --disable-static \
  38. --disable-debugging \
  39. --disable-profiling \
  40. --disable-experimental \
  41. --without-esd \
  42. --with-alsa
  43. CONFIGURE_VARS += \
  44. lt_prog_compiler_pic=$(FPIC)
  45. MAKE_FLAGS += CFLAGS="$(TARGET_CFLAGS)"
  46. define Package/madplay/install
  47. $(INSTALL_DIR) $(1)/usr/bin
  48. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/madplay $(1)/usr/bin/
  49. endef
  50. $(eval $(call BuildPackage,madplay))