Add remaining glue for cross-compilation.
This commit is contained in:
parent
4ba5daac33
commit
f587b7170d
1 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue