Nav apraksta

Makefile 1.7KB

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