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.

79 lines
1.8 KiB

  1. #
  2. # Copyright (C) 2006-2014 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:=libmad
  9. PKG_VERSION:=0.15.1b
  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_HASH:=bbfac3ed6bfbc2823d3775ebb931087371e142bb0e9bb1bee51a76a6e0078690
  15. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  16. PKG_LICENSE:=GPLv2
  17. PKG_LICENSE_FILES:=COPYING
  18. PKG_CPE_ID:=cpe:/a:underbit:mad_libmad
  19. PKG_FIXUP:=autoreconf
  20. PKG_INSTALL:=1
  21. include $(INCLUDE_DIR)/package.mk
  22. FPM:=default
  23. ifeq ($(ARCH),armeb)
  24. FPM:=arm
  25. endif
  26. ifeq ($(ARCH),i386)
  27. FPM:=intel
  28. endif
  29. ifeq ($(ARCH),mipsel)
  30. FPM:=mips
  31. endif
  32. define Package/libmad
  33. SECTION:=libs
  34. CATEGORY:=Libraries
  35. TITLE:=An high-quality MPEG audio decoding library
  36. URL:=http://www.underbit.com/products/mad/
  37. endef
  38. define Package/libmad/description
  39. MAD is a high-quality MPEG audio decoder. It currently supports
  40. MPEG-1 and the MPEG-2 extension to lower sampling frequencies,
  41. as well as the de facto MPEG 2.5 format. All three audio layers -
  42. Layer I, Layer II, and Layer III (i.e. MP3) - are fully implemented.
  43. endef
  44. TARGET_CFLAGS += $(FPIC)
  45. CONFIGURE_ARGS+= \
  46. --enable-shared \
  47. --enable-static \
  48. --enable-fpm="$(FPM)" \
  49. --disable-debugging \
  50. --enable-speed \
  51. MAKE_FLAGS+= \
  52. CFLAGS="$(TARGET_CFLAGS)" \
  53. define Build/InstallDev
  54. $(INSTALL_DIR) $(1)/usr/include
  55. $(CP) $(PKG_INSTALL_DIR)/usr/include/mad.h $(1)/usr/include/
  56. $(INSTALL_DIR) $(1)/usr/lib
  57. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmad.{a,so*} $(1)/usr/lib/
  58. endef
  59. define Package/libmad/install
  60. $(INSTALL_DIR) $(1)/usr/lib
  61. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmad.so.* $(1)/usr/lib/
  62. endef
  63. $(eval $(call BuildPackage,libmad))