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