Add remaining glue for cross-compilation.

This commit is contained in:
joerg 2007-08-15 15:56:12 +00:00
parent 4ba5daac33
commit f587b7170d

View file

@ -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