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.

76 lines
2.0 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. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=portaudio
  9. PKG_VERSION:=190600_20161030
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=pa_stable_v$(PKG_VERSION).tgz
  12. PKG_SOURCE_URL:=http://www.portaudio.com/archives/
  13. PKG_HASH:=f5a21d7dcd6ee84397446fa1fa1a0675bb2e8a4a6dceb4305a8404698d8d1513
  14. PKG_LICENSE:=MIT
  15. PKG_LICENSE_FILES:=LICENSE.txt
  16. PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org>
  17. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/portaudio
  21. SECTION:=sound
  22. CATEGORY:=Sound
  23. DEPENDS:=+alsa-lib +libpthread +librt
  24. TITLE:=Portable cross-platform audio I/O
  25. URL:=http://www.portaudio.com/
  26. endef
  27. define Package/portaudio/description
  28. PortAudio is a free, cross-platform, open-source, audio I/O library. It lets
  29. you write simple audio programs in 'C' or C++ that will compile and run on many
  30. platforms including Windows, Macintosh OS X, and Unix (OSS/ALSA). It is
  31. intended to promote the exchange of audio software between developers on
  32. different platforms. Many applications use PortAudio for Audio I/O.
  33. endef
  34. CONFIGURE_ARGS+= \
  35. --with-alsa \
  36. --without-asihpi \
  37. --without-jack \
  38. --with-oss \
  39. EXTRA_CFLAGS += $(TARGET_CPPFLAGS)
  40. define Build/Compile
  41. $(call Build/Compile/Default,lib/libportaudio.la)
  42. endef
  43. define Build/InstallDev
  44. $(INSTALL_DIR) $(1)/usr/include
  45. $(CP) \
  46. $(PKG_INSTALL_DIR)/usr/include/portaudio.h \
  47. $(PKG_INSTALL_DIR)/usr/include/pa_linux_alsa.h \
  48. $(1)/usr/include/
  49. $(INSTALL_DIR) $(1)/usr/lib
  50. $(CP) \
  51. $(PKG_INSTALL_DIR)/usr/lib/libportaudio.{a,so*} \
  52. $(1)/usr/lib/
  53. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  54. $(CP) \
  55. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/portaudio-*.pc \
  56. $(1)/usr/lib/pkgconfig/
  57. endef
  58. define Package/portaudio/install
  59. $(INSTALL_DIR) $(1)/usr/lib
  60. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libportaudio.so.* $(1)/usr/lib/
  61. endef
  62. $(eval $(call BuildPackage,portaudio))