From: Victor Martinez Date: Tue, 16 Feb 2016 18:32:56 +0000 (+0100) Subject: sunxi-mali: Initial commit X-Git-Url: http://gitweb/?a=commitdiff_plain;h=0eef76eaa5a734199822c9f6db69d48d8c4c20a7;p=ports%2Forangepipc-arm.git sunxi-mali: Initial commit --- diff --git a/sunxi-mali/.footprint b/sunxi-mali/.footprint new file mode 100644 index 0000000..3eeaff2 --- /dev/null +++ b/sunxi-mali/.footprint @@ -0,0 +1,27 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/include/ +drwxr-xr-x root/root usr/include/EGL/ +-rw-r--r-- root/root usr/include/EGL/egl.h +-rw-r--r-- root/root usr/include/EGL/eglext.h +-rw-r--r-- root/root usr/include/EGL/eglplatform.h +drwxr-xr-x root/root usr/include/GLES/ +-rw-r--r-- root/root usr/include/GLES/gl.h +-rw-r--r-- root/root usr/include/GLES/glext.h +-rw-r--r-- root/root usr/include/GLES/glplatform.h +drwxr-xr-x root/root usr/include/GLES2/ +-rw-r--r-- root/root usr/include/GLES2/gl2.h +-rw-r--r-- root/root usr/include/GLES2/gl2ext.h +-rw-r--r-- root/root usr/include/GLES2/gl2platform.h +drwxr-xr-x root/root usr/include/KHR/ +-rw-r--r-- root/root usr/include/KHR/khrplatform.h +drwxr-xr-x root/root usr/lib/ +lrwxrwxrwx root/root usr/lib/libEGL.so -> libEGL.so.1 +lrwxrwxrwx root/root usr/lib/libEGL.so.1 -> libEGL.so.1.4 +lrwxrwxrwx root/root usr/lib/libEGL.so.1.4 -> libMali.so +lrwxrwxrwx root/root usr/lib/libGLESv1_CM.so -> libGLESv1_CM.so.1 +lrwxrwxrwx root/root usr/lib/libGLESv1_CM.so.1 -> libGLESv1_CM.so.1.1 +lrwxrwxrwx root/root usr/lib/libGLESv1_CM.so.1.1 -> libMali.so +lrwxrwxrwx root/root usr/lib/libGLESv2.so -> libGLESv2.so.2 +lrwxrwxrwx root/root usr/lib/libGLESv2.so.2 -> libGLESv2.so.2.0 +lrwxrwxrwx root/root usr/lib/libGLESv2.so.2.0 -> libMali.so +-rw-r--r-- root/root usr/lib/libMali.so diff --git a/sunxi-mali/.md5sum b/sunxi-mali/.md5sum new file mode 100644 index 0000000..e69de29 diff --git a/sunxi-mali/Pkgfile b/sunxi-mali/Pkgfile new file mode 100644 index 0000000..31b8b63 --- /dev/null +++ b/sunxi-mali/Pkgfile @@ -0,0 +1,27 @@ +# Description: Sunxi Mali-400 support libraries. +# URL: https://github.com/linux-sunxi/sunxi-mali +# Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu +# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu +# Depends on: libdri2 libump mesa3d + +name=sunxi-mali +version=git +release=1 +source=() + +build() { + if [ ! -d $PKGMK_SOURCE_DIR/$name ]; then + git clone https://github.com/linux-sunxi/sunxi-mali.git $PKGMK_SOURCE_DIR/$name + else + cd $PKGMK_SOURCE_DIR/$name && git fetch + fi + cp -r $PKGMK_SOURCE_DIR/$name $SRC + + mkdir -p $PKG/usr/lib + + cd $SRC/$name + git submodule init + git submodule update + make -j1 config ABI=armhf VERSION=r3p0 + make DESTDIR=$PKG install +} diff --git a/sunxi-mali/README b/sunxi-mali/README new file mode 100644 index 0000000..55f3cc5 --- /dev/null +++ b/sunxi-mali/README @@ -0,0 +1,22 @@ + +README for sunxi-mali + +# Mesa3d overwritten files by sunxi-mali +# ls -la /usr/lib/libEGL.so* + +# Mesa3d files +# lrwxrwxrwx 1 root root 11 Oct 4 2013 /usr/lib/libEGL.so -> libEGL.so.1 +# lrwxrwxrwx 1 root root 15 Mar 13 12:39 /usr/lib/libEGL.so.1 -> libEGL.so.1.0.0 +# -rwxr-xr-x 1 root root 88K Mar 10 12:23 /usr/lib/libEGL.so.1.0.0 + +# sunxi-mali files +# lrwxrwxrwx 1 root root 10 Oct 4 2013 /usr/lib/libEGL.so.1.4 -> libMali.so + +# Make a backup to restore mesa3d +# mv /usr/lib/libEGL.so.1 /usr/lib/libEGL_so_1 + +# Link to the new file provided by sunxi-mali +# ln -s libEGL.so.1.4 /usr/lib/libEGL.so.1 + +# To restore the backup, rename the file again to restore the old link: +# mv /usr/lib/libEGL_so_1 /usr/lib/libEGL.so.1 diff --git a/sunxi-mali/post-install b/sunxi-mali/post-install new file mode 100755 index 0000000..93ff3c0 --- /dev/null +++ b/sunxi-mali/post-install @@ -0,0 +1,18 @@ +#!/bin/sh + +# Mesa3d overwritten files by sunxi-mali +#$ ls -la /usr/lib/libEGL.so* + +# Mesa3d files +#lrwxrwxrwx 1 root root 11 Oct 4 2013 /usr/lib/libEGL.so -> libEGL.so.1 +#lrwxrwxrwx 1 root root 15 Mar 13 12:39 /usr/lib/libEGL.so.1 -> libEGL.so.1.0.0 +#-rwxr-xr-x 1 root root 88K Mar 10 12:23 /usr/lib/libEGL.so.1.0.0 + +# sunxi-mali files +#lrwxrwxrwx 1 root root 10 Oct 4 2013 /usr/lib/libEGL.so.1.4 -> libMali.so + +# Make a backup to restore mesa3d +mv /usr/lib/libEGL.so.1 /usr/lib/libEGL_so_1 + +# Link to the new file provided by sunxi-mali +ln -s libEGL.so.1.4 /usr/lib/libEGL.so.1