sunxi-mali: unbreak and use libump-git.

This commit is contained in:
Juan RP 2015-04-07 11:36:33 +02:00
parent 2862e279e2
commit 6b153be487

View file

@ -1,29 +1,30 @@
# Template file for 'sunxi-mali'
pkgname=sunxi-mali
version=20140127
revision=3
version=20150407
revision=1
build_style=gnu-makefile
short_desc="Linux sunxi MALI userpace propietary libraries"
maintainer="Juan RP <xtraeme@gmail.com>"
license="MIT"
homepage="https://github.com/linux-sunxi/sunxi-mali"
# Use our own tarball because chroot-git does not have support for https.
wrksrc="${pkgname}"
distfiles="http://xbps.nopcode.org/distfiles/${pkgname}-${version}.tar.xz"
checksum=9ec11a65f61980f542f7b079bb9975bba6939efca0647cc0f73a64df55e5a8a4
nostrip=yes
only_for_archs="armv7l"
hostmakedepends="pkg-config perl"
makedepends="libXfixes-devel libdri2-devel-git libdrm-devel"
provides="libump-1.0_1 libEGL-1.0_1 libGLES-1.0_1"
replaces="libump>=0 libump-git>=0 libEGL>=0 libGLES>=0"
hostmakedepends="git pkg-config perl"
makedepends="libXfixes-devel libump-devel-git libdri2-devel-git libdrm-devel"
provides="libEGL-1.0_1 libGLES-1.0_1"
replaces="libEGL>=0 libGLES>=0"
do_fetch() {
git clone https://github.com/linux-sunxi/sunxi-mali.git ${wrksrc}
cd ${wrksrc}
git submodule init
git submodule update
}
do_build() {
VERSION=r3p0 ABI=armhf EGL_TYPE=x11 make config
make ${makejobs}
}
do_install() {
vmkdir usr/lib
make DESTDIR=${DESTDIR} install
@ -31,9 +32,7 @@ do_install() {
sunxi-mali-devel_package() {
short_desc+=" - development files"
depends="libXfixes-devel libdri2-devel-git libdrm-devel ${sourcepkg}>=${version}_${revision}"
provides="libump-devel-1.0_1"
replaces="libump-devel>=0 libump-devel-git>=0"
depends="${sourcepkg}-${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/libEGL*.so"