Makefile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. # updated to work with latest source from abrasive
  5. #
  6. include $(TOPDIR)/rules.mk
  7. PKG_NAME:=libsoxr
  8. PKG_VERSION:=0.1.3
  9. PKG_RELEASE:=1
  10. PKG_SOURCE_URL:=@SF/project/soxr/
  11. PKG_SOURCE:=soxr-$(PKG_VERSION)-Source.tar.xz
  12. PKG_HASH:=b111c15fdc8c029989330ff559184198c161100a59312f5dc19ddeb9b5a15889
  13. PKG_BUILD_DIR:=$(BUILD_DIR)/soxr-$(PKG_VERSION)-Source
  14. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>, \
  15. Mike Brady <mikebrady@eircom.net>
  16. PKG_LICENSE:=LGPL-2.1
  17. PKG_LICENSE_FILES:=LICENCE
  18. PKG_BUILD_PARALLEL:=1
  19. PKG_INSTALL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. include $(INCLUDE_DIR)/cmake.mk
  22. define Package/libsoxr
  23. SECTION:=libs
  24. CATEGORY:=Libraries
  25. TITLE:=The SoX Resampler library
  26. URL:=http://sourceforge.net/projects/soxr/
  27. DEPENDS:= +libpthread
  28. endef
  29. define Package/libsoxr/description
  30. The SoX Resampler library
  31. High quality, one-dimensional sample-rate conversion library
  32. endef
  33. CMAKE_OPTIONS:= -DBUILD_TESTS=0 -DBUILD_EXAMPLES=0
  34. CMAKE_OPTIONS+= -DHAVE_WORDS_BIGENDIAN_EXITCODE=$(if $(CONFIG_BIG_ENDIAN),0,1)
  35. CMAKE_OPTIONS+= -DWITH_OPENMP=0
  36. define Build/InstallDev
  37. $(INSTALL_DIR) $(1)/usr/include
  38. $(CP) $(PKG_INSTALL_DIR)/usr/include/soxr.h $(1)/usr/include/
  39. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  40. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsoxr.so* $(1)/usr/lib/
  41. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/soxr.pc $(1)/usr/lib/pkgconfig/
  42. endef
  43. define Package/libsoxr/install
  44. $(INSTALL_DIR) $(1)/usr/lib
  45. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsoxr.so* $(1)/usr/lib/
  46. endef
  47. $(eval $(call BuildPackage,libsoxr))