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.

77 lines
1.7 KiB

  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:=flac
  9. PKG_VERSION:=1.2.1
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@SF/flac
  13. PKG_MD5SUM:=
  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:=http://flac.sourceforge.net/
  26. endef
  27. define Build/Configure
  28. $(call Build/Configure/Default, \
  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. --disable-debug \
  39. )
  40. endef
  41. TARGET_CFLAGS += $(FPIC)
  42. define Build/InstallDev
  43. $(INSTALL_DIR) $(1)/usr/include
  44. $(CP) \
  45. $(PKG_INSTALL_DIR)/usr/include/FLAC \
  46. $(1)/usr/include/
  47. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  48. $(CP) \
  49. $(PKG_INSTALL_DIR)/usr/lib/libFLAC.{a,so*,la} \
  50. $(1)/usr/lib/
  51. $(INSTALL_DATA) \
  52. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
  53. $(1)/usr/lib/pkgconfig/
  54. $(INSTALL_DIR) $(1)/usr/share/aclocal/
  55. $(INSTALL_DATA) \
  56. $(PKG_INSTALL_DIR)/usr/share/aclocal/* \
  57. $(1)/usr/share/aclocal/
  58. endef
  59. define Package/libflac/install
  60. $(INSTALL_DIR) $(1)/usr/lib
  61. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libFLAC.so* $(1)/usr/lib/
  62. endef
  63. $(eval $(call BuildPackage,libflac))