2009-03-18 13:02:53 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
2011-01-09 18:36:08 +01:00
|
|
|
################################################################################
|
|
|
|
|
# This file is part of OpenELEC - http://www.openelec.tv
|
2012-02-29 13:11:22 +01:00
|
|
|
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
|
2011-01-09 18:36:08 +01:00
|
|
|
#
|
|
|
|
|
# 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
|
2012-02-29 13:11:22 +01:00
|
|
|
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
|
2011-01-09 18:36:08 +01:00
|
|
|
# http://www.gnu.org/copyleft/gpl.html
|
|
|
|
|
################################################################################
|
|
|
|
|
|
2010-07-21 18:54:45 +02:00
|
|
|
. config/options $1
|
2009-03-18 13:02:53 +01:00
|
|
|
|
2009-09-23 05:32:41 +02:00
|
|
|
get_graphicdrivers
|
|
|
|
|
|
2010-11-09 10:13:14 +01:00
|
|
|
DRM_CONFIG="--disable-libkms --disable-intel --disable-radeon"
|
2013-05-01 16:46:42 +02:00
|
|
|
DRM_CONFIG="$DRM_CONFIG --disable-nouveau --disable-vmwgfx"
|
2010-02-18 20:06:07 +01:00
|
|
|
|
2010-11-11 14:52:45 +01:00
|
|
|
for drv in $GRAPHIC_DRIVERS; do
|
2010-12-18 22:31:27 +01:00
|
|
|
[ "$drv" = "i915" -o "$drv" = "i965" ] && \
|
2010-11-09 10:13:14 +01:00
|
|
|
DRM_CONFIG=`echo $DRM_CONFIG | sed -e 's/disable-libkms/enable-libkms/'` && \
|
2010-02-18 20:06:07 +01:00
|
|
|
DRM_CONFIG=`echo $DRM_CONFIG | sed -e 's/disable-intel/enable-intel/'`
|
2010-01-06 01:05:05 +01:00
|
|
|
|
2010-12-18 22:31:27 +01:00
|
|
|
[ "$drv" = "r200" -o "$drv" = "r300" -o "$drv" = "r600" -o "$drv" = "radeon" ] && \
|
2010-11-09 10:13:14 +01:00
|
|
|
DRM_CONFIG=`echo $DRM_CONFIG | sed -e 's/disable-libkms/enable-libkms/'` && \
|
2010-02-18 20:06:07 +01:00
|
|
|
DRM_CONFIG=`echo $DRM_CONFIG | sed -e 's/disable-radeon/enable-radeon/'`
|
2010-10-14 12:14:44 +02:00
|
|
|
|
2010-12-18 22:31:27 +01:00
|
|
|
[ "$drv" = "nouveau" ] && \
|
2010-11-09 10:13:14 +01:00
|
|
|
DRM_CONFIG=`echo $DRM_CONFIG | sed -e 's/disable-libkms/enable-libkms/'` && \
|
2010-10-14 12:14:44 +02:00
|
|
|
DRM_CONFIG=`echo $DRM_CONFIG | sed -e 's/disable-nouveau/enable-nouveau/'`
|
2010-11-09 10:13:14 +01:00
|
|
|
|
2010-12-18 22:31:27 +01:00
|
|
|
[ "$drv" = "vmware" ] && \
|
2010-11-09 10:13:14 +01:00
|
|
|
DRM_CONFIG=`echo $DRM_CONFIG | sed -e 's/disable-libkms/enable-libkms/'` && \
|
2013-05-01 16:46:42 +02:00
|
|
|
DRM_CONFIG=`echo $DRM_CONFIG | sed -e 's/disable-vmwgfx/enable-vmwgfx/'`
|
2009-09-23 05:32:41 +02:00
|
|
|
done
|
|
|
|
|
|
2009-04-10 23:48:50 +02:00
|
|
|
export LIBUDEV_CFLAGS="-I`ls -d $ROOT/$BUILD/udev*`"
|
|
|
|
|
export LIBUDEV_LIBS="-I`ls -d $ROOT/$BUILD/udev*`"
|
2009-03-18 13:02:53 +01:00
|
|
|
|
2009-05-16 23:35:27 +02:00
|
|
|
cd $PKG_BUILD
|
2009-03-18 13:02:53 +01:00
|
|
|
./configure --host=$TARGET_NAME \
|
|
|
|
|
--build=$HOST_NAME \
|
|
|
|
|
--prefix=/usr \
|
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
|
--disable-static \
|
|
|
|
|
--enable-shared \
|
2013-06-02 23:23:57 +02:00
|
|
|
--disable-udev \
|
2009-04-03 23:14:18 +02:00
|
|
|
--enable-largefile \
|
2010-02-18 20:06:07 +01:00
|
|
|
--with-kernel-source=$(kernel_path) \
|
2009-09-23 05:32:41 +02:00
|
|
|
$DRM_CONFIG \
|
2013-05-01 16:46:42 +02:00
|
|
|
--disable-install-test-programs \
|
|
|
|
|
--disable-cairo-tests \
|
|
|
|
|
--disable-manpages
|
2009-03-18 13:02:53 +01:00
|
|
|
|
2009-11-16 04:23:24 +01:00
|
|
|
make
|
2009-03-18 13:02:53 +01:00
|
|
|
|
|
|
|
|
$MAKEINSTALL
|