Merge pull request #2673 from thypon/audiothings

Audio Workstation
This commit is contained in:
Andrea Brancaleoni 2015-10-09 16:49:31 +02:00
commit 21d6e23477
17 changed files with 439 additions and 6 deletions

View File

@ -2223,3 +2223,5 @@ libgavl.so.1 gavl-1.40_1
libmxml.so.1 mxml-2.9_1
libdovecot-sieve.so.0 dovecot-plugin-pigeonhole-0.4.9_2
libi3ipc-glib-1.0.so.0 i3ipc-glib-0.6.0_1
libcsound64.so.6.0 csound-6.05.0_1
libcsnd6.so.6.0 csound-6.05.0_1

18
srcpkgs/ardour/template Normal file
View File

@ -0,0 +1,18 @@
# Template file for 'ardour'
pkgname=ardour
version=4.2
revision=1
build_style=waf
configure_args="--with-backends=jack,alsa --libjack=weak --optimize --docs"
hostmakedepends="python git graphviz doxygen pkg-config clang"
makedepends="boost-devel liblrdf-devel liblo-devel lilv-devel suil-devel taglib-devel aubio-devel rubberband-devel alsa-lib-devel libsndfile-devel vamp-plugin-sdk-devel fftw-devel jack-devel libsamplerate-devel lv2 sratom-devel gtkmm2-devel"
short_desc="Professional-grade digital audio workstation"
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
license="GPL-2"
homepage="http://ardour.org"
CXXFLAGS="-std=c++11"
do_fetch() {
git clone --branch=$version https://github.com/Ardour/$pkgname $pkgname-$version
}

View File

@ -0,0 +1,149 @@
diff -ru chuck-1.2.1.1~/src/util_hid.cpp chuck-1.2.1.1/src/util_hid.cpp
--- chuck-1.2.1.1~/src/util_hid.cpp 2008-03-29 23:24:21.000000000 +0100
+++ chuck-1.2.1.1/src/util_hid.cpp 2008-03-29 23:24:54.000000000 +0100
@@ -7175,14 +7175,139 @@
int WiiRemote_send( const HidMsg * msg ){ return -1; }
const char * WiiRemote_name( int wr ){ return NULL; }
+#define SYSFS_TILTSENSOR_FILE "/sys/devices/platform/applesmc/position"
+#define TILTSENSOR_BUF_LEN 32
+
+static struct t_TiltSensor_data
+{
+ union
+ {
+ struct t_macbook
+ {
+ int x;
+ int y;
+ int z;
+ } macbook;
+ } data;
+ int dataType;
+ int detected;
+ int refcount;
+
+ t_TiltSensor_data()
+ {
+ refcount = 0;
+ dataType = -1;
+ detected = 0;
+ }
+
+} TiltSensor_data;
+enum
+{
+ linuxAppleSMCMacBookDataType
+};
+static int TiltSensor_detect()
+{
+ int fd;
+
+ fd = open(SYSFS_TILTSENSOR_FILE, O_RDONLY);
+
+ if (fd > 0)
+ {
+ TiltSensor_data.dataType = linuxAppleSMCMacBookDataType;
+ TiltSensor_data.detected = 1;
+ close(fd);
+ return 1;
+ }
+
+ TiltSensor_data.detected = -1;
+
+ return 0;
+}
+
+static int TiltSensor_do_read()
+{
+
+ switch(TiltSensor_data.dataType)
+ {
+ case linuxAppleSMCMacBookDataType:
+ char buf[TILTSENSOR_BUF_LEN];
+ int ret, fd;
+ fd = open(SYSFS_TILTSENSOR_FILE, O_RDONLY);
+
+ if (fd < 0) {
+ return -1;
+ }
+ ret = read(fd, buf, TILTSENSOR_BUF_LEN);
+ if (ret < 0) {
+ close(fd);
+ return -1;
+ }
+ if (sscanf(buf, "(%d,%d,%d)\n", &TiltSensor_data.data.macbook.x, &TiltSensor_data.data.macbook.y, &TiltSensor_data.data.macbook.z) != 3) {
+ close(fd);
+ return -1;
+ }
+ close(fd);
+ break;
+ default:
+ return 0;
+ }
+ return 1;
+}
void TiltSensor_init(){}
void TiltSensor_quit(){}
void TiltSensor_probe(){}
-int TiltSensor_count(){ return 0; }
-int TiltSensor_open( int ts ){ return -1; }
-int TiltSensor_close( int ts ){ return -1; }
-int TiltSensor_read( int ts, int type, int num, HidMsg * msg ){ return -1; }
-const char * TiltSensor_name( int ts ){ return NULL; }
+int TiltSensor_count()
+{
+ if(TiltSensor_data.detected == 0)
+ TiltSensor_detect();
+
+ if(TiltSensor_data.detected == -1)
+ return 0;
+ else if(TiltSensor_data.detected == 1)
+ return 1;
+
+ return 0;
+}
+int TiltSensor_open( int ts )
+{
+ if(TiltSensor_data.detected == 0)
+ TiltSensor_detect();
+
+ if(TiltSensor_data.detected == -1)
+ return -1;
+
+ TiltSensor_data.refcount++;
+
+ return 0;
+}
+int TiltSensor_close( int ts )
+{
+ TiltSensor_data.refcount--;
+
+ return 0;
+}
+int TiltSensor_read( int ts, int type, int num, HidMsg * msg )
+{
+
+ if(TiltSensor_data.detected == -1)
+ return -1;
+
+ if(!TiltSensor_do_read())
+ return -1;
+
+ if(TiltSensor_data.dataType == linuxAppleSMCMacBookDataType)
+ {
+ msg->idata[0] = TiltSensor_data.data.macbook.x;
+ msg->idata[1] = TiltSensor_data.data.macbook.y;
+ msg->idata[2] = TiltSensor_data.data.macbook.z;
+ }
+
+ return 0;
+}
+const char * TiltSensor_name( int ts )
+{
+ return "Apple Sudden Motion Sensor";
+}
#endif
Only in chuck-1.2.1.1/src: util_hid.cpp.orig

