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.

57 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2007-2019 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:=libsndfile
  9. PKG_RELEASE:=1
  10. PKG_SOURCE_PROTO:=git
  11. PKG_SOURCE_URL:=https://github.com/erikd/libsndfile.git
  12. PKG_SOURCE_DATE:=2019-02-26
  13. PKG_SOURCE_VERSION:=7c5da26b703753ec4ec598d95893a36a8639eece
  14. PKG_MIRROR_HASH:=88018902907ff56dc896845f65046450d116f213cafa4a823ea95faa14670389
  15. PKG_LICENSE:=LGPLv2.1
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. include $(INCLUDE_DIR)/cmake.mk
  20. define Package/libsndfile
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=Library for reading/writing audio files
  24. URL:=http://www.mega-nerd.com/libsndfile/
  25. MAINTAINER:=Peter Wagner <tripolar@gmx.at>
  26. endef
  27. define Package/libsndfile/description
  28. libsndfile is a library of C routines for reading and writing files
  29. containing sampled audio data.
  30. endef
  31. CMAKE_OPTIONS += \
  32. -DBUILD_SHARED_LIBS:BOOL=ON \
  33. -DENABLE_EXTERNAL_LIBS:BOOL=FALSE \
  34. -DBUILD_REGTEST:BOOL=FALSE
  35. TARGET_CFLAGS += $(FPIC)
  36. define Build/InstallDev
  37. $(INSTALL_DIR) $(1)
  38. $(CP) $(PKG_INSTALL_DIR)/* $(1)/
  39. endef
  40. define Package/libsndfile/install
  41. $(INSTALL_DIR) $(1)/usr/lib
  42. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsndfile.so.* $(1)/usr/lib/
  43. endef
  44. $(eval $(call BuildPackage,libsndfile))