diff options
author | jlam <jlam> | 2002-06-26 05:36:29 +0000 |
---|---|---|
committer | jlam <jlam> | 2002-06-26 05:36:29 +0000 |
commit | 32ae630cae685929807eb707c8cbd89f3a0bb79d (patch) | |
tree | 79b93bc8f2de5388f1c466f21d1c66abe4e5f5af /graphics/MesaLib | |
parent | 4d6a4b50bdff1f0859f0beac124cc38c1248178b (diff) | |
download | pkgsrc-32ae630cae685929807eb707c8cbd89f3a0bb79d.tar.gz |
Give the parts of Mesa their own buildlink.mk files and have Mesa's
buildlink.mk simply include the others. This allows distributing the
various tests for whether that part of Mesa is in the base X11R6 into the
relevant buildlink.mk file.
Diffstat (limited to 'graphics/MesaLib')
-rw-r--r-- | graphics/MesaLib/buildlink.mk | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/graphics/MesaLib/buildlink.mk b/graphics/MesaLib/buildlink.mk new file mode 100644 index 00000000000..f7902acbcb9 --- /dev/null +++ b/graphics/MesaLib/buildlink.mk @@ -0,0 +1,49 @@ +# $NetBSD: buildlink.mk,v 1.1 2002/06/26 05:36:30 jlam Exp $ + +.if !defined(MESALIB_BUILDLINK_MK) +MESALIB_BUILDLINK_MK= # defined + +.include "../../mk/bsd.buildlink.mk" + +BUILDLINK_DEPENDS.MesaLib?= MesaLib>=3.4.2 + +# Check if we got Mesa distributed with XFree86 4.x or if we need to +# depend on the Mesa package. +# +_REQUIRE_BUILTIN_MESALIB?= NO +.if exists(${X11BASE}/include/GL/glx.h) +_IS_BUILTIN_MESALIB!= ${EGREP} -c BuildGLXLibrary ${X11BASE}/lib/X11/config/X11.tmpl || ${TRUE} +.else +_IS_BUILTIN_MESALIB= 0 +.endif +.if (${_IS_BUILTIN_MESALIB} == "0") && (${_REQUIRE_BUILTIN_MESALIB} == "NO") +_NEED_MESALIB= YES +.else +_NEED_MESALIB= NO +.endif + +.if ${_NEED_MESALIB} == "YES" +DEPENDS+= ${BUILDLINK_DEPENDS.MesaLib}:../../graphics/MesaLib +EVAL_PREFIX+= BUILDLINK_PREFIX.MesaLib=MesaLib +BUILDLINK_PREFIX.MesaLib_DEFAULT= ${X11PREFIX} +.else +BUILDLINK_PREFIX.MesaLib= ${X11BASE} +.endif + +BUILDLINK_FILES.MesaLib+= include/GL/GL*.h +BUILDLINK_FILES.MesaLib+= include/GL/gl.h +BUILDLINK_FILES.MesaLib+= include/GL/glext.h +BUILDLINK_FILES.MesaLib+= include/GL/gl_mangle.h +BUILDLINK_FILES.MesaLib+= include/GL/glx*.h +BUILDLINK_FILES.MesaLib+= include/GL/osmesa.h +BUILDLINK_FILES.MesaLib+= include/GL/xmesa.h +BUILDLINK_FILES.MesaLib+= include/GL/xmesa_x.h +BUILDLINK_FILES.MesaLib+= include/GL/xmesa_xf86.h +BUILDLINK_FILES.MesaLib+= lib/libGL.* + +BUILDLINK_TARGETS+= MesaLib-buildlink + +pre-configure: MesaLib-buildlink +MesaLib-buildlink: _BUILDLINK_USE + +.endif # MESALIB_BUILDLINK_MK |