|
|
|
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
|
|
|
#
|
|
|
|
# Filename: package/.../xorg-server/modular-x-conf.in
|
|
|
|
# Copyright (C) 2007 - 2008 The OpenSDE Project
|
|
|
|
# Copyright (C) 2004 - 2006 The T2 SDE Project
|
|
|
|
#
|
|
|
|
# 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 as published by
|
|
|
|
# the Free Software Foundation; version 2 of the License. A copy of the
|
|
|
|
# GNU General Public License can be found in the file COPYING.
|
|
|
|
# --- SDE-COPYRIGHT-NOTE-END ---
|
|
|
|
|
|
|
|
if [ $prefix_auto = 1 ] ; then
|
|
|
|
prefix="usr/X11R7"
|
|
|
|
set_confopt
|
|
|
|
fi
|
|
|
|
|
|
|
|
# apply external patches that Are defined in the .desc file
|
|
|
|
var_append patchfiles ' ' "`match_source_file -p patch`"
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
# while cross compiling some Xorg packages need help
|
|
|
|
#
|
|
|
|
if atstage cross; then
|
|
|
|
if pkginstalled -f xproto; then
|
|
|
|
# help them to find xproto files
|
|
|
|
export XPROTO_CFLAGS="-I$root$( pkgprefix includedir xproto )"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# tests that can't be performed while cross compiling
|
|
|
|
# it's better to disable than assuming the wrong (config.cache)
|
|
|
|
var_append extraconfopt ' ' '--disable-malloc0returnsnull'
|
|
|
|
fi
|