pkgsrc/graphics/glut/builtin.mk
cube cc0527400d Restore the value of BUILTIN_PKG after checking for the rest of Mesa, so
that the logic x11.builtin.mk doesn't set variables for the wrong package.

Noted by Obata-san.
2009-02-01 16:22:54 +00:00

25 lines
606 B
Makefile

# $NetBSD: builtin.mk,v 1.2 2009/02/01 16:22:54 cube Exp $
BUILTIN_PKG:= glut
PKGCONFIG_FILE.glut= ${X11BASE}/lib/pkgconfig/glut.pc
.include "../../mk/buildlink3/pkgconfig-builtin.mk"
.if !empty(USE_BUILTIN.glut:M[Yy][Ee][Ss])
CHECK_BUILTIN.MesaLib:= yes
CHECK_BUILTIN.glu:= yes
. include "../../graphics/MesaLib/builtin.mk"
. include "../../graphics/glu/builtin.mk"
CHECK_BUILTIN.MesaLib:= no
CHECK_BUILTIN.glu:= no
BUILTIN_PKG:= glut
. if !empty(USE_BUILTIN.MesaLib:M[Nn][Oo]) || \
!empty(USE_BUILTIN.glu:M[Nn][Oo])
USE_BUILTIN.glut= no
. endif
.endif
.include "../../mk/x11.builtin.mk"