updated on Mon Jan 16 12:07:49 UTC 2012
[aur-mirror.git] / csound5 / PKGBUILD
blobb02e326641e5da96c8565004d30b460d5688bbcb
1 pkgname=csound5
2 pkgver=5.12.1
3 pkgrel=1
4 pkgdesc="A programming language designed and optimized for sound rendering and signal processing"
5 url="http://sourceforge.net/project/showfiles.php?group_id=81968"
6 arch=('i686' 'x86_64')
7 license=('LGPL' 'GPL')
8 depends=('python' 'fltk' 'portaudio' 'java-environment')
9 makedepends=('scons' 'swig')
10 provides=('csound5')
11 conflicts=('csound')
12 source=("http://downloads.sourceforge.net/csound/Csound$pkgver.tar.gz")
13 md5sums=('70b0c4a159c4960a09719674657949c9')
14 _gccOptions="-O3 -march=pentium4"
15 # useDouble is a requirement for using with blue via csound api
16 _csOptions="usePortAudio=1 usePortMIDI=0 buildCsound5GUI=1 useOSC=1 buildPythonOpcodes=1 buildInterfaces=1 buildVirtual=1 dynamicCsoundLibrary=1 buildJavaWrapper=1 useDouble=0"
18 build() {
19   cd $srcdir/Csound$pkgver
20   #patch -p1 SConstruct < ../../SConstruct.diff  
21   scons customCFLAGS="$_gccOptions" $_csOptions || return 1
22   #patch -p1 install.py < ../../install.py.diff  
23   ./install.py --prefix=$pkgdir/usr 
24   #--instdir=$pkgdir 
25   #cd $startdir
26   # if useDouble=0 install csound.sh instead of csound64.sh
27   #install -Dm 755 csound64.sh pkg/etc/profile.d/csound.sh