summaryrefslogtreecommitdiffstats
path: root/main/mesa-demos/APKBUILD
diff options
context:
space:
mode:
authorFabian Affolter <fabian@bernewireless.net>2011-07-05 19:40:43 +0200
committerFabian Affolter <fabian@bernewireless.net>2011-07-05 19:40:43 +0200
commit7f9851115264bca9bce3926ddb29e533a23929dd (patch)
treeb0426fc489e4dad582f34b25d6f93354a65f5c0f /main/mesa-demos/APKBUILD
parent5dac3f219058736f6e19b7bec2b1cc2b1b300981 (diff)
parent269fc1049583d36e07153215fe535f88947ea98b (diff)
downloadaports-7f9851115264bca9bce3926ddb29e533a23929dd.tar.bz2
aports-7f9851115264bca9bce3926ddb29e533a23929dd.tar.xz
Merge branch 'master' of git://git.alpinelinux.org/aports
Diffstat (limited to 'main/mesa-demos/APKBUILD')
-rw-r--r--main/mesa-demos/APKBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/main/mesa-demos/APKBUILD b/main/mesa-demos/APKBUILD
new file mode 100644
index 000000000..1b371db13
--- /dev/null
+++ b/main/mesa-demos/APKBUILD
@@ -0,0 +1,42 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer: Natanael Copa
+pkgname=mesa-demos
+pkgver=8.0.1
+pkgrel=0
+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"
+
+_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"