44 lines
1.2 KiB
Text
44 lines
1.2 KiB
Text
|
# 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"
|
||
|
}
|
||
|
}
|