summaryrefslogtreecommitdiff
path: root/media-libs/stk
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-02-13 08:16:09 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-02-13 08:16:09 +0000
commit4a74938e510c0dad732ae4c48f815dd0f0cabb46 (patch)
treee8c52cd3619bba6cf0a5c367f6c9d2cff0ac9d80 /media-libs/stk
parentebc282ef4dfa408accac685565b8ee5f6faec119 (diff)
gentoo auto-resync : 13:02:2023 - 08:16:09
Diffstat (limited to 'media-libs/stk')
-rw-r--r--media-libs/stk/Manifest3
-rw-r--r--media-libs/stk/files/stk-4.5.1/060_all_linux_pulse.patch36
-rw-r--r--media-libs/stk/stk-4.6.2.ebuild6
3 files changed, 42 insertions, 3 deletions
diff --git a/media-libs/stk/Manifest b/media-libs/stk/Manifest
index dd2bc1495722..22e888868b20 100644
--- a/media-libs/stk/Manifest
+++ b/media-libs/stk/Manifest
@@ -1,6 +1,7 @@
AUX stk-4.5.1/010_all_removeForcedFlags.patch 269 BLAKE2B a02fe10d9d3573e063174a096a6a4068b03139ec8b1d1c13097a1309265d53545109ae3a74f81e9b9bb32fefd73b69157037f76f470839b657bfdce10fea3c22 SHA512 7584c52c5e61c1bc8770bd776abe78a43d6a8f6ffcba1f4411c7674766d36220a38051eebd12515fe8d7db2b958d05c38f6940f676ca3aa0041321e81afdd5f4
AUX stk-4.5.1/020_all_noExamplesOrDemo.patch 1029 BLAKE2B 8ea62554a8a609a1365cbaf42cbfedb8fa257fcd531a01bd014cb41da80c98dbec9f74b9f45b400f2aa6a02dcfb3d58662fea4bf8584e760f5d66827f9760db6 SHA512 546851ad25e842b67a2a441e4e4d27295993a1cfeb659a620a6ebfaeb66c9cfe779c8f1ee506bb93a31bfea9687fbd378a881f11e5ffbe182d1d2b0eb478bbc0
AUX stk-4.5.1/050_all_cxxflags.patch 306 BLAKE2B 58708b9f0aded3069be8150407d877c97406fe941da895c3e7d7ededeccbbdeeb5dc2c10ef5e1a4b262943cdc147b66605764d58876aeb931e73e86fa8474b72 SHA512 36ecc6f6a03b9df258affd92079d3da06a5506a5e53ddc98934c47401c5b6745de7d0cb82b241c0dffda3d3baea9a32a7462292f1079fffba88425158562fa7f
+AUX stk-4.5.1/060_all_linux_pulse.patch 1636 BLAKE2B 9b4d7cc7a60afa9f22dbd325e6dddb0dccd1338c7a9336c1aec9f097dc9c7d133945c612a4ce49d91ef17759972ff45bac5828892385cb999226789999e834cf SHA512 b25ea404a5e3b6675e7a4f563df2aa044de7b006c683e64f0227548073b5daf90c24bddca454928587f421e68063d46359fb11a6359c4a6c80e1822382851400
DIST stk-4.6.2.tar.gz 2618125 BLAKE2B 8673cabbc57c5b520af62def967bf3923a91c7b619bd29faaebaa4e3fa6aabcd9dc43e605663d8062650b105ae60ebefc44a3fa420ef711119861ce03e77f130 SHA512 35a7f559cca5c9b5998528a566ae27bace3cac56cefda7ae54c06179f5002d2906c6ede6274bf06100dd6aa9dc0d1459bb8fca4a2072c686c2abfd493b6f2f3c
-EBUILD stk-4.6.2.ebuild 1398 BLAKE2B da23193395c1c8b2b04eb00c65a1561a1923eccb8c2fe15d8c31b3868ee271f969a8a93166b0844c9b648d9892cebb16ac0bb433fff1917e511becd02fc57cf3 SHA512 e72aeabe3c65fa63a92d8df047b35f534912cf7ac2cd65329a112f73e2fb0651538266436fe6cfd798575a1885983602cef8835d08820a0df09d749487b3a5e1
+EBUILD stk-4.6.2.ebuild 1461 BLAKE2B d4fba76e8237c7791fda816ddf4919ebb7aff6d13a669dc397cb5f146fa1057882cbb9e1b2a543e310295f114afe601d762a487f7ab48a99742b823f25821039 SHA512 8af57c01bb0d43ff298427810db36f3ae997af5984e233f27fb957f61883343ff559b6177c0f6e552a90104d1fee6a480d3decba4ad671eca0708fc23fc8f521
MISC metadata.xml 366 BLAKE2B eac66d7663dd4db0dba433e2e6a2715f6e5a41f111ae812ef32f661d03d04379eb8d5c47476ccdfff552d0722df65fd575d749411f7016dd575e17b05072e290 SHA512 0fb8de1d946df0c5e38e81e1a168fea0fdd80f5499b446e21bb68f7ec27046d3d3fae802cfbf3f1d59f8aa93495e742feae04587dabad9fe2ac393ad80bee9ab
diff --git a/media-libs/stk/files/stk-4.5.1/060_all_linux_pulse.patch b/media-libs/stk/files/stk-4.5.1/060_all_linux_pulse.patch
new file mode 100644
index 000000000000..2e4ae36abd7e
--- /dev/null
+++ b/media-libs/stk/files/stk-4.5.1/060_all_linux_pulse.patch
@@ -0,0 +1,36 @@
+https://github.com/thestk/stk/commit/b3439132339fc0fc649b8e305d7872e60b9520bf
+
+From b3439132339fc0fc649b8e305d7872e60b9520bf Mon Sep 17 00:00:00 2001
+From: Tristan Matthews <tmatth@videolan.org>
+Date: Wed, 9 Feb 2022 17:20:26 -0500
+Subject: [PATCH] configure: fix build for --with-pulse
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -162,6 +162,14 @@ api="$api -D__UNIX_JACK__"
+ AC_MSG_RESULT(using ALSA)
+ AC_CHECK_LIB(asound, snd_pcm_open, , AC_MSG_ERROR(ALSA support requires the asound library!))])
+
++ # Look for PulseAudio flag
++ AC_ARG_WITH(pulse, [ --with-pulse = choose PulseAudio support (linux only)])
++ AS_IF([test "x$with_pulse" == "xyes"], [
++ api="$api -D__LINUX_PULSE__"
++ AC_MSG_RESULT(using PulseAudio)
++ AC_CHECK_LIB(pulse, pa_proplist_gets, , AC_MSG_ERROR(PulseAudio support requires the libpulse library!))
++ AC_CHECK_LIB(pulse-simple, pa_simple_new, , AC_MSG_ERROR(PulseAudio support requires the libpulse-simple library!))])
++
+ # Look for OSS flag
+ AC_ARG_WITH(oss, [ --with-oss = choose OSS API support (unixes only)])
+ AS_IF([test "x$with_oss" == "xyes"], [
+--- a/include/Stk.h
++++ b/include/Stk.h
+@@ -622,7 +622,7 @@ const StkFloat ONE_OVER_128 = 0.0078125;
+ #if defined(__WINDOWS_DS__) || defined(__WINDOWS_ASIO__) || defined(__WINDOWS_MM__)
+ #define __OS_WINDOWS__
+ #define __STK_REALTIME__
+-#elif defined(__LINUX_OSS__) || defined(__LINUX_ALSA__) || defined(__UNIX_JACK__)
++#elif defined(__LINUX_OSS__) || defined(__LINUX_ALSA__) || defined(__UNIX_JACK__) || defined(__LINUX_PULSE__)
+ #define __OS_LINUX__
+ #define __STK_REALTIME__
+ #elif defined(__IRIX_AL__)
+
diff --git a/media-libs/stk/stk-4.6.2.ebuild b/media-libs/stk/stk-4.6.2.ebuild
index 52b7e39ead65..1a28ba8457df 100644
--- a/media-libs/stk/stk-4.6.2.ebuild
+++ b/media-libs/stk/stk-4.6.2.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-inherit autotools
+inherit autotools flag-o-matic
DESCRIPTION="Synthesis ToolKit in C++"
HOMEPAGE="https://ccrma.stanford.edu/software/stk/"
@@ -37,6 +37,8 @@ src_prepare() {
}
src_configure() {
+ use kernel_linux && append-flags -D__OS_LINUX__
+
#breaks with --disable-foo...uses as --enable-foo
local myconf
if use debug; then