1 |
commit: 549e9f4e1565ec00b8c6f9fbe3a2e9d595638ba3 |
2 |
Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 1 19:28:13 2018 +0000 |
4 |
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 1 19:28:13 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=549e9f4e |
7 |
|
8 |
media-libs/stk: bumped eapi and switched from media-sound/jack-audio-connection-kit to virtual/jack |
9 |
|
10 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
11 |
|
12 |
media-libs/stk/stk-4.5.1-r1.ebuild | 70 ++++++++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 70 insertions(+) |
14 |
|
15 |
diff --git a/media-libs/stk/stk-4.5.1-r1.ebuild b/media-libs/stk/stk-4.5.1-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..71f85aada4b |
18 |
--- /dev/null |
19 |
+++ b/media-libs/stk/stk-4.5.1-r1.ebuild |
20 |
@@ -0,0 +1,70 @@ |
21 |
+# Copyright 1999-2018 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=6 |
25 |
+ |
26 |
+inherit eutils autotools |
27 |
+ |
28 |
+DESCRIPTION="Synthesis ToolKit in C++" |
29 |
+HOMEPAGE="http://ccrma.stanford.edu/software/stk/" |
30 |
+SRC_URI="http://ccrma.stanford.edu/software/stk/release/${P}.tar.gz" |
31 |
+ |
32 |
+LICENSE="MIT" |
33 |
+SLOT="0" |
34 |
+KEYWORDS="~amd64 ~x86" |
35 |
+IUSE="alsa debug doc jack oss static-libs" |
36 |
+ |
37 |
+RDEPEND="alsa? ( media-libs/alsa-lib ) |
38 |
+ jack? ( virtual/jack )" |
39 |
+DEPEND="${RDEPEND} |
40 |
+ virtual/pkgconfig |
41 |
+ dev-lang/perl" |
42 |
+ |
43 |
+src_prepare() { |
44 |
+ EPATCH_SUFFIX="patch" epatch "${FILESDIR}/${P}" |
45 |
+ eapply_user |
46 |
+ |
47 |
+ eautoreconf |
48 |
+} |
49 |
+ |
50 |
+src_configure() { |
51 |
+ #breaks with --disable-foo...uses as --enable-foo |
52 |
+ local myconf |
53 |
+ if use debug; then |
54 |
+ myconf="${myconf} --enable-debug" |
55 |
+ fi |
56 |
+ if use oss; then |
57 |
+ myconf="${myconf} --with-oss" |
58 |
+ fi |
59 |
+ if use alsa; then |
60 |
+ myconf="${myconf} --with-alsa" |
61 |
+ fi |
62 |
+ if use jack; then |
63 |
+ myconf="${myconf} --with-jack" |
64 |
+ fi |
65 |
+ |
66 |
+ econf ${myconf} \ |
67 |
+ --enable-shared \ |
68 |
+ $(use_enable static-libs static) \ |
69 |
+ RAWWAVE_PATH=/usr/share/stk/rawwaves/ |
70 |
+} |
71 |
+ |
72 |
+src_install() { |
73 |
+ dodoc README.md |
74 |
+ |
75 |
+ # install the lib |
76 |
+ dolib src/libstk* |
77 |
+ |
78 |
+ # install headers |
79 |
+ insinto /usr/include/stk |
80 |
+ doins include/*.h |
81 |
+ |
82 |
+ # install rawwaves |
83 |
+ insinto /usr/share/stk/rawwaves |
84 |
+ doins rawwaves/*.raw |
85 |
+ |
86 |
+ # install docs |
87 |
+ if use doc; then |
88 |
+ dohtml -r doc/html/* |
89 |
+ fi |
90 |
+} |