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.

58 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. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/cmake.mk
  21. define Package/libsndfile
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. TITLE:=Library for reading/writing audio files
  25. URL:=http://www.mega-nerd.com/libsndfile/
  26. MAINTAINER:=Peter Wagner <tripolar@gmx.at>
  27. endef
  28. define Package/libsndfile/description
  29. libsndfile is a library of C routines for reading and writing files
  30. containing sampled audio data.
  31. endef
  32. CMAKE_OPTIONS += \
  33. -DBUILD_SHARED_LIBS:BOOL=ON \
  34. -DENABLE_EXTERNAL_LIBS:BOOL=FALSE \
  35. -DBUILD_REGTEST:BOOL=FALSE
  36. TARGET_CFLAGS += $(FPIC)
  37. define Build/InstallDev
  38. $(INSTALL_DIR) $(1)
  39. $(CP) $(PKG_INSTALL_DIR)/* $(1)/
  40. endef
  41. define Package/libsndfile/install
  42. $(INSTALL_DIR) $(1)/usr/lib
  43. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsndfile.so.* $(1)/usr/lib/
  44. endef
  45. $(eval $(call BuildPackage,libsndfile))