aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libprojectm/APKBUILD
blob: f7c476ff6d8b3938e51b994f828655e34e3b7d37 (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
33
34
35
36
37
38
39
40
41
42
43
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=libprojectm
pkgver=2.0.1
pkgrel=3
pkgdesc="milkdrop-like music visualizer using opengl"
url="http://projectm.sourceforge.net/"
arch="all"
license="LGPL"
depends=
depends_dev="mesa-dev ftgl-dev glew-dev"
makedepends="cmake $depends_dev"
install=""
subpackages="$pkgname-dev"
source="http://downloads.sourceforge.net/projectm/projectM-${pkgver}-Source.tar.gz
	projectm-isnan.patch"

_srcdir="$srcdir/projectM-${pkgver}-Source"
_builddir="$srcdir/build"
prepare() {
	local i
	mkdir -p "$_builddir"
	cd "$_srcdir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	cmake -DCMAKE_INSTALL_PREFIX=/usr "$_srcdir"
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="f8bf795878cdbbef54784cf2390b4c89  projectM-2.0.1-Source.tar.gz
0090aaeb6f4df4600ffadfc7b7c0e732  projectm-isnan.patch"