summaryrefslogtreecommitdiffstats
path: root/abs/core/projectm/PKGBUILD
blob: 74bbe887690d896d4ae9a1e9f72a2037696867cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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
}