summaryrefslogtreecommitdiff
path: root/media-sound/linuxsampler
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-sound/linuxsampler
reinit the tree, so we can have metadata
Diffstat (limited to 'media-sound/linuxsampler')
-rw-r--r--media-sound/linuxsampler/Manifest7
-rw-r--r--media-sound/linuxsampler/files/linuxsampler-2.0.0-lv2-automagic.patch21
-rw-r--r--media-sound/linuxsampler/files/linuxsampler-2.0.0-nptl-hardened.patch15
-rw-r--r--media-sound/linuxsampler/linuxsampler-2.0.0-r2.ebuild57
-rw-r--r--media-sound/linuxsampler/metadata.xml11
5 files changed, 111 insertions, 0 deletions
diff --git a/media-sound/linuxsampler/Manifest b/media-sound/linuxsampler/Manifest
new file mode 100644
index 000000000000..f85fb78a321f
--- /dev/null
+++ b/media-sound/linuxsampler/Manifest
@@ -0,0 +1,7 @@
+AUX linuxsampler-2.0.0-lv2-automagic.patch 727 SHA256 d4b3f56d53399054dc2f8ced7d6d776dabbf7e12b767f7d3cd1cb257db1514a9 SHA512 95f7b2bf01b293c58dc673cd40d6846d50d3a430a2874260fc268de7afe414a4970d4a443801f5d16417c14c6c16732e4bfdc58f7f997b7a3dd0bc1dc7ac8ddd WHIRLPOOL e5440950ee5098d635d93210abee237fff3966361dd287f4f17a0e024e451d75ddfeff4365dbdcae8dd99ce6f7d3f098056feafcb88434806390041712eb53af
+AUX linuxsampler-2.0.0-nptl-hardened.patch 654 SHA256 0aa6a6f0339cf0b7127a963fb020f4a70c1da5d7d89d5873bf690a9afaad807b SHA512 cc75f55d80264d939650ea87c967e206110ae07245ae8e00dd83bed63a4e0aa75aa2a18b3b384ca3557896e44b2a13bd34deb3cc6f5487d7516b09b2c05e1594 WHIRLPOOL 00635c36b95a11ce74d8b73f0258584e25d2f1da624e3564c7d9c79c6ba92faf6075a719fa427b1c2b7ebc1df90f76bc164e251d1b345e91a6e86b6ebd77cf2c
+DIST linuxsampler-2.0.0.tar.bz2 1318939 SHA256 1943d05006d96a9fb49f74a6f38129a4585cb78cc0648885fca9f056529c5c28 SHA512 f4a57117dbec3eeb9d6d670fec76e928ef9d9e49a1a8c6bd654d6114efdc203861e7865005f06265c172e29b5e0a948eac160377dcdabc5244caed5e5ca7e441 WHIRLPOOL d8af13229d8dafd8ed68950038968d19e01a010465a91ddd54866fb626c47081931dba7dda9a073c17274c26dec9a1ec51cf30a00fe4831716354c9e9fcf4cf4
+EBUILD linuxsampler-2.0.0-r2.ebuild 1239 SHA256 3b0b1d60b7845133a509d84b3bca98fa7408ba3f4edc4b80a29dbb5693b2cc27 SHA512 a2b299f2a9484fc156bdb07d1e5144504a2464c987ad093d33aeb27664367844c006a734b5c3c1041a48a99249a09710cbcb5c82ab8f40976b175c7e21611f9c WHIRLPOOL 5eae8602d73f5e83e98a0a2b91ee9e07d357c5ff0930fbf9c759bab54d46889eb0a0ef6401b845dabad3a6cf6a35eb2fd61e1d1a816b1eec1f9de09f7e2c4ed2
+MISC ChangeLog 3787 SHA256 3e4b0f46c457f32687896ff524891767c2a98e90670d7e69574814485c121f1e SHA512 2e16ea879588a2674e68e963ea5cb07c5018ab6280f182c78ce9af8a6200f34bef7e5aa93fc60f885cc39a150908fd14dda5b320ad262afa2d19a6bb0d9bdd84 WHIRLPOOL e07826c0ec071d865e31e52d83aa05db5c1e3a7d0040e6ae5dcec3796a4443f9d57a7704594e07637a6967532e370bba16bf80496a68119dba619a3b7b6878dd
+MISC ChangeLog-2015 3382 SHA256 f6201ddeafff781186b362ea3b997a9e4f1495ba46c1bbaa58f5e9af0af5fff7 SHA512 3223c06cd8f2a2c515de87fc062a93f1fd0a9c0e9135bc23ea56268bf7b12f1f9214942ecad18a5273f9cdcffd17cf4cff459d1183bfc061057d0506145bf18c WHIRLPOOL 54831344accc2aeb68f38eb63ba3bd12aa85406c57704ff2b7c8b84accfecb43b81ed3c73aaf892c4937bc4e24c5a15c8501f93a4603cb760cd460d86cc65442
+MISC metadata.xml 334 SHA256 d2514ef60656a9c2659f7486cd5d5124dd85c863468ca7b66fc6a7f9d2142ee1 SHA512 046a72ac6899e0f8e9362a8960bd5839fbc6f915673a95698ea02a9fcf3ad2325968a036340d32f1732ec9dfdc0591c3eba8e09665399bb51d5ff0f031a33716 WHIRLPOOL d91d8d57e9b0fbe3c2209383561a8cde06cde799b1572cd193fb7724008fbf6d25ea70dbb85f60d28b700b3e6792701cd2d8f50e0d43a56e58794389d89cdac5
diff --git a/media-sound/linuxsampler/files/linuxsampler-2.0.0-lv2-automagic.patch b/media-sound/linuxsampler/files/linuxsampler-2.0.0-lv2-automagic.patch
new file mode 100644
index 000000000000..a5b9f8d71efa
--- /dev/null
+++ b/media-sound/linuxsampler/files/linuxsampler-2.0.0-lv2-automagic.patch
@@ -0,0 +1,21 @@
+--- linuxsampler-2.0.0/configure.ac
++++ linuxsampler-2.0.0/configure.ac
+@@ -532,12 +532,12 @@
+ AM_CONDITIONAL(HAVE_DSSI, test $config_have_dssi = "yes")
+
+ # LV2
+-PKG_CHECK_MODULES(LV2, lv2 >= 1.0.0, config_have_lv2="yes", config_have_lv2="no")
+-if test "$config_have_lv2" != "yes"; then
+- PKG_CHECK_MODULES(LV2, lv2core >= 1.0.0, config_have_lv2="yes", config_have_lv2="no")
+-fi
+-AC_SUBST(LV2_CFLAGS)
+-AC_SUBST(LV2_LIBS)
++AC_ARG_ENABLE([lv2],
++ AS_HELP_STRING([--enable-lv2], [Enable building with lv2]))
++config_have_lv2="no"
++AS_IF([test "x$enable_lv2" = "xyes"], [
++ PKG_CHECK_MODULES([LV2], [lv2 >= 1.0.0 lv2core >= 1.0.0], [config_have_lv2="yes"])
++])
+ AM_CONDITIONAL(HAVE_LV2, test $config_have_lv2 = "yes")
+
+ # VST
diff --git a/media-sound/linuxsampler/files/linuxsampler-2.0.0-nptl-hardened.patch b/media-sound/linuxsampler/files/linuxsampler-2.0.0-nptl-hardened.patch
new file mode 100644
index 000000000000..0c61f096c213
--- /dev/null
+++ b/media-sound/linuxsampler/files/linuxsampler-2.0.0-nptl-hardened.patch
@@ -0,0 +1,15 @@
+Fix breakage caused by undefined behaviour. Using PTHREAD_CANCEL_ASYNCHRONOUS
+is only allowed in pure functions.
+See also: https://bugs.gentoo.org/show_bug.cgi?id=537516
+
+--- linuxsampler-2.0.0/m4/nptl_bug.m4
++++ linuxsampler-2.0.0/m4/nptl_bug.m4
+@@ -47,7 +47,7 @@
+ void* __pthread_launcher(void* p) {
+ // let the thread be killable under any circumstances
+ // (without this function call, this test always succeeds !)
+- pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL);
++ pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, NULL);
+
+ // this will block this 2nd thread, since we already
+ // locked this mutex by the main thread
diff --git a/media-sound/linuxsampler/linuxsampler-2.0.0-r2.ebuild b/media-sound/linuxsampler/linuxsampler-2.0.0-r2.ebuild
new file mode 100644
index 000000000000..5caedabd5610
--- /dev/null
+++ b/media-sound/linuxsampler/linuxsampler-2.0.0-r2.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools eutils
+
+DESCRIPTION="LinuxSampler is a software audio sampler engine with professional grade features"
+HOMEPAGE="http://www.linuxsampler.org/"
+SRC_URI="http://download.linuxsampler.org/packages/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc jack lv2 sqlite static-libs"
+
+RDEPEND="sqlite? ( >=dev-db/sqlite-3.3 )
+ >=media-libs/libgig-4.0.0
+ media-libs/alsa-lib
+ jack? ( virtual/jack )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ doc? ( app-doc/doxygen )
+ lv2? ( media-libs/lv2 )"
+PATCHES=(
+ "${FILESDIR}/${P}-nptl-hardened.patch"
+ "${FILESDIR}/${P}-lv2-automagic.patch"
+)
+
+src_prepare() {
+ default
+ # Force regeneration of the file to let it build with all bison
+ # versions, bug #556204
+ rm src/network/lscpparser.cpp || die
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --enable-alsa-driver \
+ --disable-arts-driver \
+ $(use_enable jack jack-driver) \
+ $(use_enable lv2) \
+ $(use_enable sqlite instruments-db) \
+ $(use_enable static-libs static)
+}
+
+src_compile() {
+ default
+ use doc && emake docs
+}
+
+src_install() {
+ default
+ use doc && dodoc -r doc/html
+ prune_libtool_files
+}
diff --git a/media-sound/linuxsampler/metadata.xml b/media-sound/linuxsampler/metadata.xml
new file mode 100644
index 000000000000..188b388f69c6
--- /dev/null
+++ b/media-sound/linuxsampler/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sound@gentoo.org</email>
+ <name>Gentoo Sound project</name>
+ </maintainer>
+ <use>
+ <flag name="lv2">Add support for Ladspa V2</flag>
+ </use>
+</pkgmetadata>