| 1 | # Description: X Window System initializer |
| 2 | # URL: http://xorg.freedesktop.org |
| 3 | # Maintainer: Tilman Sauerbeck tilman at crux dot nu |
| 4 | # Arch Maintainer System Team crux-arm at mikeux dot dyndns dot org |
| 5 | # Depends on: xorg-server |
| 6 | |
| 7 | name=xorg-xinit |
| 8 | version=1.2.0 |
| 9 | release=1 |
| 10 | source=(http://xorg.freedesktop.org/releases/individual/app/xinit-$version.tar.bz2) |
| 11 | |
| 12 | build() { |
| 13 | cd xinit-$version |
| 14 | |
| 15 | export DEFAULT_LIBS="-L$CLFS/lib -L$CLFS/usr/lib -L$CLFS/usr/lib/xorg -L$CLFS/usr/lib/xorg/modules" |
| 16 | export DEFAULT_CFLAGS="-I$CLFS/usr/include -I$CLFS/usr/include/X11 -I$CLFS/usr/include/X11/extensions" |
| 17 | export XORG_LIBS="$DEFAULT_LIBS -lXfont -lXrender -lXau -lpixman-1 -lXdmcp -lXv -lcrypt" |
| 18 | export XORG_CFLAGS="$DEFAULT_CFLAGS -I$CLFS/usr/include/xorg -fvisibility=hidden -DRENDER -DRANDR -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I$CLFS/usr/include/freetype2 -I$CLFS/usr/include/pixman-1" |
| 19 | export XINIT_LIBS="$XORG_LIBS" |
| 20 | export XINIT_CFLAGS="$XORG_CFLAGS" |
| 21 | |
| 22 | ./configure --build=$CHOST \ |
| 23 | --host=$CTARGET \ |
| 24 | --prefix=/usr --mandir=/usr/man |
| 25 | |
| 26 | make |
| 27 | make DESTDIR=$PKG install |
| 28 | } |