1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
7 pkgdesc="A free to use program that lets you create and perform real-time audio visual presets."
9 url="http://$_pkg.com/"
11 depends=('libpulse' 'freetype2' 'libjpeg' 'glfw' 'libpng12' 'glew')
12 makedepends=('git' 'cmake')
15 _gitroot="git://git.vsxu.com/$_pkg"
20 msg "Connecting to GIT server...."
22 if [ -d $_gitname ] ; then
23 cd $_gitname && git pull origin
24 msg "The local files are updated."
26 git clone $_gitroot $_gitname
29 msg "GIT checkout done or server timeout"
30 msg "Starting make..."
32 rm -rf "$srcdir/$_gitname-build"
33 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34 cd "$srcdir/$_gitname-build"
40 # Does not build with -Wl,--as-needed
41 export LDFLAGS="${LDFLAGS//-Wl,--as-needed}"
43 # build against libpng12
44 sed -i "s| png|&12|" {artiste,player}/CMakeLists.txt
45 sed -i "s|<png\.h>|<libpng12/png\.h>|" engine_graphics/src/glpng.cpp
47 ./configure --prefix=/usr
52 cd "$srcdir/$_gitname-build"
53 make DESTDIR="$pkgdir/" install