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.

70 lines
1.8 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:=19_20140130
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=pa_stable_v$(PKG_VERSION).tgz
  12. PKG_SOURCE_URL:=http://www.portaudio.com/archives/
  13. PKG_MD5SUM:=7f220406902af9dca009668e198cbd23
  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. define Build/InstallDev
  40. $(INSTALL_DIR) $(1)/usr/include
  41. $(CP) \
  42. $(PKG_INSTALL_DIR)/usr/include/portaudio.h \
  43. $(PKG_INSTALL_DIR)/usr/include/pa_linux_alsa.h \
  44. $(1)/usr/include/
  45. $(INSTALL_DIR) $(1)/usr/lib
  46. $(CP) \
  47. $(PKG_INSTALL_DIR)/usr/lib/libportaudio.{a,so*} \
  48. $(1)/usr/lib/
  49. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  50. $(CP) \
  51. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/portaudio-*.pc \
  52. $(1)/usr/lib/pkgconfig/
  53. endef
  54. define Package/portaudio/install
  55. $(INSTALL_DIR) $(1)/usr/lib
  56. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libportaudio.so.* $(1)/usr/lib/
  57. endef
  58. $(eval $(call BuildPackage,portaudio))