2014-01-27 18:22:23 +01:00
|
|
|
# Template file for 'sunxi-mali'
|
|
|
|
pkgname=sunxi-mali
|
|
|
|
version=20140127
|
2014-01-29 15:41:43 +01:00
|
|
|
revision=3
|
2014-01-27 18:22:23 +01:00
|
|
|
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"
|
2014-01-29 13:38:08 +01:00
|
|
|
provides="libump-1.0_1 libEGL-1.0_1 libGLES-1.0_1"
|
2014-01-29 15:41:43 +01:00
|
|
|
replaces="libump>=0 libump-git>=0 libEGL>=0 libGLES>=0"
|
2014-01-27 18:22:23 +01:00
|
|
|
|
|
|
|
do_build() {
|
2014-01-29 15:41:43 +01:00
|
|
|
VERSION=r3p0 ABI=armhf EGL_TYPE=x11 make config
|
2014-01-27 18:22:23 +01:00
|
|
|
make ${makejobs}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
vmkdir usr/lib
|
|
|
|
make DESTDIR=${DESTDIR} install
|
|
|
|
}
|
|
|
|
|
|
|
|
sunxi-mali-devel_package() {
|
|
|
|
short_desc+=" - development files"
|
|
|
|
depends="libXfixes-devel libdri2-devel-git libdrm-devel ${sourcepkg}>=${version}_${revision}"
|
2014-01-29 13:38:08 +01:00
|
|
|
provides="libump-devel-1.0_1"
|
2014-01-29 15:41:43 +01:00
|
|
|
replaces="libump-devel>=0 libump-devel-git>=0"
|
2014-01-27 18:22:23 +01:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/libEGL*.so"
|
|
|
|
vmove "usr/lib/libGLES*.so"
|
|
|
|
}
|
|
|
|
}
|