New package: sunxi-mali (provides libEGL/libGLESv[12] propietary libraries).

This commit is contained in:
Juan RP 2014-01-27 18:22:23 +01:00
parent ff7a63e79c
commit eb26dfe947
2 changed files with 44 additions and 0 deletions

1
srcpkgs/sunxi-mali-devel Symbolic link
View File

@ -0,0 +1 @@
sunxi-mali

View File

@ -0,0 +1,43 @@
# Template file for 'sunxi-mali'
pkgname=sunxi-mali
version=20140127
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
only_for_archs="armv7l"
hostmakedepends="pkg-config perl"
makedepends="libXfixes-devel libdri2-devel-git libdrm-devel"
provides="libEGL-1.0_1 libGLES-1.0_1"
replaces="libEGL>=0 libGLES>=0"
do_build() {
VERSION=r3p1 ABI=armhf EGL_TYPE=x11 make config
make ${makejobs}
}
do_install() {
vmkdir usr/lib
make DESTDIR=${DESTDIR} install
# Remove libUMP, provided by libump.
rm ${DESTDIR}/usr/lib/libUMP*
rm -r ${DESTDIR}/usr/include/ump
}
sunxi-mali-devel_package() {
short_desc+=" - development files"
depends="libXfixes-devel libdri2-devel-git libdrm-devel ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/libEGL*.so"
vmove "usr/lib/libGLES*.so"
}
}