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.

80 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:=2
  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-vsx \
  34. --disable-doxgen-docs \
  35. --disable-local-xmms-plugin \
  36. --disable-xmms-plugin \
  37. --disable-ogg \
  38. --disable-oggtest \
  39. --disable-thorough-tests \
  40. --disable-examples \
  41. --disable-rpath \
  42. $(if $(CONFIG_DEBUG),--enable-debug) \
  43. --enable-static \
  44. --without-pic
  45. TARGET_CFLAGS += $(FPIC)
  46. define Build/InstallDev
  47. $(INSTALL_DIR) $(1)/usr/include
  48. $(CP) \
  49. $(PKG_INSTALL_DIR)/usr/include/FLAC \
  50. $(1)/usr/include/
  51. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  52. $(CP) \
  53. $(PKG_INSTALL_DIR)/usr/lib/libFLAC.{a,so*,la} \
  54. $(1)/usr/lib/
  55. $(INSTALL_DATA) \
  56. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
  57. $(1)/usr/lib/pkgconfig/
  58. $(INSTALL_DIR) $(1)/usr/share/aclocal/
  59. $(INSTALL_DATA) \
  60. $(PKG_INSTALL_DIR)/usr/share/aclocal/* \
  61. $(1)/usr/share/aclocal/
  62. endef
  63. define Package/libflac/install
  64. $(INSTALL_DIR) $(1)/usr/lib
  65. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libFLAC.so* $(1)/usr/lib/
  66. endef
  67. $(eval $(call BuildPackage,libflac))