View File

@ -0,0 +1,27 @@
--- chuck-1.3.5.1/src/makefile
+++ chuck-1.3.5.1/src/makefile
@@ -40,8 +40,6 @@
ifneq ($(CHUCK_DEBUG),)
CFLAGS+= -g
-else
-CFLAGS+= -O3
endif
ifneq ($(USE_64_BIT_SAMPLE),)
--- chuck-1.3.5.1/src/makefile.alsa
+++ chuck-1.3.5.1/src/makefile.alsa
@@ -1,4 +1,4 @@
-CFLAGS+= -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__
+CFLAGS+= -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__
LDFLAGS+= -lasound -lstdc++ -ldl -lm -lsndfile -lpthread
--- chuck-1.3.5.1/src/makefile.jack
+++ chuck-1.3.5.1/src/makefile.jack
@@ -1,4 +1,4 @@
-CFLAGS+= -D__UNIX_JACK__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__
+CFLAGS+= -D__UNIX_JACK__ -D__PLATFORM_LINUX__ -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__
LDFLAGS+= -lasound -ljack -lstdc++ -ldl -lm -lsndfile -lpthread

23
srcpkgs/chuck/template Normal file
View File

@ -0,0 +1,23 @@
# Template file for 'chuck'
pkgname=chuck
version=1.3.5.0
revision=1
build_wrksrc=src
hostmakedepends="bison flex"
makedepends="jack-devel libsndfile-devel liblo-devel"
short_desc="Concurrent, on-the-fly audio programming language"
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
license="GPL-3"
homepage="http://chuck.cs.princeton.edu"
distfiles="http://chuck.cs.princeton.edu/release/files/$pkgname-$version.tgz"
checksum=658e361ceb2ef263c38432e8182664dfe7bf0473fc4580a392a4326b66a14266
patch_args="-Np1"
do_build() {
make CXX="$CXX" CC="$CC" LD="$CXX" linux-jack
}
do_install() {
vbin chuck
}

3
srcpkgs/csound/files/csound.sh Executable file
View File

@ -0,0 +1,3 @@
export OPCODE6DIR=/usr/lib/csound/plugins64
export CSSTRNGS=/usr/share/locale
export RAWWAVE_PATH=/usr/lib/stk/rawwaves

View File

@ -0,0 +1,47 @@
diff --git CMake/gLists.txt CMake/gLists.txt
index 2b16079..18a6ad1 100644
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -97,6 +97,10 @@ endfunction(make_executable)
function(make_utility name srcs)
make_executable(${name} "${srcs}" "${CSOUNDLIB}")
add_dependencies(${name} ${CSOUNDLIB})
+
+ if(LINUX)
+ target_link_libraries(${name} m)
+ endif()
endfunction()
diff --git frontends/CMakeLists.txt frontends/CMakeLists.txt
index d0e3a21..b31f37a 100644
--- frontends/CMakeLists.txt
+++ frontends/CMakeLists.txt
@@ -43,6 +43,9 @@ endfunction(make_plugin_frontend)
# We need a different name to avoid clashes with float libcsound
make_executable(csound-bin "${CS_MAIN_SRCS}" "${CSOUNDLIB}" csound)
+if(LINUX)
+ target_link_libraries(csound-bin m)
+endif()
message(STATUS "Building csLadspa")
diff --git util/CMakeLists.txt util/CMakeLists.txt
index 25089cc..ebf0aa5 100644
--- util/CMakeLists.txt
+++ util/CMakeLists.txt
@@ -23,9 +23,11 @@ if(BUILD_UTILITIES)
make_utility(hetro het_main.c)
make_utility(lpanal lpc_main.c)
make_utility(lpc_export lpcx_main.c)
- target_link_libraries(lpc_export m)
make_utility(lpc_import lpci_main.c)
- make_executable(mixer-bin mixer_main.c "${CSOUNDLIB}" mixer)
+ if(LINUX)
+ make_executable(mixer-bin mixer_main.c "${CSOUNDLIB}" mixer)
+ endif()
+ target_link_libraries(mixer-bin m)
make_utility(pvanal pvc_main.c)
make_utility(pvlook pvl_main.c)
make_utility(pv_export pvx_main.c)

