Merge from vendor branch TNF:
[pkgsrcv2.git] / doc / HOWTO-crosscompile-xorg
1 $NetBSD: HOWTO-crosscompile-xorg,v 1.4 2008/04/25 11:46:07 ghen Exp $
2
3 How to cross-compile modular Xorg on NetBSD
4 -------------------------------------------
5
6 (a) You have to have modular Xorg and the build tools used by it
7 installed in /usr/pkg (or whatever prefix you want to use for the
8 cross-compiled packages).
9
10 (b) You have run build.sh release for the desired platform. Remember
11 where you wrote the tools to and where the destdir is.
12
13 (c) You have to add the following options to your mk.conf:
14 USE_DESTDIR=            yes
15 DEPENDS_TARGET=         package-install
16
17 X11_TYPE =              modular 
18
19 MACHINE_ARCH=           what-to-compile-for
20 CROSS_DESTDIR=          /where/ever/above/destdir/is
21 TOOLDIR=                /where/ever/above/tools/are 
22 USE_CROSS_COMPILE=      yes
23
24 The first two activate DESTDIR support, which is required for the
25 cross-compile infrastructure. The third option tells it to use modular
26 Xorg. The other four options specify the target platform and the correct
27 path names and activate cross compiling.
28
29 (d) Just run make package e.g. in meta-pkgs/modular-xorg-apps now.