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.4 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:=1
  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.0
  18. PKG_FIXUP:=libtool
  19. PKG_REMOVE_FILES:=autogen.sh
  20. PKG_BUILD_PARALLEL:=1
  21. include $(INCLUDE_DIR)/package.mk
  22. define Build/Configure
  23. $(CP) ./files/* $(PKG_BUILD_DIR)/
  24. $(call Build/Configure/Default, )
  25. endef
  26. define Package/libsoxr
  27. SECTION:=libs
  28. CATEGORY:=Libraries
  29. TITLE:=The SoX Resampler library
  30. URL:=http://sourceforge.net/projects/soxr/
  31. MAINTAINER:=Mike Brady <mikebrady@eircom.net>
  32. DEPENDS:= +libpthread
  33. endef
  34. define Package/libsoxr/description
  35. The SoX Resampler library
  36. High quality, one-dimensional sample-rate conversion library
  37. endef
  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))