[arch-commits] Commit in sc3-plugins/repos (3 files)
David Runge
dvzrv at archlinux.org
Thu Apr 18 21:20:42 UTC 2019
Date: Thursday, April 18, 2019 @ 21:20:41
Author: dvzrv
Revision: 452005
archrelease: copy trunk to community-staging-x86_64
Added:
sc3-plugins/repos/community-staging-x86_64/
sc3-plugins/repos/community-staging-x86_64/PKGBUILD
(from rev 452004, sc3-plugins/trunk/PKGBUILD)
sc3-plugins/repos/community-staging-x86_64/fixing-supernova-check.patch
(from rev 452004, sc3-plugins/trunk/fixing-supernova-check.patch)
------------------------------+
PKGBUILD | 42 +++++++++++++++++
fixing-supernova-check.patch | 97 +++++++++++++++++++++++++++++++++++++++++
2 files changed, 139 insertions(+)
Copied: sc3-plugins/repos/community-staging-x86_64/PKGBUILD (from rev 452004, sc3-plugins/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2019-04-18 21:20:41 UTC (rev 452005)
@@ -0,0 +1,42 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+pkgname=sc3-plugins
+pkgver=3.10.0
+pkgrel=3
+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=('stk' 'supercollider')
+makedepends=('cmake' 'git')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/supercollider/${pkgname}/releases/download/Version-${pkgver}/${pkgname}-${pkgver}-Source.tar.bz2"
+ "fixing-supernova-check.patch")
+sha512sums=('2105e049046ae595ed7e2e57be5f3d7ba20b940530ea448bde098cd2cdfdddc6ab17d7f16b27ef41f9e245f879d287ecb51f66bc0535814e0a2be4b0a806e377'
+ '34a0753c116a763d4e3576c0207cf20ccc24043829d0b8a3ffa77e3928ffa98ccba9640854e4a728f698eeda23283c6f44f713c5bf155de3bf5f174f597f2805')
+
+prepare() {
+ mv -v "$pkgname-$pkgver-Source" "${pkgname}-${pkgver}"
+ cd "${pkgname}-${pkgver}"
+ # fixing wrong 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"
+ cmake -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DSC_PATH=/usr/include/SuperCollider/ \
+ -DSYSTEM_STK=ON \
+ -DSUPERNOVA=ON \
+ ..
+ make
+}
+
+package() {
+ cd "$pkgname-$pkgver/build"
+ make DESTDIR="$pkgdir/" install
+ install -vDm 644 ../{{DEVELOPING,README}.md,TODO} \
+ -t "${pkgdir}/usr/share/doc/${pkgname}/"
+}
Copied: sc3-plugins/repos/community-staging-x86_64/fixing-supernova-check.patch (from rev 452004, sc3-plugins/trunk/fixing-supernova-check.patch)
===================================================================
--- community-staging-x86_64/fixing-supernova-check.patch (rev 0)
+++ community-staging-x86_64/fixing-supernova-check.patch 2019-04-18 21:20:41 UTC (rev 452005)
@@ -0,0 +1,97 @@
+From 01e34e40a896165f8ac6ebf85bab2e38e900d44b Mon Sep 17 00:00:00 2001
+From: David Runge <dave at sleepmap.de>
+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
+
More information about the arch-commits
mailing list