# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/xorgproto/xorgproto.conf # Copyright (C) 2004 - 2023 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 --- x_dirtree() { # TODO: only if $prefix != usr ln -snrfv $root/usr/X11R7 $root/usr/X11 mkdir -p $root/etc/X11/app-defaults mkdir -p $root/usr/X11/lib/{X11,pkgconfig} # TODO: maybe link to /usr/share/fonts? mkdir -p $root/usr/X11/share/fonts ln -snrfv $root/usr/X11/bin $root/usr/bin/X11 ln -snrfv $root/usr/X11/include/X11 $root/usr/include/X11 ln -snrfv $root/usr/X11/lib $root/usr/lib/X11 ln -snrfv $root/usr/X11/share/fonts $root/usr/X11R7/lib/X11/ ln -snrfv $root/etc/X11/app-defaults $root/usr/X11R7/lib/X11/ if [[ $libdir != *lib ]]; then mkdir -p $root/usr/X11/${libdir##*/}/{X11,pkgconfig} ln -snrfv $root/usr/X11/share/fonts $root/usr/X11/${libdir##*/}/X11/fonts ln -snrfv $root/usr/X11/${libdir##*/} $root/usr/${libdir##*/}/X11 ln -snrfv $root/etc/X11/app-defaults $root/usr/X11/${libdir##*/}/X11/ # CHECK: this compat link seems to be needed, or somebody # finds the file to patch inside the imake template files ln -snrfv $root/usr/X11/${libdir##*/}/X11/config $root/usr/X11/lib/X11/config fi } [ "$prefix" != "usr" ] && hook_add postmake 5 x_dirtree