2 # Maintainer: Arch Linux Pro Audio <dev@archaudio.org>
3 # Contributor: Jon Austin (IRC: slypheed) <jon.i.austin (gmail)>
4 # Contributor: SpepS <dreamspepser at yahoo dot it>
5 # Contributor: Bernardo 'smoge' Barros <bernardobarros@gmail.com>
10 pkgdesc="A programming language designed and optimized for sound rendering and signal processing"
11 url="http://csound.sourceforge.net/"
12 arch=('i686' 'x86_64')
13 license=('LGPL' 'GPL')
14 depends=('python2' 'fltk' 'portaudio' 'fluidsynth' 'liblo' 'portmidi' 'tk')
15 makedepends=('scons' 'git')
16 provides=('csound5' 'csound')
17 conflicts=('csound' 'csound5' 'csound5-cvs')
18 install=${pkgname}.install
19 optdepends=('qutecsound: qt frontend'
20 'cecilia: tcl/tk frontend'
21 'cecilia4: wxpython frontend')
23 _gitroot="git://csound.git.sourceforge.net/gitroot/csound/csound5"
28 msg "Connecting to GIT server...."
30 if [ -d $_gitname ] ; then
31 cd $_gitname && git pull origin
32 msg "The local files are updated."
34 git clone $_gitroot $_gitname
37 msg "GIT checkout done or server timeout"
38 msg "Starting make..."
40 rm -rf "$srcdir/$_gitname-build"
41 cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
42 cd "$srcdir/$_gitname-build"
44 # Prevent installing unneeded stuff, fix python install path
45 sed -i "s|\(pythonDir.*\)/usr|\1$pkgdir/usr|;483,484d;421,456d" install.py
48 sed "s_\(env python\).*_\12_;s_\(bin/python\).*_\12_" \
49 -i `grep -rlE "(env python|bin/python)" .`
52 #scons customCFLAGS="-O2 -march=native -mtune=native" usePortMIDI=0 usePortAudio=1 custom=custom-linux-mkg.py buildLuaWrapper=1 buildPythonWrapper=1 useJack=1 buildvst4cs=0 buildInterfaces=0 buildCsoundAC= buildJavaWrapper=0 useOSC=1 buildPythonOpcodes=1 buildLoris=0 buildStkOpcodes=0 noFLTKThreads=0 useLrint=0
54 scons custom=custom-linux-mkg.py \
55 customCFLAGS="-O2 -march=native -mtune=native -pipe -fomit-frame-pointe" \
56 useDouble=1 usePortAudio=1 usePortMIDI=1 useALSA=1 useJack=1 useFLTK=1 \
57 useFLTKThreads=1 pythonVersion=2.7 buildCsoundVST=0 buildCsoundAC=0 \
58 buildCsound5GUI=0 buildLoris=0 useOSC=1 bufferoverflowu=0 useUPD=1 \
59 buildPythonOpcodes=1 prefix=/usr instdir=$pkgdir buildRelease=1 \
60 noDebug=1 gcc3opt=0 gcc4opt=native useLrint=0 useGprof=0 Word64=1 \
61 Lib64=0 dynamicCsoundLibrary=1 buildStkOpcodes=1 install=0 \
62 buildPDClass=0 useCoreAudio=0 useAltivec=1 buildDSSI=1 buildUtilities=1 \
63 buildTclcsound=0 buildWinsound=0 buildVirtual=0 buildInterfaces=0 \
64 buildLuaWrapper=0 buildPythonWrapper=1 buildJavaWrapper=0 buildOSXGUI=0 \
65 buildCSEditor=0 withICL=0 withMSVC=0 withSunStudio=0 buildNewParser=1 \
66 NewParserDebug=0 buildvst4cs=0 useGettext=1 buildImageOpcodes=1 \
67 useOpenMP=0 buildOLPC=0 tclversion=8.5 includeMPD=0 includeWii=0 \
68 includeP5Glove=0 buildBeats=0
70 python2 install.py --prefix="$pkgdir/usr"
73 install -d "$pkgdir/usr/share/$pkgname"
74 cp -a examples "$pkgdir/usr/share/$pkgname"