diff --git a/srcpkgs/sunxi-mali-devel b/srcpkgs/sunxi-mali-devel new file mode 120000 index 00000000000..89528eb87cf --- /dev/null +++ b/srcpkgs/sunxi-mali-devel @@ -0,0 +1 @@ +sunxi-mali \ No newline at end of file diff --git a/srcpkgs/sunxi-mali/template b/srcpkgs/sunxi-mali/template new file mode 100644 index 00000000000..24eda88c9e6 --- /dev/null +++ b/srcpkgs/sunxi-mali/template @@ -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 " +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" + } +}