diff options
Diffstat (limited to 'community/mesa-demos/APKBUILD')
-rw-r--r-- | community/mesa-demos/APKBUILD | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/community/mesa-demos/APKBUILD b/community/mesa-demos/APKBUILD new file mode 100644 index 0000000000..f7add3e846 --- /dev/null +++ b/community/mesa-demos/APKBUILD @@ -0,0 +1,53 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=mesa-demos +pkgver=8.2.0 +pkgrel=3 +pkgdesc="Mesa demos and utils" +url="http://mesa3d.sourceforge.net" +arch="all" +license="custom" +depends="" +depends_dev= +makedepends="$depends_dev mesa-dev glew-dev glu-dev freeglut-dev + automake autoconf libtool" +install="" +subpackages= +source="ftp://ftp.freedesktop.org/pub/mesa/demos/$pkgver/$pkgname-$pkgver.tar.bz2 + egl-EGL_MESA_screen_surface.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 + autoreconf -vif +} + +build() { + cd "$_builddir" + export LDFLAGS="$LDFLAGS -Wl,-z,lazy" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 + make V=1 || return 1 +} + +package() { + cd "$_builddir" + make -j1 DESTDIR="$pkgdir" install || return 1 +} + +md5sums="72613a2c8c013716db02e3ff59d29061 mesa-demos-8.2.0.tar.bz2 +f61c4cd817aa046516d0670490439a02 egl-EGL_MESA_screen_surface.patch" +sha256sums="e4bfecb5816ddd4b7b37c1bc876b63f1f7f06fda5879221a9774d0952f90ba92 mesa-demos-8.2.0.tar.bz2 +42310cd105dc3cb9d509d8cb71efce5d91c5f9ad5f99317d3b6b3aa900272d40 egl-EGL_MESA_screen_surface.patch" +sha512sums="590e9fb66e23c0ad526754e9084858eb3e1fa906be55ee6121089325254b970e135e04d53c634cabd13d59c572ea39a4a877bce14b120d73850aafd159a5c8de mesa-demos-8.2.0.tar.bz2 +5a4614d37ce5507048b8a4a670091c3708fb908d78bf1203cb760bc50639930dfe60e980972b2c46d7999c758d9bbd4bcf12f350cde4e008910d7a5d0e6d83b5 egl-EGL_MESA_screen_surface.patch" |