You are not logged in.

#1 2004-08-22 00:04:54

Registered: 2003-08-10
Posts: 114 with multi-user support [need help compiling]

I have found a cool patch … -dualhead/ 
put out by Jan Kasprzak based off the information found in , but it doesn't compile for me, spiting out the error that 'EVIOCGRAB' is undefined. EVIOCGRAB it turns out, is #define'd in the kernel sources, and Jan links to his kernel sources in /usr/include with linux pointing to /usr/src/linux02.6.xx/include/linux and asm pointing to /usr/src/linux-2.6.xx/include/asm, i tried linking to this and compiling but it's a no go, if anyone wants to take a crack at it, please do.

here's a pkgbuild:

pkgdesc="A fork of the XFree86 Project with a GPL-compatible license"
depends=('glibc' 'freetype1' 'fontconfig' 'gcc' 'libpng')
conflicts=('ttf-bitstream-vera' 'xfree86')
provides=('x-server' 'xfree86')
source=(${pkgver}/src/X${pkgver}-src{1,2,3,4,5}.tar.gz xdm.pam xorg-x11-6.7.0-dualhead.patch )
md5sums=('22465263bae7a2e9f5ad77e172cf1ab5' '6ef4e8f7647a28f080c10ea1bcf01f79'
         '4c7144786522bbce383b21ace72bf669' '4f2ed6fe4378fe60b58b8b4c8487cab0'
         '87177e6e6ac5b2d7de6a032ee8641ec1' 'dcf6aa4d28f5c52acf2bb57f49f53089'

build() {
  cd $startdir/src
  make FREETYPE_INCL=/usr/include/freetype || return 1
  install -D ttmkfdir $startdir/pkg/usr/X11R6/bin/ttmkfdir

  cd $startdir/src/xc
  patch -p0 < ../xorg-x11-6.7.0-dualhead.patch
  echo $'#define HasZlib YESn' >config/cf/host.def
  echo $'#define HasNCurses YESn' >>config/cf/host.def
  echo $'#define HasFontconfig YESn' >>config/cf/host.def
  echo $'#define HasFreetype2 YESn' >>config/cf/host.def
  echo $'#define HasExpat YESn' >>config/cf/host.def
  make World || return 1
  make DESTDIR=$startdir/pkg install
  make DESTDIR=$startdir/pkg
  (cd $startdir/pkg/usr/include && ln -sf ../X11R6/include/X11 X11)
  (cd $startdir/pkg/usr/include && ln -sf ../X11R6/include/GL GL)

  # get the pkgconfig .pc files in the right place
  mkdir -p $startdir/pkg/usr/lib/pkgconfig
  mv $startdir/pkg/usr/X11R6/lib/pkgconfig/* $startdir/pkg/usr/lib/pkgconfig
  # remove docs
  rm -rf $startdir/pkg/usr/X11R6/lib/X11/doc/html
  # create a
  #cd $startdir/pkg/usr/X11R6/lib
  #ld --whole-archive -share -o libXinerama.a
  #ln -s
  install -D -m644 $startdir/src/xdm.pam $startdir/pkg/etc/pam.d/xdm
  # XKB compatibility for kde/gnome
  cd $startdir/pkg/usr/X11R6/lib/X11/xkb/rules/
  ln -s xorg.xml xfree86.xml
  ln -s xorg.lst xfree86.lst

make sure you clean up the patch with a

sed 's/xorg-x11-6.7.0/xc///g'



Board footer

Powered by FluxBB