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.

85 lines
2.0 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:=8
  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_FIXUP:=autoreconf
  19. PKG_INSTALL:=1
  20. PKG_BUILD_PARALLEL:=1
  21. include $(INCLUDE_DIR)/package.mk
  22. include $(INCLUDE_DIR)/nls.mk
  23. define Package/madplay/default
  24. SECTION:=sound
  25. CATEGORY:=Sound
  26. DEPENDS:=+libid3tag +libmad $(INTL_DEPENDS) $(2)
  27. TITLE:=MPEG audio player in fixed point - $(1)
  28. VARIANT:=$(1)
  29. URL:=http://sourceforge.net/projects/mad
  30. endef
  31. Package/madplay-alsa=$(call Package/madplay/default,alsa,+alsa-lib)
  32. Package/madplay=$(call Package/madplay/default,oss)
  33. define Package/madplay/description
  34. MAD is an MPEG audio decoder. It currently only supports the MPEG 1
  35. standard, but fully implements all three audio layers (Layer I, Layer II,
  36. and Layer III, the latter often colloquially known as MP3.). There is also
  37. full support for ID3 tags.
  38. endef
  39. CONFIGURE_ARGS += \
  40. --enable-shared \
  41. --disable-static \
  42. --disable-debugging \
  43. --disable-profiling \
  44. --disable-experimental \
  45. --without-libiconv-prefix \
  46. --without-libintl-prefix \
  47. --without-esd \
  48. CONFIGURE_VARS += \
  49. lt_prog_compiler_pic=$(FPIC)
  50. MAKE_FLAGS += CFLAGS="$(TARGET_CFLAGS)"
  51. ifeq ($(BUILD_VARIANT),alsa)
  52. CONFIGURE_ARGS += \
  53. --without-oss \
  54. --with-alsa
  55. else
  56. CONFIGURE_ARGS += \
  57. --without-alsa \
  58. --with-oss
  59. endif
  60. define Package/madplay/install
  61. $(INSTALL_DIR) $(1)/usr/bin
  62. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/madplay $(1)/usr/bin/
  63. endef
  64. define Package/madplay-alsa/install
  65. $(INSTALL_DIR) $(1)/usr/bin
  66. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/madplay $(1)/usr/bin/
  67. endef
  68. $(eval $(call BuildPackage,madplay-alsa))
  69. $(eval $(call BuildPackage,madplay))