1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
4 # T2 SDE: package/*/xorg-server/xorg-server.conf
5 # Copyright (C) 2004 - 2021 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; version 2 of the License. A copy of the
12 # GNU General Public License can be found in the file COPYING.
13 # --- T2-COPYRIGHT-NOTE-END ---
18 ln -sfv Xorg $root$bindir/X
20 rm -fv $root/etc/fonts/*.bak
22 echo "Copying default example configs ..."
23 cp -fv $confdir/xorg.conf.{example,template} \
25 if [ -f $root/etc/X11/xorg.conf ]; then
26 touch $root/etc/X11/xorg.conf
28 cp -v $root/etc/X11/xorg.conf{.example,}
31 install -m 755 $confdir/startxdm.sh $root$bindir/startxdm
32 install -m 755 $confdir/xcfgt2.sh $root$bindir/xcfgt2
33 install -m 755 $confdir/xvfb-run.sh $root$bindir/xvfb-run
35 hook_add postmake 5 'x_postmake'
37 pkginstalled libdrm ||
38 var_append confopt ' ' '--disable-libdrm --disable-config-udev-kms'
40 var_append confopt ' ' '--disable-dri --disable-dri2 --disable-dri3 --disable-glx --disable-glamor'
41 pkginstalled libatomic_ops ||
42 var_append confopt ' ' '--disable-xshmfence'
44 [ $arch = sparc ] && var_append GCC_WRAPPER_INSERT ' ' '-c?:-latomic -Wl,--as-needed'
46 if atstage cross; then
47 hook_add preconf 5 "echo 'ac_cv_FILE=no' >> config.cache"
48 # In file included from sdksyms.c, ...
49 var_append CPP_WRAPPER_INSERT ' ' "-I$root`pkgprefix includedir libpciaccess`"
50 var_append CPP_WRAPPER_INSERT ' ' "-I$root`pkgprefix includedir xorgproto`/X11/dri"
51 var_append CPP_WRAPPER_INSERT ' ' "-I$root`pkgprefix includedir libdrm`/libdrm"
52 var_append CPP_WRAPPER_INSERT ' ' "-I$root`pkgprefix includedir pixman`/pixman-1"