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.

56 lines
1.4 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-04-21
  13. PKG_SOURCE_VERSION:=25824cb914fb3b79e18f31fb861e218c84be7d34
  14. PKG_MIRROR_HASH:=9b3beef70003456ff297ce50ecd5cb1d066ca98f10f6363562431d773b3fcb3d
  15. PKG_LICENSE:=LGPLv2.1
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_CPE_ID:=cpe:/a:libsndfile_project:libsndfile
  18. include $(INCLUDE_DIR)/package.mk
  19. include ../../devel/ninja/ninja-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))