updated on Sun Jan 22 16:00:49 UTC 2012
[aur-mirror.git] / taopm / PKGBUILD
blobfdff7b3d68685a7884cff03ddf1c2bf6252b5657
1 # Maintainer:  SpepS <dreamspepser at yahoo dot it>
2 # Contributor: Christoph Siegenthaler < csi@gmx.ch >
3 # Contributor: Shinlun Hsieh <yngwiexx@yahoo.com.tw>
5 pkgname=taopm
6 pkgver=1.0_beta_10May2006
7 _pkgver=1.0-beta-10May2006
8 pkgrel=7
9 pkgdesc="A software package for sound synthesis using physical models"
10 arch=('i686' 'x86_64')
11 options=('!libtool')
12 url="http://taopm.sourceforge.net/"
13 license=('GPL')
14 depends=('freeglut' 'audiofile')
15 source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/tao-${_pkgver}.tar.gz)
16 md5sums=('0a84a61c0a20bcdcf73beed72434d07a')
18 build(){
20   cd ${startdir}/src/tao-${_pkgver}
22   # Gcc patches
23   sed '21i #include <cstdio>' -i libtao/Tao.cc || return 1
24   sed '23i #include "string.h"' -i libtao/TaoDevice.cc || return 1
25   sed -e '31i #include "string.h"' \
26       -e '31i #include <cstdio>' -i libtao/TaoGraphicsEngine.cc || return 1
27   sed '26i #include "string.h"' -i libtao/TaoInstrument.cc || return 1
28   sed '27i #include "string.h"' -i libtao/TaoOutput.cc || return 1
29   sed '33i #include "string.h"' -i libtao/TaoPitch.cc || return 1
30   sed -e '24i #include "string.h"' \
31       -e '24i #include <cstdio>' -i taoparse/taoparser.yy || return 1
32   sed -e '28i #include "string.h"' \
33       -e '28i #include <cstdlib>' -i tao2aiff/tao2aiff.cc || return 1
34   sed -e '28i #include "string.h"' \
35       -e '28i #include <cstdlib>' -i tao2wav/tao2wav.cc || return 1
37   sed 's_-shared -nostdlib_-fPIC -shared -nostdlib_g' -i configure || return 1
38   sed 's_-shared -nostdlib_-fPIC -shared -nostdlib_g' -i aclocal.m4 || return 1
39   sed 's_TAODIR=`pwd`_TAODIR="/usr/lib"_g' -i configure || return 1
41   ./configure --prefix=/usr --libdir=/usr/lib --x-libraries=/usr/lib || return 1
43   make || return 1
44   make DESTDIR=${pkgdir} install || return 1
46   # Copying other files
47   mkdir -p ${pkgdir}/usr/share/taopm/examples
48   mkdir -p ${pkgdir}/usr/include
49   cp -a examples/*.tao ${pkgdir}/usr/share/taopm/examples
50   cp -a include/*.h ${pkgdir}/usr/include