1 |
commit: 505076c7286643dfde04182f258ead871fa964fc |
2 |
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 25 11:46:34 2016 +0000 |
4 |
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 25 11:46:57 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=505076c7 |
7 |
|
8 |
media-libs/stk: bump to 4.5.1 |
9 |
|
10 |
Package-Manager: portage-2.2.27 |
11 |
Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org> |
12 |
|
13 |
media-libs/stk/Manifest | 1 + |
14 |
.../stk-4.5.1/010_all_removeForcedFlags.patch | 13 ++++ |
15 |
.../files/stk-4.5.1/020_all_noExamplesOrDemo.patch | 40 +++++++++++++ |
16 |
.../stk/files/stk-4.5.1/050_all_cxxflags.patch | 13 ++++ |
17 |
media-libs/stk/stk-4.5.1.ebuild | 69 ++++++++++++++++++++++ |
18 |
5 files changed, 136 insertions(+) |
19 |
|
20 |
diff --git a/media-libs/stk/Manifest b/media-libs/stk/Manifest |
21 |
index 9267afb..c2f24a0 100644 |
22 |
--- a/media-libs/stk/Manifest |
23 |
+++ b/media-libs/stk/Manifest |
24 |
@@ -1,2 +1,3 @@ |
25 |
DIST stk-4.4.4.tar.gz 6181713 SHA256 1276986481704f148933d4a2f8eaebb84827124acbd0243e5c8a004fa7c70710 SHA512 e36c43a20e95eb86ed0335ae17df23c1a672562656738496f9e2e5654a825292c4235e04774fcb0356d47a775b7d7af6b4fd63c9d151ab7f2f9195bb5f728e37 WHIRLPOOL 2bfbcfe16dd37e31a0db16603c39e107d0c6a78c667e4597e6dc05243d2edb451acd3f3f7ac1b6698807213f06d11d0982298e13011fed3f5bc814eb4d0cd74d |
26 |
DIST stk-4.5.0.tar.gz 2466803 SHA256 619f1a0dee852bb2b2f37730e2632d83b7e0e3ea13b4e8a3166bf11191956ee3 SHA512 a8a19e171093735052d797ef29a6a287dc6753fa726e451865250364dfd22f43b190aa03498ec94b99f3dc137ef951aa85e2f2f3509c74cedada6eedb5a31785 WHIRLPOOL a8bb1b45f3c88d22e6e5b593a0116b5fd1bdfdf7e39cfc479616e34677a98c7c17199ab4d6c15b9aa95841e631f9a49a6a4d1d65afdb9344407f9eaf922bb699 |
27 |
+DIST stk-4.5.1.tar.gz 2413113 SHA256 3466860901a181120d3bd0407e4aeb5ab24127a4350c314af106778c1db88594 SHA512 c4c05edfb49b269d5d2518c06abad8e636c4f67a8598f5a03d406bbef04b8b3315d2592d35c8742ce9163b52215ac87b6349c0012e271a43707d109175b6d336 WHIRLPOOL 7b0cfaa842d98e0c78f76d3e590e74671c68f54157e06f63b98e80eef3df3fd66e1a0e1effe72b3a4a88f2efed40788ea550b3033324d452fd2af148f5bfb855 |
28 |
|
29 |
diff --git a/media-libs/stk/files/stk-4.5.1/010_all_removeForcedFlags.patch b/media-libs/stk/files/stk-4.5.1/010_all_removeForcedFlags.patch |
30 |
new file mode 100644 |
31 |
index 0000000..3fcc28f |
32 |
--- /dev/null |
33 |
+++ b/media-libs/stk/files/stk-4.5.1/010_all_removeForcedFlags.patch |
34 |
@@ -0,0 +1,13 @@ |
35 |
+Index: stk-4.4.3/configure.ac |
36 |
+=================================================================== |
37 |
+--- stk-4.4.3.orig/configure.ac |
38 |
++++ stk-4.4.3/configure.ac |
39 |
+@@ -65,7 +65,7 @@ if test "$debug" = "yes"; then |
40 |
+ else |
41 |
+ AC_SUBST( debug, [no] ) |
42 |
+ AC_SUBST( cppflag, [] ) |
43 |
+- AC_SUBST( cxxflag, [-O3] ) |
44 |
++ AC_SUBST( cxxflag, [] ) |
45 |
+ AC_SUBST( object_path, [Release] ) |
46 |
+ fi |
47 |
+ AC_MSG_RESULT($debug) |
48 |
|
49 |
diff --git a/media-libs/stk/files/stk-4.5.1/020_all_noExamplesOrDemo.patch b/media-libs/stk/files/stk-4.5.1/020_all_noExamplesOrDemo.patch |
50 |
new file mode 100644 |
51 |
index 0000000..77d6435 |
52 |
--- /dev/null |
53 |
+++ b/media-libs/stk/files/stk-4.5.1/020_all_noExamplesOrDemo.patch |
54 |
@@ -0,0 +1,40 @@ |
55 |
+Index: stk-4.5.0/Makefile.in |
56 |
+=================================================================== |
57 |
+--- stk-4.5.0.orig/Makefile.in |
58 |
++++ stk-4.5.0/Makefile.in |
59 |
+@@ -6,35 +6,14 @@ REALTIME = @realtime@ |
60 |
+ |
61 |
+ all : |
62 |
+ cd src && $(MAKE) |
63 |
+- cd projects/demo && $(MAKE) libdemo |
64 |
+-ifeq ($(REALTIME),yes) |
65 |
+- cd projects/effects && $(MAKE) libeffects |
66 |
+- cd projects/ragamatic && $(MAKE) libragamat |
67 |
+- cd projects/eguitar && $(MAKE) libeguitar |
68 |
+-endif |
69 |
+- cd projects/examples && $(MAKE) -f libMakefile |
70 |
+ |
71 |
+ clean : |
72 |
+ $(RM) -f *~ |
73 |
+ cd src && $(MAKE) clean |
74 |
+- cd projects/demo && $(MAKE) clean |
75 |
+-ifeq ($(REALTIME),yes) |
76 |
+- cd projects/effects && $(MAKE) clean |
77 |
+- cd projects/ragamatic && $(MAKE) clean |
78 |
+- cd projects/eguitar && $(MAKE) clean |
79 |
+-endif |
80 |
+- cd projects/examples && $(MAKE) clean |
81 |
+ |
82 |
+ distclean: clean |
83 |
+ $(RM) -rf config.log config.status autom4te.cache Makefile |
84 |
+ cd src && $(MAKE) distclean |
85 |
+- cd projects/demo && $(MAKE) distclean |
86 |
+-ifeq ($(REALTIME),yes) |
87 |
+- cd projects/effects && $(MAKE) distclean |
88 |
+- cd projects/ragamatic && $(MAKE) distclean |
89 |
+- cd projects/eguitar && $(MAKE) distclean |
90 |
+-endif |
91 |
+- cd projects/examples && $(MAKE) distclean |
92 |
+ |
93 |
+ install: |
94 |
+ $(MAKE) -C src install |
95 |
|
96 |
diff --git a/media-libs/stk/files/stk-4.5.1/050_all_cxxflags.patch b/media-libs/stk/files/stk-4.5.1/050_all_cxxflags.patch |
97 |
new file mode 100644 |
98 |
index 0000000..d2cc4e5 |
99 |
--- /dev/null |
100 |
+++ b/media-libs/stk/files/stk-4.5.1/050_all_cxxflags.patch |
101 |
@@ -0,0 +1,13 @@ |
102 |
+Index: stk-4.5.0/configure.ac |
103 |
+=================================================================== |
104 |
+--- stk-4.5.0.orig/configure.ac |
105 |
++++ stk-4.5.0/configure.ac |
106 |
+@@ -100,7 +100,7 @@ fi |
107 |
+ CPPFLAGS="$CPPFLAGS $cppflag" |
108 |
+ |
109 |
+ # For debugging and optimization ... overwrite default because it has both -g and -O2 |
110 |
+-CXXFLAGS="$cxxflag" |
111 |
++CXXFLAGS="$CXXFLAGS $cxxflag" |
112 |
+ |
113 |
+ # Check compiler and use -Wall if gnu. |
114 |
+ if [test $GXX = "yes" ;] then |
115 |
|
116 |
diff --git a/media-libs/stk/stk-4.5.1.ebuild b/media-libs/stk/stk-4.5.1.ebuild |
117 |
new file mode 100644 |
118 |
index 0000000..6c5a408 |
119 |
--- /dev/null |
120 |
+++ b/media-libs/stk/stk-4.5.1.ebuild |
121 |
@@ -0,0 +1,69 @@ |
122 |
+# Copyright 1999-2015 Gentoo Foundation |
123 |
+# Distributed under the terms of the GNU General Public License v2 |
124 |
+# $Id$ |
125 |
+ |
126 |
+EAPI=5 |
127 |
+ |
128 |
+inherit eutils autotools |
129 |
+ |
130 |
+DESCRIPTION="Synthesis ToolKit in C++" |
131 |
+HOMEPAGE="http://ccrma.stanford.edu/software/stk/" |
132 |
+SRC_URI="http://ccrma.stanford.edu/software/stk/release/${P}.tar.gz" |
133 |
+ |
134 |
+LICENSE="MIT" |
135 |
+SLOT="0" |
136 |
+KEYWORDS="~amd64 ~x86" |
137 |
+IUSE="alsa debug doc jack oss static-libs" |
138 |
+ |
139 |
+RDEPEND="alsa? ( media-libs/alsa-lib ) |
140 |
+ jack? ( media-sound/jack-audio-connection-kit )" |
141 |
+DEPEND="${RDEPEND} |
142 |
+ virtual/pkgconfig |
143 |
+ dev-lang/perl" |
144 |
+ |
145 |
+src_prepare() { |
146 |
+ EPATCH_SUFFIX="patch" epatch "${FILESDIR}/${P}" |
147 |
+ eautoreconf |
148 |
+} |
149 |
+ |
150 |
+src_configure() { |
151 |
+ #breaks with --disable-foo...uses as --enable-foo |
152 |
+ local myconf |
153 |
+ if use debug; then |
154 |
+ myconf="${myconf} --enable-debug" |
155 |
+ fi |
156 |
+ if use oss; then |
157 |
+ myconf="${myconf} --with-oss" |
158 |
+ fi |
159 |
+ if use alsa; then |
160 |
+ myconf="${myconf} --with-alsa" |
161 |
+ fi |
162 |
+ if use jack; then |
163 |
+ myconf="${myconf} --with-jack" |
164 |
+ fi |
165 |
+ |
166 |
+ econf ${myconf} \ |
167 |
+ --enable-shared \ |
168 |
+ $(use_enable static-libs static) \ |
169 |
+ RAWWAVE_PATH=/usr/share/stk/rawwaves/ |
170 |
+} |
171 |
+ |
172 |
+src_install() { |
173 |
+ dodoc README.md |
174 |
+ |
175 |
+ # install the lib |
176 |
+ dolib src/libstk* |
177 |
+ |
178 |
+ # install headers |
179 |
+ insinto /usr/include/stk |
180 |
+ doins include/*.h |
181 |
+ |
182 |
+ # install rawwaves |
183 |
+ insinto /usr/share/stk/rawwaves |
184 |
+ doins rawwaves/*.raw |
185 |
+ |
186 |
+ # install docs |
187 |
+ if use doc; then |
188 |
+ dohtml -r doc/html/* |
189 |
+ fi |
190 |
+} |