summaryrefslogtreecommitdiff
blob: a3492ef2fd6e61a532b63c06c71de78b41fa6716 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6
inherit eutils subversion

DESCRIPTION="LinuxSampler is a software audio sampler engine with professional grade features"
HOMEPAGE="http://www.linuxsampler.org/"
ESVN_REPO_URI="https://svn.linuxsampler.org/svn/linuxsampler/trunk"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
# it also supports vst but it's masked in the tree at this moment
IUSE="alsa dbus doc dssi flac jack ladspa lv2 sf2 sqlite static-libs vorbis"
REQUIRED_USE="|| ( alsa jack )"

# media-libs/dssi, media-libs/flac, media-libs/ladspa, media-libs/lv2, media-libs/libogg,
# media-libs/libvorbis, sys-apps/dbus automagic
# sys-apps/dbus is linked to the libraries but not declared anywhere in the sources
RDEPEND=">media-libs/libgig-4
	media-libs/libsndfile
	alsa? ( media-libs/alsa-lib )
	dbus? ( sys-apps/dbus )
	dssi? ( media-libs/dssi )
	flac? ( media-libs/flac )
	jack? ( virtual/jack )
	ladspa? ( media-libs/ladspa-sdk )
	lv2? ( media-libs/lv2 )
	sqlite? ( >=dev-db/sqlite-3.3 )
	vorbis? (
		media-libs/libogg
		media-libs/libvorbis
	)"
DEPEND="${RDEPEND}
	virtual/pkgconfig
	doc? ( app-doc/doxygen )"

DOCS=( AUTHORS ChangeLog NEWS README )

src_configure() {
	emake -f Makefile.svn

	econf \
		$(use_enable alsa alsa-driver) \
		--disable-arts-driver \
		$(use_enable jack jack-driver) \
		$(use_enable sqlite instruments-db) \
		$(use_enable sf2 sf2-engine) \
		$(! has static-libs && echo --enable-static=no)
}

src_compile() {
	default

	use doc && emake docs
}

src_install() {
	default

	! use static-libs && prune_libtool_files --modules
}