summaryrefslogtreecommitdiff
path: root/graphics/glu
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-03-29 05:43:28 +0000
committerjlam <jlam@pkgsrc.org>2004-03-29 05:43:28 +0000
commit6d92080aa240757729992f43156b2924bbda71c4 (patch)
tree2684bb3d4a41538be1b78668954f44c69a49033d /graphics/glu
parent82cd68d38a1d8bd0262376d4a40e4c201e6c55b3 (diff)
downloadpkgsrc-6d92080aa240757729992f43156b2924bbda71c4.tar.gz
Match the template builtin.mk file in bsd.builtin.mk, and make the two
packages that use builtin.mk files (graphics/xpm and pkgtools/x11-links) use the new format correctly.
Diffstat (limited to 'graphics/glu')
-rw-r--r--graphics/glu/builtin.mk18
1 files changed, 11 insertions, 7 deletions
diff --git a/graphics/glu/builtin.mk b/graphics/glu/builtin.mk
index 3121db76098..dd085aaf529 100644
--- a/graphics/glu/builtin.mk
+++ b/graphics/glu/builtin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.2 2004/03/15 17:38:10 jlam Exp $
+# $NetBSD: builtin.mk,v 1.3 2004/03/29 05:43:31 jlam Exp $
_GL_GLU_H= ${X11BASE}/include/GL/glu.h
_X11_TMPL= ${X11BASE}/lib/X11/config/X11.tmpl
@@ -21,15 +21,14 @@ IS_BUILTIN.glu!= \
# Mesa software distributed with the built-in XFree86.
#
BUILTIN_PKG.glu= glu-${_MESA_VERSION}
-MAKEFLAGS+= BUILTIN_PKG.glu=${BUILTIN_PKG.glu}
+BUILDLINK_VARS+= BUILTIN_PKG.glu
. endif
. endif
-MAKEFLAGS+= IS_BUILTIN.glu=${IS_BUILTIN.glu}
-.endif
+BUILDLINK_VARS+= IS_BUILTIN.glu
+.endif # IS_BUILTIN.glu
-CHECK_BUILTIN.glu?= no
-.if !empty(CHECK_BUILTIN.glu:M[yY][eE][sS])
-USE_BUILTIN.glu= yes
+.if defined(USE_BUILTIN.MesaLib) && !empty(USE_BUILTIN.MesaLib:M[nN][oO])
+USE_BUILTIN.glu= no
.endif
.if !defined(USE_BUILTIN.glu)
@@ -50,6 +49,9 @@ USE_BUILTIN.glu!= \
. endif
.endif # USE_BUILTIN.glu
+CHECK_BUILTIN.glu?= no
+.if !empty(CHECK_BUILTIN.glu:M[nN][oO])
+
.if !empty(USE_BUILTIN.glu:M[nN][oO])
BUILDLINK_DEPENDS.glu+= glu>=6.0
.endif
@@ -59,3 +61,5 @@ BUILDLINK_PREFIX.glu= ${X11BASE}
USE_X11= yes
_MESA_REQD= ${_MESA_VERSION}
.endif
+
+.endif # CHECK_BUILTIN.glu