25
srcpkgs/csound/template Normal file
View File

@ -0,0 +1,25 @@
# Template file for 'csound'
pkgname=csound
version=6.05.0
revision=1
build_style=cmake
configure_args="
-DJAVA_MODULE_INSTALL_DIR=/usr/lib/csound/java
-DPYTHON_MODULE_INSTALL_DIR=/usr/lib/python2.7/site-packages
-DLUA_MODULE_INSTALL_DIR=/usr/lib/lua/5.1
-DDPD_MODULE_INSTALL_DIR=/usr/lib/pd/extra"
hostmakedepends="cmake python flex"
makedepends="pd-devel fltk-devel fluidsynth-devel liblo-devel portaudio-devel portmidi-devel tk-devel libcurl-devel LuaJIT-devel boost-devel libgomp-devel libsndfile-devel"
depends="pd"
short_desc="A programming language for sound rendering and signal processing"
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
license="LGPL-3"
homepage="http://csound.github.io"
distfiles="https://github.com/$pkgname/$pkgname/archive/$version.tar.gz"
checksum=2384cbc82fe37b70192c87977b52c55b336731ecbfd3be1d8d30c7223815d7b9
nocross=yes
post_install() {
rm -r $DESTDIR/tmp
vinstall ${FILESDIR}/csound.sh 755 etc/profile.d
}

18
srcpkgs/guitarix/template Normal file
View File

@ -0,0 +1,18 @@
# Template file for 'guitarix'
pkgname=guitarix
version=0.33.0
revision=1
build_style=waf
configure_args="--no-faust"
hostmakedepends="python pkg-config intltool lilv-devel gperf eigen"
makedepends="boost-devel gtkmm2-devel liblrdf-devel boost-devel
libbluetooth-devel zita-convolver-devel zita-resampler-devel lv2 jack-devel
libsndfile-devel fftw-devel ladspa-sdk lilv-devel sratom-devel avahi-glib-libs-devel"
short_desc="A simple mono guitar amplifier and FX for JACK using Faust"
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
license="GPL-3"
homepage="http://guitarix.sourceforge.net"
distfiles="${SOURCEFORGE_SITE}/project/$pkgname/$pkgname/${pkgname}2-$version.tar.bz2"
checksum=fdb116e91fd80ec68a89e186303b7f7edb38d019451b1f43d7d25105ac78cdf0
CXXFLAGS="-std=c++11"

View File

@ -1,11 +1,12 @@
# Template file for 'lv2'
pkgname=lv2
version=1.10.0
revision=1
revision=2
lib32disabled=yes
build_style=waf
homepage="http://lv2plug.in"
makedepends="python libsndfile-devel gtk+-devel"
hostmakedepends="python"
makedepends="libsndfile-devel gtk+-devel"
short_desc="Plugin standard for audio systems"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="LGPL-2.1, BSD"
@ -13,5 +14,5 @@ distfiles="http://lv2plug.in/spec/${pkgname}-${version}.tar.bz2"
checksum=e80c8e4b45d4de3b09f26d76e39d454739b6aff3f444ea1dabe466ab530fa4d5
post_install() {
vinstall COPYING 0644 usr/share/licenses/${pkgname}
vlicense COPYING
}

1
srcpkgs/pd-devel Symbolic link
View File

@ -0,0 +1 @@
pd

34
srcpkgs/pd/template Normal file
View File

