From 7b637130ae22f00b3bfc7bf8e846a079aa233d15 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Tue, 15 Mar 2011 18:46:49 +0100 Subject: [PATCH] new package: add package 'xf86-video-omapfb' Signed-off-by: Stephan Raue --- config/options | 5 +++ packages/x11/driver/xf86-video-omapfb/build | 41 +++++++++++++++++++ packages/x11/driver/xf86-video-omapfb/install | 26 ++++++++++++ packages/x11/driver/xf86-video-omapfb/meta | 36 ++++++++++++++++ 4 files changed, 108 insertions(+) create mode 100755 packages/x11/driver/xf86-video-omapfb/build create mode 100755 packages/x11/driver/xf86-video-omapfb/install create mode 100644 packages/x11/driver/xf86-video-omapfb/meta diff --git a/config/options b/config/options index 9797a93a60..622fcb65c2 100644 --- a/config/options +++ b/config/options @@ -88,6 +88,7 @@ get_graphicdrivers() { [ "$drv" = "r600" ] && MESA_DRIVERS="$MESA_DRIVERS,r600" [ "$drv" = "radeon" ] && MESA_DRIVERS="$MESA_DRIVERS,radeon" [ "$drv" = "nouveau" ] && MESA_DRIVERS="$MESA_DRIVERS,nouveau" + [ "$drv" = "omapfb" ] && MESA_DRIVERS="$MESA_DRIVERS,swrast" if [ "$drv" = "i915" -o "$drv" = "i965" ]; then XORG_DRIVERS="$XORG_DRIVERS intel" @@ -106,6 +107,10 @@ get_graphicdrivers() { XINERAMA_SUPPORT="yes" fi + if [ "$drv" = "omapfb" ]; then + XORG_DRIVERS="$XORG_DRIVERS ompafb" + fi + if [ "$drv" = "vmware" ]; then XINERAMA_SUPPORT="yes" fi diff --git a/packages/x11/driver/xf86-video-omapfb/build b/packages/x11/driver/xf86-video-omapfb/build new file mode 100755 index 0000000000..4affb49796 --- /dev/null +++ b/packages/x11/driver/xf86-video-omapfb/build @@ -0,0 +1,41 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2011 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, 675 Mass Ave, Cambridge, MA 02139, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options + +if [ "$TARGET_FPU" = neon -o "$TARGET_FPU" = neon-fp16 ]; then + CFG_NEON="--enable-neon" +else + CFG_NEON="--disable-neon" +fi + +cd $PKG_BUILD +./configure --host=$TARGET_NAME \ + --build=$HOST_NAME \ + --prefix=/usr \ + --sysconfdir=/etc \ + --disable-static \ + --enable-shared \ + --with-xorg-module-dir=$XORG_PATH_MODULES \ + $CFG_NEON \ + +make diff --git a/packages/x11/driver/xf86-video-omapfb/install b/packages/x11/driver/xf86-video-omapfb/install new file mode 100755 index 0000000000..ad33d54801 --- /dev/null +++ b/packages/x11/driver/xf86-video-omapfb/install @@ -0,0 +1,26 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2011 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, 675 Mass Ave, Cambridge, MA 02139, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +. config/options + +mkdir -p $INSTALL/$XORG_PATH_MODULES/drivers + cp $PKG_BUILD/src/.libs/*_drv.so $INSTALL/$XORG_PATH_MODULES/drivers diff --git a/packages/x11/driver/xf86-video-omapfb/meta b/packages/x11/driver/xf86-video-omapfb/meta new file mode 100644 index 0000000000..cb7ecdb643 --- /dev/null +++ b/packages/x11/driver/xf86-video-omapfb/meta @@ -0,0 +1,36 @@ +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2011 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, 675 Mass Ave, Cambridge, MA 02139, USA. +# http://www.gnu.org/copyleft/gpl.html +################################################################################ + +PKG_NAME="xf86-video-omapfb" +PKG_VERSION="0446176" +PKG_REV="1" +PKG_ARCH="arm" +PKG_LICENSE="OSS" +PKG_SITE="http://cgit.pingu.fi/xf86-video-omapfb" +PKG_URL="$OPENELEC_SRC/$PKG_NAME-$PKG_VERSION.tar.bz2" +PKG_DEPENDS="libXrender libXext libX11" +PKG_BUILD_DEPENDS="toolchain libXrender libXext xorg-server" +PKG_PRIORITY="optional" +PKG_SECTION="x11/driver" +PKG_SHORTDESC="xf86-video-ompafb: OMAP3/4 framebuffer display driver" +PKG_LONGDESC="This driver for the X.Org X server (see xserver-xorg for a further description) provides support for OMAP3/4 framebuffer devices." +PKG_IS_ADDON="no" + +PKG_AUTORECONF="yes"