diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-01-15 15:51:32 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-01-15 15:51:32 +0000 |
commit | 21435953e16cda318a82334ddbadb3b5c36d9ea7 (patch) | |
tree | e1810a4b135afce04b34862ef0fab2bfaeb8aeca /media-sound/din/din-43.0.1.ebuild | |
parent | 7bc9c63c9da678a7e6fceb095d56c634afd22c56 (diff) |
gentoo resync : 15.01.2020
Diffstat (limited to 'media-sound/din/din-43.0.1.ebuild')
-rw-r--r-- | media-sound/din/din-43.0.1.ebuild | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/media-sound/din/din-43.0.1.ebuild b/media-sound/din/din-43.0.1.ebuild new file mode 100644 index 000000000000..1dda28bdfe0a --- /dev/null +++ b/media-sound/din/din-43.0.1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools xdg + +DESCRIPTION="a software musical instrument and audio synthesizer" +HOMEPAGE="http://dinisnoise.org/" +SRC_URI="https://archive.org/download/dinisnoise_source_code/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+alsa jack" + +BDEPEND=" + app-text/dos2unix + virtual/pkgconfig +" +CDEPEND="dev-lang/tcl:0= + media-libs/libsdl:= + virtual/opengl + alsa? ( media-libs/alsa-lib ) + jack? ( virtual/jack ) +" +RDEPEND="${CDEPEND}" +DEPEND=" + ${RDEPEND} + dev-libs/boost +" +REQUIRED_USE="|| ( alsa jack )" + +PATCHES=( + "${FILESDIR}/${P}-makefile.patch" + "${FILESDIR}/${P}-fix-random-constants.patch" +) + +src_prepare() { + default + + dos2unix pixmaps/${PN}.desktop || die "Failed to fix desktop file" + + use jack && (sed -i "s/-lasound/-ljack/g" src/Makefile.am || die "Failed to fix jack linking") + + eautoreconf +} + +src_configure() { + # Jack takes over alsa. + local sound_engine + + use jack && sound_engine="UNIX_JACK" || sound_engine="LINUX_ALSA" + + econf CXXFLAGS="${CXXFLAGS} -D__${sound_engine}__" +} |