43 lines
993 B
Bash
43 lines
993 B
Bash
# Template file for 'sunxi-mali'
|
|
pkgname=sunxi-mali
|
|
version=20181122
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
hostmakedepends="git pkg-config perl"
|
|
makedepends="libXfixes-devel libump-git-devel libdri2-devel-git libdrm-devel"
|
|
short_desc="Linux sunxi MALI userpace propietary libraries"
|
|
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="https://github.com/linux-sunxi/sunxi-mali"
|
|
nostrip=yes
|
|
archs="armv7l"
|
|
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
|
|
}
|
|
|
|
sunxi-mali-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}-${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/libEGL*.so"
|
|
vmove "usr/lib/libGLES*.so"
|
|
}
|
|
}
|