parent
104fa0add6
commit
ba9829d3dd
3 changed files with 74 additions and 0 deletions
14
srcpkgs/faust/patches/faust-musl-stacktrace.patch
Normal file
14
srcpkgs/faust/patches/faust-musl-stacktrace.patch
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
--- compiler/errors/errormsg.cpp-old 2019-12-22 19:47:17.694670614 +0100
|
||||||
|
+++ compiler/errors/errormsg.cpp 2019-12-22 19:48:25.145673133 +0100
|
||||||
|
@@ -43,9 +43,11 @@
|
||||||
|
gGlobal->printCompilationOptions(str);
|
||||||
|
}
|
||||||
|
str << ")\n";
|
||||||
|
+#ifdef __GLIBC__
|
||||||
|
#ifndef EMCC
|
||||||
|
stacktrace(str, 20);
|
||||||
|
#endif
|
||||||
|
+#endif
|
||||||
|
throw faustexception(str.str());
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,32 @@
|
||||||
|
--- compiler/libcode.cpp-old 2019-12-22 19:50:13.663677186 +0100
|
||||||
|
+++ compiler/libcode.cpp 2019-12-22 19:51:42.011680485 +0100
|
||||||
|
@@ -733,11 +733,11 @@
|
||||||
|
}
|
||||||
|
static void printArchDir()
|
||||||
|
{
|
||||||
|
- cout << gGlobal->gFaustRootDir << kPSEP << "share" << kPSEP << "faust" << endl;
|
||||||
|
+ cout << gGlobal->gFaustRootDir << kPSEP << "lib" << kPSEP << "faust" << endl;
|
||||||
|
}
|
||||||
|
static void printDspDir()
|
||||||
|
{
|
||||||
|
- cout << gGlobal->gFaustRootDir << kPSEP << "share" << kPSEP << "faust" << endl;
|
||||||
|
+ cout << gGlobal->gFaustRootDir << kPSEP << "lib" << kPSEP << "faust" << endl;
|
||||||
|
}
|
||||||
|
static void printPaths()
|
||||||
|
{
|
||||||
|
@@ -1101,6 +1101,7 @@
|
||||||
|
gGlobal->gImportDirList.push_back(exepath::dirup(gGlobal->gFaustExeDir) + "/share/faust");
|
||||||
|
gGlobal->gImportDirList.push_back("/usr/local/share/faust");
|
||||||
|
gGlobal->gImportDirList.push_back("/usr/share/faust");
|
||||||
|
+ gGlobal->gImportDirList.push_back("/usr/lib/faust");
|
||||||
|
|
||||||
|
//-------------------------------------------------------------------------------------
|
||||||
|
// init gArchitectureDirList : a list of path where to search architectures files
|
||||||
|
@@ -1119,6 +1120,7 @@
|
||||||
|
gGlobal->gArchitectureDirList.push_back(exepath::dirup(gGlobal->gFaustExeDir) + "/include");
|
||||||
|
gGlobal->gArchitectureDirList.push_back("/usr/local/share/faust");
|
||||||
|
gGlobal->gArchitectureDirList.push_back("/usr/share/faust");
|
||||||
|
+ gGlobal->gArchitectureDirList.push_back("/usr/lib/faust");
|
||||||
|
gGlobal->gArchitectureDirList.push_back("/usr/local/include");
|
||||||
|
gGlobal->gArchitectureDirList.push_back("/usr/include");
|
||||||
|
|
28
srcpkgs/faust/template
Normal file
28
srcpkgs/faust/template
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
# Template file for 'faust'
|
||||||
|
pkgname=faust
|
||||||
|
version=2.20.2
|
||||||
|
revision=1
|
||||||
|
build_style=gnu-makefile
|
||||||
|
hostmakedepends="cmake pkg-config llvm"
|
||||||
|
makedepends="libmicrohttpd-devel llvm-libunwind-devel"
|
||||||
|
short_desc="Functional Programming Language for Real Time Signal Processing"
|
||||||
|
maintainer="mag <mag-one@autistici.org>"
|
||||||
|
license="GPL-2.0-or-later"
|
||||||
|
homepage="http://faust.grame.fr/"
|
||||||
|
distfiles=https://github.com/grame-cncm/faust/releases/download/${version}/${pkgname}-${version}.tar.gz
|
||||||
|
checksum="c32588ee60d0f7ca25034d3d5436def6b35495f4d3beb3b02208d48684bcfbe9"
|
||||||
|
|
||||||
|
# Android stuffs, used by the 'faust2android' script.
|
||||||
|
nostrip_files="libsndfile.so "
|
||||||
|
noverifyrdeps="libsndfile.so"
|
||||||
|
skiprdeps="/usr/lib/faust/android/app/lib/libsndfile/lib/armeabi-v7a/libsndfile.so
|
||||||
|
/usr/lib/faust/android/app/lib/libsndfile/lib/arm64-v8a/libsndfile.so"
|
||||||
|
|
||||||
|
case $XBPS_TARGET_MACHINE in
|
||||||
|
*-musl) makedepends+=" libexecinfo-devel";;
|
||||||
|
esac
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
mv $PKGDESTDIR/usr/share/faust $PKGDESTDIR/usr/lib
|
||||||
|
vcopy examples usr/lib/${pkgname}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue