Nav apraksta

Makefile 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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:=3
  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:=1be543bc30c56fb6bea1d7bf6a64e66c
  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. DEPENDS:=@BUILD_PATENTED
  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))