# $NetBSD: Makefile,v 1.9 2001/05/31 05:54:45 tron Exp $ # .include "../Mesa/Makefile.common" DISTNAME= MesaLib-${MESA_VERSION} WRKSRC= ${WRKDIR}/${DISTNAME:S/Lib//} CATEGORIES= graphics MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mesa3d/} EXTRACT_SUFX= .tar.bz2 MAINTAINER= rh@netbsd.org HOMEPAGE= http://www.mesa3d.org/ COMMENT= Graphics library similar to SGI's OpenGL CHECK_MESA= yes USE_X11BASE= yes USE_LIBTOOL= yes LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig USE_GMAKE= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --enable-static --without-glut .include "../../mk/bsd.prefs.mk" .if ${HAVE_BUILTIN_MESA} != "NO" IGNORE= "MesaLib/GLX has already been installed as part of XFree-4.x" .endif do-build: cd ${WRKSRC}/src && ${SETENV} ${MAKE_ENV} \ ${MAKE_PROGRAM} ${MAKE_FLAGS} -f ${MAKEFILE} ${ALL_TARGET} do-install: cd ${WRKSRC}/src && ${SETENV} ${MAKE_ENV} \ ${MAKE_PROGRAM} ${MAKE_FLAGS} -f ${MAKEFILE} ${INSTALL_TARGET} post-install: ${INSTALL_DATA_DIR} ${X11PREFIX}/include/GL .for hdr in gl.h gl_mangle.h glext.h glx.h glx_mangle.h osmesa.h \ xmesa.h xmesa_x.h xmesa_xf86.h ${INSTALL_DATA} ${WRKSRC}/include/GL/${hdr} ${X11PREFIX}/include/GL .endfor .include "../../mk/bsd.pkg.mk"