summaryrefslogtreecommitdiffstats
path: root/abs
diff options
context:
space:
mode:
Diffstat (limited to 'abs')
-rw-r--r--abs/core/projectm/PKGBUILD41
1 files changed, 26 insertions, 15 deletions
diff --git a/abs/core/projectm/PKGBUILD b/abs/core/projectm/PKGBUILD
index 4baced2..74bbe88 100644
--- a/abs/core/projectm/PKGBUILD
+++ b/abs/core/projectm/PKGBUILD
@@ -1,21 +1,32 @@
-# $Id: PKGBUILD 8766 2008-08-16 05:30:47Z eric $
-# Maintainer: Alexander Baldeck <alexander@archlinux.org>
+# $Id: PKGBUILD 78581 2010-04-26 20:01:05Z andrea $
+# Maintainer:
+# Contributor: Alexander Baldeck <alexander@archlinux.org>
+
pkgname=projectm
-pkgver=0.99
+pkgver=2.0.1
pkgrel=2
pkgdesc="A music visualizer which uses 3D accelerated iterative image based rendering"
-arch=(i686 x86_64)
-url="http://xmms-projectm.sourceforge.net"
-license="GPL"
-depends=('ftgl' 'glut')
-makedepends=('pkgconfig' 'xproto')
-install=projectm.install
-source=(http://downloads.sourceforge.net/sourceforge/projectm/libprojectM-$pkgver.tar.bz2)
-md5sums=('20dc0aa2af96340c3209c9795cc3217d')
+arch=('i686' 'x86_64')
+url="http://projectm.sourceforge.net/"
+license=('LGPL')
+depends=('gcc-libs' 'ftgl' 'glew' 'gtkglext')
+makedepends=('pkgconfig' 'cmake')
+source=(http://downloads.sourceforge.net/${pkgname}/projectM-${pkgver}-Source.tar.gz)
+md5sums=('f8bf795878cdbbef54784cf2390b4c89')
build() {
- cd $startdir/src/libprojectM
- ./configure --prefix=/usr
- make || return
- make DESTDIR=$startdir/pkg install
+ cd ${srcdir}
+# sed -i 's|FTGL/FTGL.h|FTGL/ftgl.h|' Renderer.hpp || return 1
+# sed -i "s|#include <iostream>|#include <cstdio>\n#include <iostream>|" BuiltinParams.cpp || return 1
+ mkdir build
+ cd build
+ cmake ../projectM-${pkgver}-Source \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release || return 1
+ make || return 1
+}
+
+package() {
+ cd ${srcdir}/build
+ make DESTDIR=${pkgdir} install || return 1
}