PKGBUILDs/extra/projectm/PKGBUILD
2009-10-09 21:23:22 -05:00

25 lines
903 B
Bash

# $Id: PKGBUILD 41920 2009-06-08 06:26:12Z eric $
# Maintainer: Alexander Baldeck <alexander@archlinux.org>
pkgname=projectm
pkgver=1.2.0
pkgrel=1
pkgdesc="A music visualizer which uses 3D accelerated iterative image based rendering"
arch=('i686' 'x86_64')
url="http://projectm.sourceforge.net/"
license=('LGPL')
depends=('ftgl' 'glut' 'glew')
makedepends=('pkgconfig' 'xproto' 'cmake')
source=(http://downloads.sourceforge.net/sourceforge/projectm/libprojectM-$pkgver.tar.bz2)
md5sums=('3bb7abb0f2d929780851bad1ca4fd045')
build() {
cd $srcdir/libprojectM-$pkgver
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 -D CMAKE_INSTALL_PREFIX=/usr -D CMAKE_BUILD_TYPE=Release .. || return 1
make || return 1
make DESTDIR=$pkgdir install || return 1
}