summaryrefslogtreecommitdiff
path: root/graphics/glu
diff options
context:
space:
mode:
authorjschauma <jschauma>2003-03-24 18:07:07 +0000
committerjschauma <jschauma>2003-03-24 18:07:07 +0000
commitea6193e538382fc3a429158ffc72070ab45bcbaa (patch)
treefb13e3c2a5e0c016f371453040b62d6731febc5a /graphics/glu
parent0c8cceb03ca6ad8f6ab39c197d77b78573556890 (diff)
downloadpkgsrc-ea6193e538382fc3a429158ffc72070ab45bcbaa.tar.gz
Fix PR pkg/20685 by changing the if-statements to allow creation of a fake
package for clean-depends-list purposes. While here, also remove the no longer necessary CFLAGS after previous commit in MesaLib and also add distinfo for MesaLib for non Mesa-5.0.
Diffstat (limited to 'graphics/glu')
-rw-r--r--graphics/glu/buildlink2.mk12
1 files changed, 6 insertions, 6 deletions
diff --git a/graphics/glu/buildlink2.mk b/graphics/glu/buildlink2.mk
index 1d1ae05ef72..1d44ff79c8b 100644
--- a/graphics/glu/buildlink2.mk
+++ b/graphics/glu/buildlink2.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink2.mk,v 1.9 2003/03/13 07:01:03 tron Exp $
+# $NetBSD: buildlink2.mk,v 1.10 2003/03/24 18:07:07 jschauma Exp $
.if !defined(GLU_BUILDLINK2_MK)
GLU_BUILDLINK2_MK= # defined
@@ -9,16 +9,16 @@ MESA_REQD?= 3.4.2
BUILDLINK_DEPENDS.glu?= glu>=${MESA_REQD}
BUILDLINK_PKGSRCDIR.glu?= ../../graphics/glu
+_REQUIRE_BUILTIN_GLU?= NO
+
# XXX should be >= 3.4.2
.if !empty(MESA_REQD:M5.[0-9]*)
-_NEED_GLU= YES
+_IS_BUILTIN_GLU= 0
.else
# Check if we got libGLU distributed with XFree86 4.x or if we need to
# depend on the glu package.
#
-_REQUIRE_BUILTIN_GLU?= NO
-
_GL_GLU_H= ${X11BASE}/include/GL/glu.h
_X11_TMPL= ${X11BASE}/lib/X11/config/X11.tmpl
.if exists(${_GL_GLU_H}) && exists(${_X11_TMPL})
@@ -27,6 +27,8 @@ _IS_BUILTIN_GLU!= ${EGREP} -c BuildGLULibrary ${_X11_TMPL} || ${TRUE}
_IS_BUILTIN_GLU= 0
.endif
+.endif # MESA_REQD
+
.if !empty(_REQUIRE_BUILTIN_GLU:M[yY][eE][sS])
_NEED_GLU= NO
.else
@@ -51,8 +53,6 @@ _NEED_GLU!= \
. endif
.endif
-.endif # MESA_REQD
-
.if ${_NEED_GLU} == "YES"
BUILDLINK_PACKAGES+= glu
EVAL_PREFIX+= BUILDLINK_PREFIX.glu=glu