updated on Fri Jan 20 00:01:56 UTC 2012
[aur-mirror.git] / supercollider-with-extras-git / PKGBUILD
blob9d1e77f3b605dc7bb7f7c786118fe33cfce8a334
1 # Maintainer: Arch Linux Pro Audio <archaudio-devel@archaudio.org>
2 # Contributor: Björn Lindig <bjoern.lindig@googlemail.com>
3 # Contributor: Bernardo Barros <bernardobarros@gmail.com>
5 pkgname=supercollider-with-extras-git
6 pkgver=20110511
7 pkgver_plugins=453
8 pkgrel=1
9 pkgdesc="An environment and programming language for real time audio synthesis and algorithmic composition. Extended package with SC3-Plugins."
10 url="http://supercollider.sourceforge.net/"
11 arch=('i686' 'x86_64')
12 license=('GPL')
13 depends=('jack' 'fftw' 'avahi' 'ruby' 'icu' 'cwiid' 'rsync')
14 makedepends=('git' 'libsndfile>=1.0' 'emacs' 'vim' 'gedit' 'pkgconfig>=0.14.0' 'cmake' 'alsa-lib')
15 optdepends=('emacs' 'vim' 'ruby' 'gedit')
16 conflicts=('supercollider' 'supercute')
17 provides=('supercollider')
19 install=sc3.install
21 # Official git repo:
22 _gitroot="git://supercollider.git.sourceforge.net/gitroot/supercollider/supercollider"
23 _gitname="supercollider"
25 # SC3-plugins:
26 _gitroot2="git://sc3-plugins.git.sourceforge.net/gitroot/sc3-plugins/sc3-plugins"
27 _gitname2="sc3-plugins"
30 build() {
32   export LDFLAGS="${LDFLAGS//-Wl,--as-needed}"
34   cd $srcdir
35   msg "Connecting to GIT server...."
37   if [ -d $_gitname ] ; then
38     (cd $_gitname && git pull origin && git submodule update)
39     msg "The local files are updated."
40   else
41     git clone --recursive $_gitroot
42   fi
44   msg "GIT checkout done or server timeout"
45   msg "Starting make..."
47   cd $_gitname
48   git submodule init && git submodule update
49   cd ..
51   rm -rf $_gitname-build
52   cp -r $_gitname $_gitname-build
53   cd $_gitname-build/
55   # if have a processor which supports it you can also enable SSE42 with -DSSE42=1 
56   cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DNOVA_SIMD=1 -DNATIVE=1 -DSC_WII=1 -DSUPERNOVA=1 -DSC_QT=1
58   make
59   make DESTDIR=$pkgdir/ install
61   rm -rf $srcdir/$_gitname2-build
63   msg "Done building SuperCollider"
64   msg "Starting built of SC3-Plugins"
66   cd $srcdir
67   msg "Connecting to GIT server...."
69   if [ -d $_gitname2 ] ; then
70     (cd $_gitname2 && git pull origin)
71     msg "The local files are updated."
72   else
73     git clone $_gitroot2
74   fi
76   msg "GIT checkout done or server timeout"
77   msg "Starting make..."
79   cp -r $_gitname2 $_gitname2-build
80   cd $_gitname2-build
82   cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DSC_PATH=$srcdir/supercollider-build -DSUPERNOVA=1 #-DAY=1
83   make
84   make DESTDIR=$pkgdir/ install
86   rm -rf $srcdir/$_gitname2-build