diff --git a/packages/graphics/marvell-libgfx/build b/packages/graphics/marvell-libgfx/build new file mode 100755 index 0000000000..b725d421f6 --- /dev/null +++ b/packages/graphics/marvell-libgfx/build @@ -0,0 +1,36 @@ +#!/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 + +if [ "$TARGET_FLOAT" = "softfp" -o "$TARGET_FLOAT" = "soft" ]; then + LIBGLES_LIBDIR="soft/lib" +elif [ "$TARGET_FLOAT" = "hard" ]; then + LIBGLES_LIBDIR="hard/lib" +fi + +cd $PKG_BUILD +mkdir -p $SYSROOT_PREFIX/usr/include + cp -PR include/* $SYSROOT_PREFIX/usr/include + +mkdir -p $SYSROOT_PREFIX/usr/lib + cp -PR $LIBGLES_LIBDIR/*.so* $SYSROOT_PREFIX/usr/lib diff --git a/packages/graphics/marvell-libgfx/install b/packages/graphics/marvell-libgfx/install new file mode 100755 index 0000000000..fc9ff36791 --- /dev/null +++ b/packages/graphics/marvell-libgfx/install @@ -0,0 +1,32 @@ +#!/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 + +if [ "$TARGET_FLOAT" = "softfp" -o "$TARGET_FLOAT" = "soft" ]; then + LIBGLES_LIBDIR="soft/lib" +elif [ "$TARGET_FLOAT" = "hard" ]; then + LIBGLES_LIBDIR="hard/lib" +fi + +mkdir -p $INSTALL/usr/lib + cp -PR $PKG_BUILD/$LIBGLES_LIBDIR/*.so* $INSTALL/usr/lib diff --git a/packages/graphics/marvell-libgfx/meta b/packages/graphics/marvell-libgfx/meta new file mode 100644 index 0000000000..0f3214b8b4 --- /dev/null +++ b/packages/graphics/marvell-libgfx/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="marvell-libgfx" +PKG_VERSION="20121001" +PKG_REV="1" +PKG_ARCH="arm" +PKG_LICENSE="nonfree" +PKG_SITE="http://www.marvell.com" +PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz" +PKG_DEPENDS="libXfixes libXdamage" +PKG_BUILD_DEPENDS="toolchain libXfixes libXdamage" +PKG_PRIORITY="optional" +PKG_SECTION="graphics" +PKG_SHORTDESC="marvell-libgfx: OpenGL-ES and OpenMAX driver for Marvell Dove" +PKG_LONGDESC="marvell-libgfx: OpenGL-ES and OpenMAX driver for Marvell Dove" +PKG_IS_ADDON="no" + +PKG_AUTORECONF="no"