blob: abe7ddf668f071b69627c39ad7d04ceb82cc016b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
# Maintainer: David Runge <dave@sleepmap.de>
pkgname=supercollider-git
_name="supercollider"
_pkgbranch="3.8"
pkgver=3.8.0.r0.g0947edd
pkgrel=1
pkgdesc="An environment and programming language for real time audio synthesis and algorithmic composition."
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
url="http://supercollider.github.io/"
license=('GPL3')
depends=('jack' 'fftw' 'cwiid' 'qt5-webkit')
makedepends=('avahi' 'boost' 'cmake' 'emacs' 'libsndfile' 'qt5-tools' 'ruby' 'vim')
optdepends=('emacs: emacs interface'
'gedit: gedit interface'
'vim: vim interface'
'ruby: vim support'
'tmux: vim interface'
'screen: vim interface')
conflicts=('supercollider')
provides=('supercollider')
install="${_name}.install"
source=("${_name}::git+https://github.com/supercollider/supercollider.git"
"${_name}-cxxflags.patch")
md5sums=('SKIP'
'4f62489286fe8008d6013fc59047c20b')
prepare() {
cd "$_name"
git checkout origin/${_pkgbranch}
# Fix CXXFLAGS
patch -p1 -i ../supercollider-cxxflags.patch
}
pkgver() {
cd "$_name"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/Version.//g'
}
build() {
cd $srcdir/$_name
git submodule update --init --recursive .
_carch=$(uname -m)
Qt5LinguistTools_DIR="/usr/lib/cmake/Qt5LinguistTools"
[ -d bld ] || mkdir bld && cd bld
export LDFLAGS="${LDFLAGS//-Wl,--as-needed}"
msg "$_carch architecture detected."
case "$_carch" in
"armv6l")
export CC="gcc"
export CXX="g++"
cmake .. -L \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTING=OFF \
-DSSE=OFF \
-DSSE2=OFF \
-DSUPERNOVA=OFF \
-DNOVA_SIMD=ON \
-DNATIVE=OFF \
-DSC_QT=OFF \
-DSC_WII=OFF \
-DSC_ED=OFF \
-DSC_IDE=OFF \
-DSC_EL=ON \
-DCMAKE_C_FLAGS="-march=armv6 -mfpu=vfp -mfloat-abi=hard" \
-DCMAKE_CXX_FLAGS="-march=armv6 -mfpu=vfp -mfloat-abi=hard" 2>&1 | tee cmake-output.txt
make -j4 2>&1 | tee make-output.txt
;;
"armv7l")
export CC="gcc"
export CXX="g++"
cmake .. -L \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTING=OFF \
-DSSE=OFF \
-DSSE2=OFF \
-DSUPERNOVA=OFF\
-DNOVA_SIMD=ON \
-DNATIVE=OFF \
-DSC_QT=OFF \
-DSC_WII=OFF \
-DSC_ED=OFF \
-DSC_IDE=OFF \
-DSC_EL=ON \
-DCMAKE_C_FLAGS="-march=armv7-a -mtune=cortex-a8 -mfloat-abi=hard -mfpu=neon" \
-DCMAKE_CXX_FLAGS="-march=armv7-a -mtune=cortex-a8 -mfloat-abi=hard -mfpu=neon" 2>&1 | tee cmake-output.txt
make -j4 2>&1 | tee build-output.txt
;;
*)
cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release 2>&1 | tee cmake-output.txt
make 2>&1 | tee make-output.txt
;;
esac
}
package() {
cd "$srcdir/$_name/bld"
make DESTDIR="$pkgdir/" install
}
|