summaryrefslogtreecommitdiff
path: root/graphics/MesaLib/patches/patch-cb
blob: 11ec516a9709da8eb94b7ebb69cb7cd051c37f30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$NetBSD: patch-cb,v 1.2 2008/04/24 07:40:24 bjs Exp $

--- src/mesa/x86-64/Makefile.orig	2007-06-21 18:10:54.000000000 -0400
+++ src/mesa/x86-64/Makefile
@@ -23,7 +23,14 @@ clean:
 
 
 # need some special rules here, unfortunately
+ifdef CROSS_COMPILING
 matypes.h: ../main/mtypes.h ../tnl/t_context.h ../x86/gen_matypes
-	../x86/gen_matypes | grep -v '#include "assyntax.h' > matypes.h
+	CFLAGS="${INCLUDE_DIRS} ${CFLAGS}" $(LIBTOOL) --mode=execute \
+	../x86/gen_matypes.sh | grep -v '#include "assyntax.h"' > matypes.h
+else
+matypes.h: ../main/mtypes.h ../tnl/t_context.h ../x86/gen_matypes
+	$(LIBTOOL) --mode=execute ../x86/gen_matypes | \
+	grep -v '#include "assyntax.h"' > matypes.h
+endif
 
 xform4.o: matypes.h