libsoundio-1.1.0.ebuild 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit cmake-multilib
  5. DESCRIPTION="C library for cross-platform real-time audio input and output"
  6. HOMEPAGE="http://libsound.io/"
  7. SRC_URI="http://libsound.io/release/${P}.tar.gz"
  8. LICENSE="MIT"
  9. SLOT="0/1"
  10. KEYWORDS="~amd64"
  11. IUSE="alsa coreaudio examples jack pulseaudio static-libs"
  12. # Build fails with <=media-sound/jack2-1.9.10
  13. # See https://github.com/andrewrk/libsoundio/issues/7
  14. # Only jack1 is supported for the time being
  15. DEPEND="alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
  16. jack? ( >=media-sound/jack-audio-connection-kit-0.125.0[${MULTILIB_USEDEP}] )
  17. pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )"
  18. RDEPEND="${DEPEND}"
  19. PATCHES=( "${FILESDIR}/${P}_missing_include.patch" )
  20. multilib_src_configure() {
  21. local mycmakeargs=(
  22. -DENABLE_ALSA=$(usex alsa)
  23. -DENABLE_COREAUDIO=$(usex coreaudio)
  24. -DENABLE_JACK=$(usex jack)
  25. -DENABLE_PULSEAUDIO=$(usex pulseaudio)
  26. -DENABLE_WASAPI=no
  27. -DBUILD_STATIC_LIBS=$(usex static-libs)
  28. -DBUILD_EXAMPLE_PROGRAMS=$(multilib_native_usex examples)
  29. -DBUILD_TESTS=no
  30. )
  31. cmake-utils_src_configure
  32. }