From 43face8dfca7225c2418e710922893f6867005b0 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Thu, 23 May 2013 15:16:06 +0200 Subject: [PATCH] new package: add package 'opengl-mali' Signed-off-by: Stephan Raue --- packages/graphics/opengl-mali/build | 33 +++++++++++++++++ packages/graphics/opengl-mali/install | 29 +++++++++++++++ packages/graphics/opengl-mali/meta | 36 +++++++++++++++++++ .../opengl-mali/profile.d/display.conf | 31 ++++++++++++++++ 4 files changed, 129 insertions(+) create mode 100755 packages/graphics/opengl-mali/build create mode 100755 packages/graphics/opengl-mali/install create mode 100644 packages/graphics/opengl-mali/meta create mode 100644 packages/graphics/opengl-mali/profile.d/display.conf diff --git a/packages/graphics/opengl-mali/build b/packages/graphics/opengl-mali/build new file mode 100755 index 0000000000..f133e4a4b4 --- /dev/null +++ b/packages/graphics/opengl-mali/build @@ -0,0 +1,33 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +cd $PKG_BUILD +mkdir -p $SYSROOT_PREFIX/usr/include + cp -PR src/include/* $SYSROOT_PREFIX/usr/include + +mkdir -p $SYSROOT_PREFIX/usr/lib + cp -PR src/lib/*.so* $SYSROOT_PREFIX/usr/lib + ln -sf libEGL.so.1.4 $SYSROOT_PREFIX/usr/lib/libEGL.so + ln -sf libGLESv1_CM.so.1.1 $SYSROOT_PREFIX/usr/lib/libGLESv1_CM.so + ln -sf libGLESv2.so.2.0 $SYSROOT_PREFIX/usr/lib/libGLESv2.so diff --git a/packages/graphics/opengl-mali/install b/packages/graphics/opengl-mali/install new file mode 100755 index 0000000000..6584735ac8 --- /dev/null +++ b/packages/graphics/opengl-mali/install @@ -0,0 +1,29 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options $1 + +mkdir -p $INSTALL/usr/lib + cp -PR $PKG_BUILD/src/lib/*.so* $INSTALL/usr/lib + ln -sf libEGL.so.1.4 $INSTALL/usr/lib/libEGL.so + ln -sf libGLESv1_CM.so.1.1 $INSTALL/usr/lib/libGLESv1_CM.so + ln -sf libGLESv2.so.2.0 $INSTALL/usr/lib/libGLESv2.so diff --git a/packages/graphics/opengl-mali/meta b/packages/graphics/opengl-mali/meta new file mode 100644 index 0000000000..104c17f548 --- /dev/null +++ b/packages/graphics/opengl-mali/meta @@ -0,0 +1,36 @@ +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +PKG_NAME="opengl-mali" +PKG_VERSION="20130520" +PKG_REV="1" +PKG_ARCH="any" +PKG_LICENSE="nonfree" +PKG_SITE="http://www.arm.com/products/multimedia/mali-graphics-hardware/mali-400-mp.php" +PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz" +PKG_DEPENDS="" +PKG_BUILD_DEPENDS="toolchain" +PKG_PRIORITY="optional" +PKG_SECTION="graphics" +PKG_SHORTDESC="opengl-mali: OpenGL-ES and Mali driver for Mali 400 GPUs" +PKG_LONGDESC="opengl-mali: OpenGL-ES and Mali driver for Mali 400 GPUs" +PKG_IS_ADDON="no" + +PKG_AUTORECONF="no" diff --git a/packages/graphics/opengl-mali/profile.d/display.conf b/packages/graphics/opengl-mali/profile.d/display.conf new file mode 100644 index 0000000000..739f47432d --- /dev/null +++ b/packages/graphics/opengl-mali/profile.d/display.conf @@ -0,0 +1,31 @@ +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC.tv; see the file COPYING. If not, write to +# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ +# This file contains non-OpenELEC evironment variables as well as OpenELEC +# evironment variables that are not user defined. +################################################################################ + +################################################################################ +# setup functions +################################################################################ + +# stub function + wait_for_xorg () { + : + }