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 | |
04d0b31b | 5 | # Depends on: xorg-bdftopcf xorg-mkfontdir xorg-mkfontscale xorg-libxkbui xorg-xcmiscproto xorg-scrnsaverproto xorg-bigreqsproto xorg-libxtst xorg-libxxf86misc xorg-libxaw xorg-libxi xorg-libxres xorg-libxrandr xorg-libxft xorg-libxcursor xorg-libxxf86dga xorg-libpixman xorg-libpciaccess |
48e8dc6e JB |
6 | |
7 | name=xorg-server | |
04d0b31b JB |
8 | version=1.7.4 |
9 | release=1 | |
48e8dc6e JB |
10 | source=(http://xorg.freedesktop.org/releases/individual/xserver/$name-$version.tar.bz2) |
11 | ||
12 | build() { | |
13 | cd $name-$version | |
14 | ||
c2055115 | 15 | export DEFAULT_LIBS="-L$CLFS/usr/lib" |
48e8dc6e | 16 | export DEFAULT_CFLAGS="-I$CLFS/usr/include -I$CLFS/usr/include/X11 -I$CLFS/usr/include/X11/extensions" |
48e8dc6e JB |
17 | export XDMCP_LIBS="$DEFAULT_LIBS -lXdmcp" |
18 | export XDMCP_CFLAGS="$DEFAULT_CFLAGS" | |
c2055115 | 19 | export SHA1_LIBS="$DEFAULT_LIBS -lssl -lcrypto -ldl" |
48e8dc6e | 20 | export SHA1_CFLAGS="$DEFAULT_CFLAGS" |
c2055115 | 21 | export XSERVERCFLAGS_LIBS="$DEFAULT_LIBS -lxkbfile -lXfont -lXau -lpixman-1 -lXdmcp -lssl -lcrypto -ldl" |
48e8dc6e | 22 | 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" |
c2055115 | 23 | export XSERVERLIBS_LIBS="$DEFAULT_LIBS -lXfont -lXau -lpixman-1 -lXdmcp -lssl -lcrypto -ldl" |
de1dc8c4 | 24 | export XSERVERLIBS_CFLAGS="$DEFAULT_CFLAGS -I$CLFS/usr/include/freetype2 -I$CLFS/usr/include/pixman-1" |
48e8dc6e JB |
25 | export PCIACCESS_LIBS="$DEFAULT_LIBS -lpciaccess" |
26 | export PCIACCESS_CFLAGS="$DEFAULT_CFLAGS" | |
c2055115 JB |
27 | export DGA_LIBS="$DEFAULT_LIBS" |
28 | export DGA_CFLAGS="$DEFAULT_CFLAGS" | |
48e8dc6e JB |
29 | export XF86VIDMODE_LIBS="$DEFAULT_LIBS" |
30 | export XF86VIDMODE_CFLAGS="$DEFAULT_CFLAGS" | |
c2055115 | 31 | export XORG_MODULES_LIBS="$DEFAULT_LIBS" |
48e8dc6e | 32 | export XORG_MODULES_CFLAGS="$DEFAULT_CFLAGS" |
8ea64c7d JB |
33 | export TSLIB_LIBS="$DEFAULT_LIBS -lts" |
34 | export TSLIB_CFLAGS="$DEFAULT_CFLAGS" | |
c2055115 | 35 | |
48e8dc6e JB |
36 | ./configure --build=$CHOST \ |
37 | --host=$CTARGET \ | |
38 | --prefix=/usr \ | |
39 | --localstatedir=/var \ | |
40 | --mandir=/usr/man \ | |
41 | --enable-xdmcp \ | |
c2055115 JB |
42 | --enable-dga \ |
43 | --enable-xf86vidmode \ | |
c2055115 | 44 | --enable-xf86bigfont \ |
48e8dc6e JB |
45 | --disable-dri \ |
46 | --disable-dri2 \ | |
47 | --disable-glx \ | |
48 | --disable-xaa \ | |
49 | --disable-vgahw \ | |
50 | --disable-vbe \ | |
51 | --disable-xinerama \ | |
52 | --disable-composite \ | |
48e8dc6e JB |
53 | --disable-xvmc \ |
54 | --disable-shave \ | |
48e8dc6e | 55 | --disable-int10-module \ |
48e8dc6e JB |
56 | --with-xkb-output=/var/lib/xkb |
57 | ||
58 | make | |
59 | make DESTDIR=$PKG install | |
60 | ||
61 | rmdir $PKG/var/log | |
62 | } |