[BACK]Return to HOWTO-crosscompile-xorg CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / doc

File: [cvs.NetBSD.org] / pkgsrc / doc / Attic / HOWTO-crosscompile-xorg (download)

Revision 1.5, Sat May 9 14:59:09 2009 UTC (4 years, 11 months ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4, pkgsrc-2012Q3-base, pkgsrc-2012Q3, pkgsrc-2012Q2-base, pkgsrc-2012Q2, pkgsrc-2012Q1-base, pkgsrc-2012Q1, pkgsrc-2011Q4-base, pkgsrc-2011Q4, pkgsrc-2011Q3-base, pkgsrc-2011Q3, pkgsrc-2011Q2-base, pkgsrc-2011Q2, pkgsrc-2011Q1-base, pkgsrc-2011Q1, pkgsrc-2010Q4-base, pkgsrc-2010Q4, pkgsrc-2010Q3-base, pkgsrc-2010Q3, pkgsrc-2010Q2-base, pkgsrc-2010Q2, pkgsrc-2010Q1-base, pkgsrc-2010Q1, pkgsrc-2009Q4-base, pkgsrc-2009Q4, pkgsrc-2009Q3-base, pkgsrc-2009Q3, pkgsrc-2009Q2-base, pkgsrc-2009Q2
Changes since 1.4: +2 -2 lines

Make USE_DESTDIR=full the default value and retire the option.

$NetBSD: HOWTO-crosscompile-xorg,v 1.5 2009/05/09 14:59:09 joerg Exp $

How to cross-compile modular Xorg on NetBSD
-------------------------------------------

(a) You have to have modular Xorg and the build tools used by it
installed in /usr/pkg (or whatever prefix you want to use for the
cross-compiled packages).

(b) You have run build.sh release for the desired platform. Remember
where you wrote the tools to and where the destdir is.

(c) You have to add the following options to your mk.conf:
USE_DESTDIR=		yes
DEPENDS_TARGET=		package-install

X11_TYPE =		modular 

MACHINE_ARCH=		what-to-compile-for
CROSS_DESTDIR=		/where/ever/above/destdir/is
TOOLDIR=		/where/ever/above/tools/are 
USE_CROSS_COMPILE=	yes

The first two activate DESTDIR support, which is required for the
cross-compile infrastructure. The third option tells it to use modular
Xorg. The other four options specify the target platform and the correct
path names and activate cross compiling.

(d) Just run make package e.g. in meta-pkgs/modular-xorg-apps now.