1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
4 # T2 SDE: package/*/xorgproto/xorgproto.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 ---
16 ln -sfnv X11R7 $root/usr/X11
18 mkdir -p $root/etc/X11/app-defaults
19 mkdir -p $root/usr/X11/lib/X11
21 # FIXME maybe link to /usr/share/fonts?
22 mkdir -p $root/usr/X11/share/fonts
24 ln -sfnv ../X11/bin $root/usr/bin/X11
25 ln -sfnv ../X11/include/X11 $root/usr/include/X11
26 ln -sfnv ../X11/lib $root/usr/lib/X11
28 ln -sfnv ../../share/fonts $root/usr/X11/lib/X11/fonts
29 ln -sfv /etc/X11/app-defaults $root/usr/X11/lib/X11/
31 if [[ $libdir != *lib ]]; then
32 mkdir -p $root/usr/X11/${libdir##*/}/X11
34 ln -sfnv ../../share/fonts $root/usr/X11/${libdir##*/}/X11/fonts
35 ln -sfnv ../X11/${libdir##*/} $root/usr/${libdir##*/}/X11
36 ln -sfv /etc/X11/app-defaults $root/usr/X11/${libdir##*/}/X11/
38 # CHECK: this compat link seems to be needed, or somebody
39 # finds the file to patch inside the imake template files
40 ln -sfnv ../../${libdir##*/}/X11/config $root/usr/X11/lib/X11/config
43 [ "$prefix" != "usr" ] && hook_add postmake 5 x_dirtree