Commit | Line | Data |
---|---|---|
48e8dc6e JB |
1 | # Description: X Window System server |
2 | # URL: http://xorg.freedesktop.org | |
3 | # Maintainer: Tilman Sauerbeck, tilman at crux dot nu | |
4 | # Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dyndns dot org | |
5 | # Depends on: xorg-bdftopcf xorg-xcmiscproto xorg-scrnsaverproto xorg-bigreqsproto xorg-libxtst xorg-libxxf86misc xorg-libxi xorg-libxres xorg-libxrandr xorg-libxft xorg-libxxf86dga xorg-libpixman xorg-libpciaccess | |
6 | ||
7 | name=xorg-server | |
8 | version=1.7.2 | |
9 | release=1 | |
10 | source=(http://xorg.freedesktop.org/releases/individual/xserver/$name-$version.tar.bz2) | |
11 | ||
12 | build() { | |
13 | cd $name-$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 | ||
18 | export XDMCP_LIBS="$DEFAULT_LIBS -lXdmcp" | |
19 | export XDMCP_CFLAGS="$DEFAULT_CFLAGS" | |
20 | export DGA_LIBS="$DEAULT_LIBS" | |
21 | export DGA_CFLAGS="$DEFAULT_CFLAGS" | |
22 | export SHA1_LIBS="$DEFAULT_LIBS" | |
23 | export SHA1_CFLAGS="$DEFAULT_CFLAGS" | |
24 | export XSERVERCFLAGS_LIBS="$DEFAULT_LIBS -lXfont -lXau -lpixman-1 -lXdmcp -lXv" | |
25 | export XSERVERCFLAGS_CFLAGS="$DEFAULT_CFLAGS -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I$CLFS/usr/include/freetype2 -I$CLFS/usr/include/pixman-1" | |
26 | export XSERVERLIBS_LIBS="$DEFAULT_LIBS -lXfont -lXau -lpixman-1 -lXdmcp -lXv -lcrypt -lssl" | |
27 | export XSERVERLIBS_CFLAGS="$DEFAULT_CFLAGS -I$CLFS/usr/include/freetype2 -I$CLFS/usr/include/pixman-1" | |
28 | export PCIACCESS_LIBS="$DEFAULT_LIBS -lpciaccess" | |
29 | export PCIACCESS_CFLAGS="$DEFAULT_CFLAGS" | |
30 | export XF86VIDMODE_LIBS="$DEFAULT_LIBS" | |
31 | export XF86VIDMODE_CFLAGS="$DEFAULT_CFLAGS" | |
32 | export XORG_MODULES_LIBS="$DEFAULT_LIBS" | |
33 | export XORG_MODULES_CFLAGS="$DEFAULT_CFLAGS" | |
34 | ||
35 | ./configure --build=$CHOST \ | |
36 | --host=$CTARGET \ | |
37 | --prefix=/usr \ | |
38 | --localstatedir=/var \ | |
39 | --mandir=/usr/man \ | |
40 | --enable-xdmcp \ | |
41 | --disable-dri \ | |
42 | --disable-dri2 \ | |
43 | --disable-glx \ | |
44 | --disable-xaa \ | |
45 | --disable-vgahw \ | |
46 | --disable-vbe \ | |
47 | --disable-xinerama \ | |
48 | --disable-composite \ | |
49 | --disable-xf86bigfont \ | |
50 | --disable-xvmc \ | |
51 | --disable-shave \ | |
52 | --disable-xace \ | |
53 | --disable-dbe \ | |
54 | --disable-int10-module \ | |
55 | --disable-ipv6 \ | |
56 | --with-xkb-output=/var/lib/xkb | |
57 | ||
58 | make | |
59 | make DESTDIR=$PKG install | |
60 | ||
61 | rmdir $PKG/var/log | |
62 | } |