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