1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools eutils xdg
8 DESCRIPTION="a software musical instrument and audio synthesizer"
9 HOMEPAGE="http://dinisnoise.org/"
10 SRC_URI="https://archive.org/download/dinisnoise_source_code/${P}.tar.gz"
22 alsa? ( media-libs/alsa-lib )
23 jack? ( virtual/jack )
33 REQUIRED_USE="|| ( alsa jack )"
36 "${FILESDIR}/${P}-makefile.patch"
37 "${FILESDIR}/${PN}-43.0.1-fix-random-constants.patch"
43 edos2unix pixmaps/${PN}.desktop
45 use jack && (sed -i "s/-lasound/-ljack/g" src/Makefile.am || die "Failed to fix jack linking")
51 # Jack takes over alsa.
54 use jack && sound_engine="UNIX_JACK" || sound_engine="LINUX_ALSA"
56 econf CXXFLAGS="${CXXFLAGS} -D__${sound_engine}__"