From f9c5ff16326765c4eb4535e79c6f31101f690fb0 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sat, 9 Apr 2011 08:29:11 -0500 Subject: main/mesa-demos: move from testing --- main/mesa-demos/APKBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 main/mesa-demos/APKBUILD (limited to 'main/mesa-demos/APKBUILD') diff --git a/main/mesa-demos/APKBUILD b/main/mesa-demos/APKBUILD new file mode 100644 index 0000000000..1b371db139 --- /dev/null +++ b/main/mesa-demos/APKBUILD @@ -0,0 +1,42 @@ +# Contributor: Carlo Landmeter +# 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" -- cgit v1.2.3