diff --git a/srcpkgs/faust/patches/faust-musl-stacktrace.patch b/srcpkgs/faust/patches/faust-musl-stacktrace.patch new file mode 100644 index 00000000000..efaeb8d09a2 --- /dev/null +++ b/srcpkgs/faust/patches/faust-musl-stacktrace.patch @@ -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()); + } + } diff --git a/srcpkgs/faust/patches/faust-voidlinux-lib_and_arch_paths.patch b/srcpkgs/faust/patches/faust-voidlinux-lib_and_arch_paths.patch new file mode 100644 index 00000000000..f1db586a2b9 --- /dev/null +++ b/srcpkgs/faust/patches/faust-voidlinux-lib_and_arch_paths.patch @@ -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"); + diff --git a/srcpkgs/faust/template b/srcpkgs/faust/template new file mode 100644 index 00000000000..14b79bb8878 --- /dev/null +++ b/srcpkgs/faust/template @@ -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 " +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} +}