PageRenderTime 19ms CodeModel.GetById 2ms app.highlight 12ms RepoModel.GetById 2ms app.codeStats 0ms

/packages/x11/xserver/xorg-server/install

http://github.com/OpenELEC/OpenELEC.tv
Shell | 78 lines | 44 code | 14 blank | 20 comment | 2 complexity | 4d4296a27873f5ee3e741b9280985d4c MD5 | raw file
 1#!/bin/sh
 2
 3################################################################################
 4#      This file is part of OpenELEC - http://www.openelec.tv
 5#      Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv)
 6#
 7#  This Program is free software; you can redistribute it and/or modify
 8#  it under the terms of the GNU General Public License as published by
 9#  the Free Software Foundation; either version 2, or (at your option)
10#  any later version.
11#
12#  This Program is distributed in the hope that it will be useful,
13#  but WITHOUT ANY WARRANTY; without even the implied warranty of
14#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15#  GNU General Public License for more details.
16#
17#  You should have received a copy of the GNU General Public License
18#  along with OpenELEC.tv; see the file COPYING.  If not, write to
19#  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
20#  http://www.gnu.org/copyleft/gpl.html
21################################################################################
22
23. config/options $1
24
25get_graphicdrivers
26
27XORG_SRC="$PKG_BUILD/hw/xfree86"
28XORG_DST="$INSTALL/$XORG_PATH_MODULES"
29
30mkdir -p $INSTALL/usr/bin
31  cp $XORG_SRC/Xorg $INSTALL/usr/bin
32
33mkdir -p $INSTALL/lib/udev
34  cp $PKG_DIR/scripts/xorg_start $INSTALL/lib/udev
35
36mkdir -p $XORG_DST
37  cp -P $XORG_SRC/exa/.libs/libexa.so $XORG_DST
38  cp -P $XORG_SRC/dixmods/.libs/libfb.so $XORG_DST
39  cp -P $XORG_SRC/int10/.libs/libint10.so $XORG_DST
40  cp -P $XORG_SRC/dixmods/.libs/libshadow.so $XORG_DST
41  cp -P $XORG_SRC/shadowfb/.libs/libshadowfb.so $XORG_DST
42  cp -P $XORG_SRC/vbe/.libs/libvbe.so $XORG_DST
43  cp -P $XORG_SRC/vgahw/.libs/libvgahw.so $XORG_DST
44  cp -P $XORG_SRC/dixmods/.libs/libwfb.so $XORG_DST
45  cp -P $XORG_SRC/xaa/.libs/libxaa.so $XORG_DST
46
47mkdir -p $XORG_DST/extensions
48  cp -P $XORG_SRC/dixmods/.libs/libdbe.so $XORG_DST/extensions
49  cp -P $XORG_SRC/dixmods/.libs/librecord.so $XORG_DST/extensions
50  cp -P $XORG_SRC/dri/.libs/libdri.so $XORG_DST/extensions
51  cp -P $XORG_SRC/dri2/.libs/libdri2.so $XORG_DST/extensions
52  cp -P $XORG_SRC/dixmods/extmod/.libs/libextmod.so $XORG_DST/extensions
53  cp -P $XORG_SRC/dixmods/.libs/libglx.so $XORG_DST/extensions/libglx_mesa.so # rename for cooperate with nvidia drivers
54  ln -sf /var/lib/libglx.so $XORG_DST/extensions/libglx.so
55
56mkdir -p $XORG_DST/linux
57  cp -P $XORG_SRC/fbdevhw/.libs/libfbdevhw.so $XORG_DST/linux
58
59mkdir -p $XORG_DST/multimedia
60  cp -P $XORG_SRC/i2c/.libs/*_drv.so $XORG_DST/multimedia
61
62mkdir -p $INSTALL/usr/lib/xorg
63  cp $PKG_BUILD/dix/protocol.txt $INSTALL/usr/lib/xorg
64
65mkdir -p $INSTALL/usr/share/X11/xorg.conf.d
66  cp $PKG_BUILD/config/10-evdev.conf $INSTALL/usr/share/X11/xorg.conf.d
67
68mkdir -p $INSTALL/etc/X11
69  if [ -f $PROJECT_DIR/$PROJECT/xorg/xorg.conf ]; then
70    cp $PROJECT_DIR/$PROJECT/xorg/xorg.conf $INSTALL/etc/X11
71  elif [ -f $PKG_DIR/config/xorg.conf ]; then
72    cp $PKG_DIR/config/xorg.conf $INSTALL/etc/X11
73  fi
74
75if [ "$DEVTOOLS" = yes ]; then
76  cp $XORG_SRC/utils/cvt/cvt $INSTALL/usr/bin
77  cp $XORG_SRC/utils/gtf/gtf $INSTALL/usr/bin
78fi