|
楼主 |
发表于 2007-4-25 21:48:04
|
显示全部楼层
不能删i810
如果要删除的话,那么要多一些编译参数:
./configure --prefix=/usr \
--enable-dri \
而且还要下载一些包,比较麻烦,要么用PKGBUILD来做,下面是:
# $Id: PKGBUILD,v 1.13 2007/02/01 23:25:28 jgc Exp $
#Maintainer: Jan de Groot <jgc@archlinux.org>
pkgname=xf86-video-intel
pkgver=2.0.0
pkgrel=1
pkgdesc="X.org Intel i810/i810-dc100/i810e/i815/i830/i845/i852/i855/i915/i945/i965 video drivers"
arch=(i686 x86_64)
url="http://xorg.freedesktop.org/"
depends=('libdrm>=2.3.0' 'expat>=2.0')
makedepends=('pkgconfig' 'xorg-server>=1.2.0' 'imake' 'xf86driproto'
'libxvmc')
options=('nolibtool')
groups=('xorg-video-drivers')
source=($pkgname-$pkgver.tar.gz
http://heanet.dl.sourceforge.net/mesa3d/MesaLib-6.5.2.tar.bz2)
md5sums=('fe39b9ddbcf5bcfe8d0b7d5fada0bbf1' 'e4d894181f1859651658b3704633e10d')
build() {
cd ${startdir}/src/${pkgname}-${pkgver}
./configure --prefix=/usr \
--enable-dri \
--build=${CHOST} --host=${CHOST}
make || return 1
make DESTDIR=${startdir}/pkg install || return 1
cd ${startdir}/src/Mesa-6.5.2/configs
CONFIG="linux-dri-x86"
[ "$CARCH" = "x86_64" ] && CONFIG="linux-dri-x86-64"
echo "EXTRA_LIB_PATH =" >> ${CONFIG}
echo "OPT_FLAGS = ${CFLAGS} -fno-strict-aliasing" >> ${CONFIG}
echo "SRC_DIRS = glx/x11 mesa" >> ${CONFIG}
echo "USING_EGL = 0" >> ${CONFIG}
echo "ROGRAM_DIRS =" >> ${CONFIG}
echo "MKDEP = makedepend" >> ${CONFIG}
echo "DRI_DIRS = i810 i915 i915tex i965" >> ${CONFIG}
echo "DRI_DRIVER_SEARCH_DIR = /usr/lib/xorg/modules/dri" >> ${CONFIG}
echo "ARCH_FLAGS += -DGLX_USE_TLS" >> ${CONFIG}
echo "X11_INCLUDES = `pkg-config --cflags-only-I x11`" >> ${CONFIG}
ln -s ${CONFIG} current
cd ${startdir}/src/Mesa-6.5.2/src/mesa
make libmesa.a || return 1
cd drivers/dri
mkdir -p ${startdir}/pkg/usr/lib/xorg/modules/dri
make || return 1
install -m 755 */*_dri.so ${startdir}/pkg/usr/lib/xorg/modules/dri/
} |
|