summaryrefslogtreecommitdiff
path: root/community/projectm/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/projectm/PKGBUILD')
-rw-r--r--community/projectm/PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/community/projectm/PKGBUILD b/community/projectm/PKGBUILD
new file mode 100644
index 000000000..74bbe8876
--- /dev/null
+++ b/community/projectm/PKGBUILD
@@ -0,0 +1,32 @@
+# $Id: PKGBUILD 78581 2010-04-26 20:01:05Z andrea $
+# Maintainer:
+# Contributor: Alexander Baldeck <alexander@archlinux.org>
+
+pkgname=projectm
+pkgver=2.0.1
+pkgrel=2
+pkgdesc="A music visualizer which uses 3D accelerated iterative image based rendering"
+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 ${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
+}