Date: Wednesday, March 21, 2018 @ 16:21:00 Author: dvzrv Revision: 309995
Adding sc3-plugins as optdepends for supercollider. Added: sc3-plugins/ sc3-plugins/repos/ sc3-plugins/trunk/ sc3-plugins/trunk/PKGBUILD sc3-plugins/trunk/fixing-supernova-check.patch ------------------------------+ PKGBUILD | 55 +++++++++++++++++++++++ fixing-supernova-check.patch | 97 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 152 insertions(+) Added: sc3-plugins/trunk/PKGBUILD =================================================================== --- sc3-plugins/trunk/PKGBUILD (rev 0) +++ sc3-plugins/trunk/PKGBUILD 2018-03-21 16:21:00 UTC (rev 309995) @@ -0,0 +1,55 @@ +# Maintainer: David Runge <[email protected]> +pkgname=sc3-plugins +pkgver=3.9.1 +pkgrel=1 +pkgdesc="Extension plugins for the SuperCollider3 audio synthesis server." +arch=('x86_64') +url="https://github.com/supercollider/sc3-plugins" +license=('GPL2') +groups=('pro-audio') +depends=('supercollider') +makedepends=('cmake' 'git') +# proper source tarball generation is requested: +# https://github.com/supercollider/sc3-plugins/pull/186 +#source=("$pkgname-$pkgver.tar.gz::https://github.com/supercollider/${pkgname}/archive/Version-${pkgver}.tar.gz") +source=("$pkgname::git+https://github.com/supercollider/${pkgname}.git#tag=Version-${pkgver}" + "git+https://github.com/timblechmann/nova-simd" + "git+https://github.com/thestk/stk/" + "fixing-supernova-check.patch") +sha512sums=('SKIP' + 'SKIP' + 'SKIP' + '34a0753c116a763d4e3576c0207cf20ccc24043829d0b8a3ffa77e3928ffa98ccba9640854e4a728f698eeda23283c6f44f713c5bf155de3bf5f174f597f2805') + +prepare() { +# mv -v "$pkgname-Version-$pkgver" "${pkgname}-${pkgver}" +# cd "${pkgname}-${pkgver}" + cd ${pkgname} + git submodule init + git config submodule.external_libraries/nova-simd.url "${srcdir}/nova-simd" + git config submodule.external_libraries/stk.url "${srcdir}/stk" + git submodule update + # fixing false check for SUPERNOVA + # https://github.com/supercollider/sc3-plugins/issues/185 + patch -Np1 -i "${srcdir}/fixing-supernova-check.patch" + mkdir build +} + +build() { +# cd "$pkgname-$pkgver/build" + cd "${pkgname}/build" + cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DSC_PATH=/usr/include/SuperCollider/ \ + -DSUPERNOVA=ON \ + .. + make +} + +package() { +# cd "$pkgname-$pkgver/build" + cd "${pkgname}/build" + make DESTDIR="$pkgdir/" install + install -vDm 644 ../{{DEVELOPING,README}.md,TODO} \ + -t "${pkgdir}/usr/share/doc/${pkgname}/" +} Property changes on: sc3-plugins/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Added: sc3-plugins/trunk/fixing-supernova-check.patch =================================================================== --- sc3-plugins/trunk/fixing-supernova-check.patch (rev 0) +++ sc3-plugins/trunk/fixing-supernova-check.patch 2018-03-21 16:21:00 UTC (rev 309995) @@ -0,0 +1,97 @@ +From 01e34e40a896165f8ac6ebf85bab2e38e900d44b Mon Sep 17 00:00:00 2001 +From: David Runge <[email protected]> +Date: Wed, 21 Mar 2018 16:15:12 +0100 +Subject: [PATCH] CMakeLists.txt: Changing check for SUPERNOVA to be check for + NOVA_DISK_IO, so default builds won't fail, if the SuperCollider sources are + not around during build time. + +--- + CMakeLists.txt | 37 ++++++++++++++++++++----------------- + 1 file changed, 20 insertions(+), 17 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index cd9d782..96a993a 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -12,9 +12,12 @@ if (NOT SYSTEM_STK) + endif() + endif() + +-if (SUPERNOVA) ++if (NOVA_DISK_IO) + if (NOT EXISTS ${SC_PATH}/external_libraries/nova-tt/CMakeLists.txt) +- message(FATAL_ERROR "The nova-tt submodule in the SuperCollider repository is missing (required for SuperNova plugins). This probably means you forgot to clone submodules. To fix this, run `git submodule update --init` from the root folder of the SuperCollider repository") ++ message(FATAL_ERROR "The nova-tt submodule in the SuperCollider repository ++ is missing (required for NovaDiskIO plugin). This probably means you forgot ++ to clone submodules. To fix this, run `git submodule update --init` from ++ the root folder of the SuperCollider repository") + endif() + endif() + +@@ -31,9 +34,9 @@ add_custom_target(uninstall + + find_package(SuperCollider3) + if (NOT SC_FOUND) +- message(SEND_ERROR "cannot find SuperCollider3 headers. Set the variable SC_PATH.") ++ message(SEND_ERROR "cannot find SuperCollider3 headers. Set the variable SC_PATH.") + else() +- message(STATUS "Using SC source located at ${SC_PATH}") ++ message(STATUS "Using SC source located at ${SC_PATH}") + endif() + + include("${SC_PATH}/SCVersion.txt") +@@ -41,9 +44,9 @@ set(PROJECT_VERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}${PROJECT_ + message(STATUS "Building plugins for SuperCollider version: ${PROJECT_VERSION}") + + if(CMAKE_SYSTEM_NAME MATCHES "Linux" AND NOT CMAKE_VERSION VERSION_LESS SUPERNOVA_CMAKE_MINVERSION) +- option(SUPERNOVA "Build plugins for supernova" ON) ++ option(SUPERNOVA "Build plugins for supernova" ON) + else() +- option(SUPERNOVA "Build plugins for supernova" OFF) ++ option(SUPERNOVA "Build plugins for supernova" OFF) + endif() + + option(AY "Build with AY ugens" ON) +@@ -58,7 +61,7 @@ option(SYSTEM_STK "Use STK libraries from system" OFF) + option(NOVA_DISK_IO "Build with Nova's DiskIO UGens. Requires boost source tree, break warranty & eats your children." OFF) + + if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang") +- set(CMAKE_COMPILER_IS_CLANG 1) ++ set(CMAKE_COMPILER_IS_CLANG 1) + endif() + + if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANG) +@@ -97,20 +100,20 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANG) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mfpmath=sse") + endif() + +- if(NATIVE) +- add_definitions(-march=native) +- endif() ++ if(NATIVE) ++ add_definitions(-march=native) ++ endif() + +- if(CPP11) ++ if(CPP11) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") +- if(CMAKE_COMPILER_IS_CLANG) +- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++") +- endif() +- endif() ++ if(CMAKE_COMPILER_IS_CLANG) ++ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++") ++ endif() ++ endif() + endif() + if(MINGW) +- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mstackrealign") +- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mstackrealign") ++ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mstackrealign") ++ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mstackrealign") + endif() + + if (NOVA_SIMD) +-- +2.16.2 +
