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.

62 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. # updated to work with latest source from abrasive
  7. #
  8. include $(TOPDIR)/rules.mk
  9. PKG_NAME:=libsoxr
  10. PKG_VERSION:=0.1.1
  11. PKG_RELEASE:=2
  12. PKG_SOURCE_PROTO:=git
  13. PKG_SOURCE_URL:=git://git.code.sf.net/p/soxr/code
  14. PKG_SOURCE_VERSION:=$(PKG_VERSION)
  15. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  16. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
  17. PKG_LICENSE:=LGPL-2.1
  18. PKG_LICENSE_FILES:=LICENCE
  19. PKG_FIXUP:=libtool
  20. PKG_REMOVE_FILES:=autogen.sh
  21. PKG_BUILD_PARALLEL:=1
  22. include $(INCLUDE_DIR)/package.mk
  23. include $(INCLUDE_DIR)/cmake.mk
  24. define Package/libsoxr
  25. SECTION:=libs
  26. CATEGORY:=Libraries
  27. TITLE:=The SoX Resampler library
  28. URL:=http://sourceforge.net/projects/soxr/
  29. MAINTAINER:=Mike Brady <mikebrady@eircom.net>
  30. DEPENDS:= +libpthread
  31. endef
  32. define Package/libsoxr/description
  33. The SoX Resampler library
  34. High quality, one-dimensional sample-rate conversion library
  35. endef
  36. CMAKE_OPTIONS:= -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTS=0 -DBUILD_EXAMPLES=0
  37. CMAKE_OPTIONS+= -DHAVE_WORDS_BIGENDIAN_EXITCODE=$(if $(CONFIG_BIG_ENDIAN),0,1)
  38. define Build/InstallDev
  39. $(INSTALL_DIR) $(1)/usr/include
  40. $(CP) $(PKG_BUILD_DIR)/src/soxr.h $(1)/usr/include/
  41. $(INSTALL_DIR) $(1)/usr/lib
  42. $(CP) $(PKG_BUILD_DIR)/src/*.a $(1)/usr/lib/
  43. endef
  44. define Package/libsoxr/install
  45. $(INSTALL_DIR) $(1)/usr/lib
  46. $(CP) $(PKG_BUILD_DIR)/src/*.a $(1)/usr/lib/
  47. endef
  48. $(eval $(call BuildPackage,libsoxr))