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.

55 lines
1.1 KiB

  1. #
  2. # Copyright (C) 2007-2014 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:=libsamplerate
  9. PKG_VERSION:=0.1.8
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://www.mega-nerd.com/SRC/
  13. PKG_MD5SUM:=1c7fb25191b4e6e3628d198a66a84f47
  14. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  15. PKG_LICENSE:=GPL-2.0
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/libsamplerate
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. DEPENDS:=+libsndfile
  23. TITLE:=Sample Rate Converter
  24. URL:=http://www.mega-nerd.com/SRC/index.html
  25. endef
  26. define Package/libsamplerate/description
  27. Secret Rabbit Code (aka libsamplerate) is a Sample Rate
  28. Converter for audio.
  29. endef
  30. TARGET_CFLAGS += $(FPIC)
  31. CONFIGURE_ARGS += \
  32. --disable-fftw \
  33. define Build/InstallDev
  34. $(INSTALL_DIR) $(1)
  35. $(CP) $(PKG_INSTALL_DIR)/* $(1)/
  36. endef
  37. define Package/libsamplerate/install
  38. $(INSTALL_DIR) $(1)/usr/lib
  39. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsamplerate.so.* $(1)/usr/lib/
  40. endef
  41. $(eval $(call BuildPackage,libsamplerate))