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.

76 lines
1.8 KiB

  1. #
  2. # Copyright (C) 2006-2016 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:=flac
  9. PKG_VERSION:=1.3.2
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=http://downloads.xiph.org/releases/flac/
  13. PKG_MD5SUM:=454f1bfa3f93cc708098d7890d0499bd
  14. PKG_HASH:=91cfc3ed61dc40f47f050a109b08610667d73477af6ef36dcad31c31a4a8d53f
  15. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  16. PKG_INSTALL:=1
  17. PKG_LICENSE:=GFDL-1.2 GPL-2 LGPL-2.1 BSD-3-Clause
  18. PKG_LICENSE_FILES:=README COPYING.FDL COPYING.GPL COPYING.LGPL COPYING.Xiph
  19. PKG_FIXUP:=autoreconf
  20. PKG_REMOVE_FILES:=autogen.sh aclocal.m4
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/libflac
  23. SECTION:=libs
  24. CATEGORY:=Libraries
  25. TITLE:=Free Lossless Audio Codec library
  26. URL:=https://xiph.org/flac
  27. endef
  28. CONFIGURE_ARGS += \
  29. --disable-cpplibs \
  30. --disable-sse \
  31. --disable-3dnow \
  32. --disable-altivec \
  33. --disable-doxgen-docs \
  34. --disable-local-xmms-plugin \
  35. --disable-xmms-plugin \
  36. --disable-ogg \
  37. --disable-oggtest \
  38. $(if $(CONFIG_DEBUG),--enable-debug) \
  39. --enable-static
  40. TARGET_CFLAGS += $(FPIC)
  41. define Build/InstallDev
  42. $(INSTALL_DIR) $(1)/usr/include
  43. $(CP) \
  44. $(PKG_INSTALL_DIR)/usr/include/FLAC \
  45. $(1)/usr/include/
  46. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  47. $(CP) \
  48. $(PKG_INSTALL_DIR)/usr/lib/libFLAC.{a,so*,la} \
  49. $(1)/usr/lib/
  50. $(INSTALL_DATA) \
  51. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
  52. $(1)/usr/lib/pkgconfig/
  53. $(INSTALL_DIR) $(1)/usr/share/aclocal/
  54. $(INSTALL_DATA) \
  55. $(PKG_INSTALL_DIR)/usr/share/aclocal/* \
  56. $(1)/usr/share/aclocal/
  57. endef
  58. define Package/libflac/install
  59. $(INSTALL_DIR) $(1)/usr/lib
  60. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libFLAC.so* $(1)/usr/lib/
  61. endef
  62. $(eval $(call BuildPackage,libflac))