diff options
author | joerg <joerg@pkgsrc.org> | 2007-08-15 15:56:12 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2007-08-15 15:56:12 +0000 |
commit | f587b7170d57466ffa6e02e181b65ca1d1f392cd (patch) | |
tree | 4de3d01f598145421edf45a9a2df44df55f7472e /graphics | |
parent | 4ba5daac339d68495128b68a5af2c372afc94184 (diff) | |
download | pkgsrc-f587b7170d57466ffa6e02e181b65ca1d1f392cd.tar.gz |
Add remaining glue for cross-compilation.
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/MesaLib/Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/graphics/MesaLib/Makefile b/graphics/MesaLib/Makefile index 93815160fdd..2052254baaa 100644 --- a/graphics/MesaLib/Makefile +++ b/graphics/MesaLib/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.54 2007/08/13 11:18:39 seb Exp $ +# $NetBSD: Makefile,v 1.55 2007/08/15 15:56:12 joerg Exp $ PKGNAME= MesaLib-${MESA_VERSION} PKGREVISION= 3 @@ -25,6 +25,15 @@ PTHREAD_STUBLIB= # provided by libc .endif PKGSRC_MAKE_ENV+= PTHREAD_STUBLIB=${PTHREAD_STUBLIB} +.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) +MAKE_ENV+= CROSS_COMPILING=yes +.endif + +post-extract: + ${CP} ${FILESDIR}/gen_matypes.awk ${WRKSRC}/src/mesa/x86 + ${CP} ${FILESDIR}/gen_matypes.sh ${WRKSRC}/src/mesa/x86 + ${CHMOD} a+x ${WRKSRC}/src/mesa/x86/gen_matypes.sh + pre-build: cd ${WRKSRC} && ${RM} -fr src/glu src/glut progs |