1 # Contributor: Ray Rashif <schivmeister@gmail.com>
7 pkgdesc="Sound synthesis programming language (OLPC subset)"
9 url="http://csound.sourceforge.net/"
11 depends=('liblo' 'libpng' 'libsndfile' 'libvorbis' 'python')
12 makedepends=('scons' 'swig')
13 conflicts=('csound') # it does NOT provide, since this is an OLPC "spin" of the same code
14 source=(http://downloads.sourceforge.net/csound/$_pkgname$pkgver.tar.gz
15 sugar-csound-64bit.patch
16 sugar-csound-bad-symbols.patch)
19 cd "$srcdir/$_pkgname$pkgver"
22 patch -Np1 -i ../sugar-csound-64bit.patch || return 1
25 patch -Np1 -i ../sugar-csound-bad-symbols.patch || return 1
27 # prepare build environment
28 [ "$CARCH" = "x86_64" ] && x86_64flags="Word64=1 Lib64=1"
30 scons customCCFLAFS="$CFLAGS -D_GNU_SOURC" \
31 customCXXFLAGS="$CFLAGS -D_GNU_SOURCE" \
36 $x86_64flags || return 1
38 python install-olpc.py --prefix=/usr \
41 --instdir="$pkgdir/" \
44 md5sums=('7b2f4b4eb6ccab66e06625cb5377d4f7'
45 '8728d3a33ff2a9164c25db676127d867'
46 'cc28d264e692fe1caa37fab14f467acc')