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