aboutsummaryrefslogtreecommitdiffstats
path: root/community/mesa-demos
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-07-14 21:13:14 +0000
committerJakub Jirutka <jakub@jirutka.cz>2017-07-15 00:25:11 +0200
commita52a40744b6c1d63b6675cefe7e3cf26f23f77b0 (patch)
tree0f3692db6263a8140fd45baff4e622ff91fd4b18 /community/mesa-demos
parentf012cebbd9ffb7dbc4e5f2d064e6c43eb3ab486d (diff)
downloadaports-a52a40744b6c1d63b6675cefe7e3cf26f23f77b0.tar.bz2
aports-a52a40744b6c1d63b6675cefe7e3cf26f23f77b0.tar.xz
community/mesa-demos: update project url and modernize APKBUILD
Diffstat (limited to 'community/mesa-demos')
-rw-r--r--community/mesa-demos/APKBUILD34
1 files changed, 11 insertions, 23 deletions
diff --git a/community/mesa-demos/APKBUILD b/community/mesa-demos/APKBUILD
index 76681e9e59..1ce9b61a7a 100644
--- a/community/mesa-demos/APKBUILD
+++ b/community/mesa-demos/APKBUILD
@@ -2,48 +2,36 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mesa-demos
pkgver=8.3.0
-pkgrel=1
+pkgrel=2
pkgdesc="Mesa demos and utils"
-url="http://mesa3d.sourceforge.net"
+url="http://mesa3d.org"
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
- "
+source="ftp://ftp.freedesktop.org/pub/mesa/demos/$pkgver/$pkgname-$pkgver.tar.bz2"
-_builddir="$srcdir/$pkgname-$pkgver"
+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
+ cd "$builddir"
+ default_prepare
autoreconf -vif
}
build() {
- cd "$_builddir"
+ cd "$builddir"
export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
./configure \
--build=$CBUILD \
--host=$CHOST \
- --prefix=/usr \
- || return 1
- make V=1 || return 1
+ --prefix=/usr
+ make V=1
}
package() {
- cd "$_builddir"
- make -j1 DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make -j1 DESTDIR="$pkgdir" install
}
-md5sums="628e75c23c17394f11a316c36f8e4164 mesa-demos-8.3.0.tar.bz2"
-sha256sums="c173154bbd0d5fb53d732471984def42fb1b14ac85fcb834138fb9518b3e0bef mesa-demos-8.3.0.tar.bz2"
sha512sums="9ba96980306953f7b72745063e75809fb8399bbd5fc58fca96290a8b4e61741bb82fb6171311eddf249ea12face83d7c7b087e6dade6833699a8d220fc752e3f mesa-demos-8.3.0.tar.bz2"