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.

67 lines
1.8 KiB

  1. #
  2. # Copyright (C) 2014-2016 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:=3
  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_MIRROR_HASH:=939259d5c02bbe55cf8329e7bd05ce4d660e37d5c97fcbb0fdeef04f11a63e7f
  18. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>, \
  19. Mike Brady <mikebrady@eircom.net>
  20. PKG_LICENSE:=LGPL-2.1
  21. PKG_LICENSE_FILES:=LICENCE
  22. PKG_FIXUP:=libtool
  23. PKG_REMOVE_FILES:=autogen.sh
  24. PKG_BUILD_PARALLEL:=1
  25. PKG_INSTALL:=1
  26. include $(INCLUDE_DIR)/package.mk
  27. include $(INCLUDE_DIR)/cmake.mk
  28. define Package/libsoxr
  29. SECTION:=libs
  30. CATEGORY:=Libraries
  31. TITLE:=The SoX Resampler library
  32. URL:=http://sourceforge.net/projects/soxr/
  33. DEPENDS:= +libpthread
  34. endef
  35. define Package/libsoxr/description
  36. The SoX Resampler library
  37. High quality, one-dimensional sample-rate conversion library
  38. endef
  39. CMAKE_OPTIONS:= -DBUILD_TESTS=0 -DBUILD_EXAMPLES=0
  40. CMAKE_OPTIONS+= -DHAVE_WORDS_BIGENDIAN_EXITCODE=$(if $(CONFIG_BIG_ENDIAN),0,1)
  41. CMAKE_OPTIONS+= -DWITH_OPENMP=0
  42. define Build/InstallDev
  43. $(INSTALL_DIR) $(1)/usr/include
  44. $(CP) $(PKG_INSTALL_DIR)/usr/include/soxr.h $(1)/usr/include/
  45. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  46. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsoxr.so* $(1)/usr/lib/
  47. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/soxr.pc $(1)/usr/lib/pkgconfig/
  48. endef
  49. define Package/libsoxr/install
  50. $(INSTALL_DIR) $(1)/usr/lib
  51. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsoxr.so* $(1)/usr/lib/
  52. endef
  53. $(eval $(call BuildPackage,libsoxr))