pkgsrc-wip/gl/Makefile
Pierre Allegraud 2bf9bcd7b1 Import gl-7.7 as wip/gl.
This is the libGL part of Mesa.

MesaLib is a 3-D graphics library with an API which is very similar to
that of OpenGL*.  To the extent that Mesa utilizes the OpenGL command syntax
or state machine, it is being used with authorization from Silicon Graphics,
Inc.  However, the author makes no claim that Mesa is in any way a
compatible replacement for OpenGL or associated with Silicon Graphics, Inc.
2010-01-03 14:32:17 +00:00

54 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.1.1.1 2010/01/03 14:32:17 pallegra Exp $
#
.include "Makefile.common"
PKGNAME= ${COMPONENT}-${MESA_PKGVERSION}
CATEGORIES= graphics
EXTRACT_SUFX= .tar.bz2
COMPONENT= gl
MAINTAINER= pallegra@gmail.com
HOMEPAGE= http://www.mesa3d.org/
COMMENT= Graphics library similar to SGI's OpenGL
LICENSE= mit
CONFLICTS= MesaLib<=7.6
PKGCONFIG_OVERRIDE+= src/mesa/gl.pc.in
PKGCONFIG_OVERRIDE+= src/mesa/osmesa.pc.in
CONFIGURE_ARGS+= --disable-glu
CONFIGURE_ARGS+= --disable-glut
CONFIGURE_ARGS+= --disable-glw
SUBST_CLASSES+= rm_mesa
SUBST_FILES.rm_mesa= configs/current
SUBST_MESSAGE.rm_mesa= Removing libmesa.la
SUBST_SED.rm_mesa= -e 's,SRC_DIRS = glx/x11 mesa glew,SRC_DIRS = glx/x11,'
SUBST_STAGE.rm_mesa= post-configure
# Not working for -dri
#BUILD_DIRS= src/glx/x11
#BUILD_TARGET= default
SUBST_CLASSES+= rm_mesa2
SUBST_FILES.rm_mesa2= src/mesa/Makefile
SUBST_MESSAGE.rm_mesa2= Removing libmesa.la part 2
SUBST_SED.rm_mesa2= -e 's,install-libgl: default,install-libgl:,'
SUBST_STAGE.rm_mesa2= pre-install
pre-install:
${RM} -f ${WRKSRC}/include/GL/glu*.h
#${RM} -f ${WRKSRC}/include/GL/*gl*w*.h
INSTALL_DIRS= src/mesa
INSTALL_TARGET= install-libgl
.include "options.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/xextproto/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"