libsoundio-1.0.2.ebuild 998 B

123456789101112131415161718192021222324252627282930313233343536
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit cmake-multilib
  5. DESCRIPTION="C99 library providing cross-platform 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 pulseaudio static-libs"
  12. DEPEND="alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
  13. pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] )"
  14. RDEPEND="${DEPEND}"
  15. # ENABLE_JACK does not support the current version of jack1
  16. # See https://github.com/andrewrk/libsoundio/issues/11
  17. multilib_src_configure() {
  18. local mycmakeargs=(
  19. -DENABLE_ALSA=$(usex alsa)
  20. -DENABLE_COREAUDIO=$(usex coreaudio)
  21. -DENABLE_JACK=no
  22. -DENABLE_PULSEAUDIO=$(usex pulseaudio)
  23. -DENABLE_WASAPI=no
  24. -DBUILD_STATIC_LIBS=$(usex static-libs)
  25. -DBUILD_EXAMPLE_PROGRAMS=$(multilib_native_usex examples)
  26. -DBUILD_TESTS=no
  27. )
  28. cmake-utils_src_configure
  29. }