summaryrefslogtreecommitdiff
path: root/graphics/glu/buildlink2.mk
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/glu/buildlink2.mk')
-rw-r--r--graphics/glu/buildlink2.mk65
1 files changed, 3 insertions, 62 deletions
diff --git a/graphics/glu/buildlink2.mk b/graphics/glu/buildlink2.mk
index acf860629be..23eb076c2af 100644
--- a/graphics/glu/buildlink2.mk
+++ b/graphics/glu/buildlink2.mk
@@ -1,74 +1,15 @@
-# $NetBSD: buildlink2.mk,v 1.11 2003/07/15 23:31:22 jschauma Exp $
+# $NetBSD: buildlink2.mk,v 1.12 2003/08/26 01:43:49 jschauma Exp $
.if !defined(GLU_BUILDLINK2_MK)
GLU_BUILDLINK2_MK= # defined
.include "../../mk/bsd.prefs.mk"
-MESA_REQD?= 3.4.2
-BUILDLINK_DEPENDS.glu?= glu>=${MESA_REQD}
-BUILDLINK_PKGSRCDIR.glu?= ../../graphics/glu
-
-_REQUIRE_BUILTIN_GLU?= NO
-
-MAKEFLAGS+= MESA_REQD="${MESA_REQD}"
-
-# XXX should be >= 3.4.2
-.if !empty(MESA_REQD:M5.[0-9]*)
-_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.
-#
-_GL_GLU_H= ${X11BASE}/include/GL/glu.h
-_X11_TMPL= ${X11BASE}/lib/X11/config/X11.tmpl
-.if exists(${_GL_GLU_H}) && exists(${_X11_TMPL})
-_IS_BUILTIN_GLU!= ${EGREP} -c BuildGLULibrary ${_X11_TMPL} || ${TRUE}
-.else
-_IS_BUILTIN_GLU= 0
-.endif
-
-.endif # MESA_REQD
-
-.if !empty(_REQUIRE_BUILTIN_GLU:M[yY][eE][sS])
-_NEED_GLU= NO
-.else
-. if ${_IS_BUILTIN_GLU} == "0"
-_NEED_GLU= YES
-. else
-#
-# Create an appropriate package name for the built-in Mesa/GLU distributed
-# with XFree86 4.x. This package name can be used to check against
-# BUILDLINK_DEPENDS.glu to see if we need to install the pkgsrc Mesa/GLU
-# or if the built-in one is sufficient.
-#
-. include "../../graphics/Mesa/version.mk"
-_GLU_PKG= glu-${_MESA_VERSION}
-_GLU_DEPENDS= ${BUILDLINK_DEPENDS.glu}
-_NEED_GLU!= \
- if ${PKG_ADMIN} pmatch '${_GLU_DEPENDS}' ${_GLU_PKG}; then \
- ${ECHO} "NO"; \
- else \
- ${ECHO} "YES"; \
- fi
-. endif
-.endif
-
-.if ${_NEED_GLU} == "YES"
BUILDLINK_PACKAGES+= glu
+BUILDLINK_DEPENDS.glu?= glu>=${MESA_VERSION}
+BUILDLINK_PKGSRCDIR.glu?= ../../graphics/glu
EVAL_PREFIX+= BUILDLINK_PREFIX.glu=glu
BUILDLINK_PREFIX.glu_DEFAULT= ${LOCALBASE}
-.else
-BUILDLINK_PREFIX.glu= ${X11BASE}
-.endif
-
-.if ${_NEED_GLU} == "NO"
-_BLNK_GLU_LDFLAGS= -L${BUILDLINK_PREFIX.glu}/lib -lGLU
-LIBTOOL_ARCHIVE_UNTRANSFORM_SED+= \
- -e "s|${BUILDLINK_PREFIX.glu}/lib/libGLU.la|${_BLNK_GLU_LDFLAGS}|g" \
- -e "s|${LOCALBASE}/lib/libGLU.la|${_BLNK_GLU_LDFLAGS}|g"
-.endif
BUILDLINK_FILES.glu= include/GL/glu.h
BUILDLINK_FILES.glu+= include/GL/glu_mangle.h