2005-11-08 17:41:30 +01:00
|
|
|
# $NetBSD: Makefile,v 1.41 2005/11/08 16:41:30 tv Exp $
|
2000-10-15 13:41:17 +02:00
|
|
|
|
2004-01-22 13:58:07 +01:00
|
|
|
PKGNAME= MesaLib-${MESA_VERSION}
|
2005-11-08 17:41:30 +01:00
|
|
|
PKGREVISION= 3
|
2004-01-22 13:58:07 +01:00
|
|
|
COMMENT= Graphics library similar to SGI's OpenGL
|
2004-01-05 12:42:20 +01:00
|
|
|
|
2004-10-26 15:55:17 +02:00
|
|
|
.include "../Mesa/Makefile.common"
|
2000-10-15 13:41:17 +02:00
|
|
|
|
2004-01-22 13:58:07 +01:00
|
|
|
INSTLIBS= ${WRKSRC}/src/mesa/libGL.la \
|
|
|
|
${WRKSRC}/src/glw/libGLw.la \
|
|
|
|
${WRKSRC}/src/mesa/libOSMesa.la
|
2000-10-15 13:41:17 +02:00
|
|
|
|
2003-05-21 10:40:06 +02:00
|
|
|
# The sparc asm included with Mesa does not build on sparc64
|
|
|
|
.if ${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "sparc64"
|
|
|
|
CONFIGURE_ARGS+= --disable-sparc
|
|
|
|
.endif
|
|
|
|
|
2004-03-03 01:20:19 +01:00
|
|
|
.if !empty(CC_VERSION:Mgcc-3*)
|
2004-08-28 08:05:31 +02:00
|
|
|
BUILDLINK_TRANSFORM+= rm:-O[23]
|
2004-03-03 01:20:19 +01:00
|
|
|
.endif
|
|
|
|
|
2005-06-17 17:54:06 +02:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
|
|
|
2004-01-20 03:48:33 +01:00
|
|
|
pre-build:
|
2004-01-22 13:58:07 +01:00
|
|
|
cd ${WRKSRC} && ${RM} -fr src/glu src/glut progs
|
2004-01-20 03:48:33 +01:00
|
|
|
|
|
|
|
do-install:
|
2002-08-25 20:38:05 +02:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/include/GL
|
|
|
|
cd ${WRKSRC}/include/GL; for hdr in \
|
2003-03-24 19:03:33 +01:00
|
|
|
gl.h gl_mangle.h glext.h glx.h glxext.h glx_mangle.h \
|
|
|
|
osmesa.h xmesa.h xmesa_x.h xmesa_xf86.h; \
|
2002-08-25 20:38:05 +02:00
|
|
|
do \
|
|
|
|
${INSTALL_DATA} $${hdr} ${PREFIX}/include/GL; \
|
|
|
|
done
|
2000-10-15 13:41:17 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|