summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2007-08-15 15:56:12 +0000
committerjoerg <joerg@pkgsrc.org>2007-08-15 15:56:12 +0000
commitf587b7170d57466ffa6e02e181b65ca1d1f392cd (patch)
tree4de3d01f598145421edf45a9a2df44df55f7472e /graphics
parent4ba5daac339d68495128b68a5af2c372afc94184 (diff)
downloadpkgsrc-f587b7170d57466ffa6e02e181b65ca1d1f392cd.tar.gz
Add remaining glue for cross-compilation.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/MesaLib/Makefile11
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