1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/xorg-server/modular-x-conf.in
3 # Copyright (C) 2004 - 2024 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
12 if [ $prefix_auto = 1 ] && ! atstage toolchain; then
13 prefix="${SDECFG_PKG_X11_PREFIX:-usr/X11R7}"
17 if atstage cross; then
19 local sdkdir="`pkg-config --variable=sdkdir xorg-server | sed 's,/,_,g'`"
21 pkginstalled -n libdrm && have_drm=yes || have_drm=no
23 cat >> config.cache <<-EOT
24 ac_cv_file_${sdkdir}_dri_h=$have_drm
25 ac_cv_file_${sdkdir}_sarea_h=$have_drm
26 ac_cv_file_${sdkdir}_dristruct_h=$have_drm
27 ac_cv_file_${sdkdir}_damage_h=$have_drm
30 hook_add preconf 8 'xorg_core_cache'
33 # in the past we suppressed generating those cache files, however then e.g.
34 # the virtual X server needed to build / install some packages does not work
35 flistdel="$flistdel|.*fonts/.*fonts\.(dir|scale|cache.*)|var/cache/fontconfig.*"
37 # needed due to inconsistent app-defaults dir handling
38 for ad in usr/X11/lib/X11/app-defaults usr/X11/lib64/X11/app-defaults \
39 \$prefix/lib/X11/app-defaults \$prefix/lib64/X11/app-defaults \
40 usr/X11/lib/app-defaults usr/X11/lib64/app-defaults; do
41 var_append INSTALL_WRAPPER_FILTER "|" "sed -e 's,$ad,etc/X11/app-defaults,'"
44 var_remove_regex makeopt ' ' 'CC=.*' # maybe do this generically for configure
45 atstage native || var_append extraconfopt ' ' '--disable-malloc0returnsnull'