@ -0,0 +1,34 @@
# Template file for 'pd'
pkgname=pd
version=0.46.7
revision=1
_ver=${version%.*}-${version##*.}
wrksrc="$pkgname-$_ver"
build_style=gnu-configure
configure_args="--enable-alsa --enable-jack --disable-portaudio --enable-fftw"
hostmakedepends="automake libtool pkg-config"
makedepends="jack-devel tk-devel fftw-devel"
short_desc="The Pure Data real-time music and multimedia environment"
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
license="BSD"
homepage="http://msp.ucsd.edu/software.html"
distfiles="http://msp.ucsd.edu/Software/pd-$_ver.src.tar.gz"
checksum=543802341bb0c7d03ed3a64cd56e2fafdbd35505d815ae3ced6555b43eaf58e5
pre_configure() {
autoreconf -fi
}
post_install() {
vlicense LICENSE.txt
}
pd-devel_package() {
depends="pd>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/share
}
}

View File

@ -0,0 +1,24 @@
diff -baur src/global.h src/global.h
--- src/global.h 2011-07-12 05:13:31.367583829 +0800
+++ src/global.h 2011-07-12 05:15:20.670325018 +0800
@@ -99,7 +99,7 @@
#include <X11/xpm.h>
#include <jack/jack.h>
#include <jack/midiport.h>
-#include <Fl/Fl_Preferences.H>
+#include <FL/Fl_Preferences.H>
#include "FPreset.h"
#include "Reverb.h"
#include "Chorus.h"
diff -baur src/process.C src/process.C
--- src/process.C 2011-07-12 05:13:31.367583829 +0800
+++ src/process.C 2011-07-12 05:15:31.293600800 +0800
@@ -28,7 +28,7 @@
#include <fcntl.h>
#include <sys/types.h>
#include <unistd.h>
-#include <Fl/Fl_Preferences.H>
+#include <FL/Fl_Preferences.H>
#include "global.h"
int Pexitprogram, preset;

View File

@ -0,0 +1,20 @@
# Template file for 'rakarrack'
pkgname=rakarrack
version=0.6.1
revision=1
build_style=gnu-configure
hostmakedepends="alsa-utils"
makedepends="jack-devel libsndfile-devel libXpm-devel fltk-devel libsamplerate-devel"
short_desc="Versatile guitar multi-effects processor"
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
license="GPL-3"
homepage="http://rakarrack.sourceforge.net"
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2"
checksum=7696d27a4814b140fe651d137612ddfa1f167858eccc119e278c14dbee30eee6
pre_configure() {
case "$XBPS_TARGET_MACHINE" in
x86_64*|i686*) ;;
*) sed -i 's|$SSE $ALTIVEC||g' configure;;
esac
}

View File

@ -1,10 +1,10 @@
# Template file for 'sratom'
pkgname=sratom
version=0.4.6
revision=4
revision=5
build_style=waf
hostmakedepends="pkg-config python lv2"
makedepends="serd-devel sord-devel"
hostmakedepends="pkg-config python"
makedepends="serd-devel sord-devel lv2"
short_desc="Library for serialising LV2 atoms to/from RDF (Turtle syntax)"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="ISC"

View File

@ -0,0 +1,19 @@
# Template file for 'supercollider'
pkgname=supercollider
version=3.6.99
revision=1
_commit=b305a24
build_style=cmake
hostmakedepends="cmake git perl pkg-config"
makedepends="jack-devel fftw-devel qt5-webkit-devel yaml-cpp-devel libsndfile-devel libXt-devel qt5-sensors-devel avahi-libs-devel qt5-declarative-devel qt5-devel qt5-plugin-odbc qt5-plugin-sqlite qt5-plugin-tds qt5-plugin-mysql qt5-plugin-pgsql qt5-location-devel qt5-tools-devel emacs"
short_desc="An environment and programming language for real time audio synthesis"
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
license="GPL-3"
homepage="https://github.com/$pkgname/$pkgname"
do_fetch() {
git clone $homepage $pkgname-$version
cd $pkgname-$version
git checkout $_commit
git submodule init && git submodule update
}

22
srcpkgs/yoshimi/template Normal file
View File

@ -0,0 +1,22 @@
# Template file for 'yoshimi'
pkgname=yoshimi
version=1.3.6
revision=1
build_style=cmake
build_wrksrc=src
hostmakedepends="cmake pkg-config fltk"
makedepends="boost-devel jack-devel fltk-devel fftw-devel mxml-devel cairo-devel lv2"
short_desc="ZynAddSubFX fork with improved JACK audio & MIDI IO"
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
license="GPL-3"
homepage="http://yoshimi.sourceforge.net"
distfiles="https://github.com/Yoshimi/$pkgname/archive/$version.tar.gz"
checksum=ff18a0318c9cf26992aabd36e63d1f98fed52b14b96c911d124e0baf66a7c372
pre_configure() {
case "$XBPS_TARGET_MACHINE" in
x86_64*) ;;
i686*) ;;
*) sed -i 's|-msse -msse2 -mfpmath=sse||g' CMakeLists.txt;;
esac
}