summaryrefslogtreecommitdiffstats
path: root/main/mesa-demos/APKBUILD
blob: e3d0463fffd1686ed0ce64fb5c4eb16854e3a89a (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
44
45
46
47
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mesa-demos
pkgver=8.0.1
pkgrel=4
pkgdesc="Mesa demos and utils"
url="http://mesa3d.sourceforge.net"
arch="all"
license="custom"
depends=""
depends_dev=
makedepends="$depends_dev mesa-dev glew-dev automake autoconf libtool"
install=""
subpackages=
source="ftp://ftp.freedesktop.org/pub/mesa/demos/$pkgver/$pkgname-$pkgver.tar.bz2
	sincos.patch
	mesa-demos-gles.patch
	link.patch
	"

_builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1
		esac
	done
}

build() {
        cd "$_builddir"
        export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
        ./configure --prefix=/usr
        make V=1 || return 1
}

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

md5sums="320c2a4b6edc6faba35d9cb1e2a30bf4  mesa-demos-8.0.1.tar.bz2
75be22556a657f0a157028233832d167  sincos.patch
dc89e44fed4a6c9d0ac3d8b88ddead91  mesa-demos-gles.patch
502885b11980be71712f6a33bfd1508d  link.patch"