From 5700c6abe38ad8bc838fcf036551fb26079ab1ad Mon Sep 17 00:00:00 2001 From: jlam Date: Sun, 9 Sep 2001 03:19:42 +0000 Subject: Create an empty xmesa.h file in ${BUILDLINK_DIR}/include if it doesn't already exist. This file is in Mesa-3.4.2, but not in the Mesa included with XFree86-4.x where the definitions in the file have migrated elsewhere. We create an empty one in this case to prevent compile errors caused by source files including xmesa.h and not finding it. --- graphics/Mesa/buildlink.mk | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/graphics/Mesa/buildlink.mk b/graphics/Mesa/buildlink.mk index 87301b46245..75fb2a57874 100644 --- a/graphics/Mesa/buildlink.mk +++ b/graphics/Mesa/buildlink.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink.mk,v 1.6 2001/07/01 22:59:21 jlam Exp $ +# $NetBSD: buildlink.mk,v 1.7 2001/09/09 03:19:42 jlam Exp $ # # This Makefile fragment is included by packages that use Mesa. # @@ -35,6 +35,7 @@ BUILDLINK_FILES.Mesa-localbase+= lib/libGLU.* BUILDLINK_FILES.Mesa-localbase+= lib/libglut.* BUILDLINK_TARGETS.Mesa+= Mesa-localbase-buildlink +BUILDLINK_TARGETS.Mesa+= Mesa-extra-includes-buildlink BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.Mesa} @@ -42,4 +43,17 @@ pre-configure: ${BUILDLINK_TARGETS.Mesa} Mesa-x11base-buildlink: _BUILDLINK_USE Mesa-localbase-buildlink: _BUILDLINK_USE +Mesa-extra-includes-buildlink: + ${_PKG_SILENT}${_PKG_DEBUG} \ + ${ECHO_MSG} "Touching extra Mesa headers in ${BUILDLINK_DIR}."; \ + extra_includes=" \ + include/GL/xmesa.h \ + "; \ + for file in $${extra_includes}; do \ + header=${BUILDLINK_DIR}/$${file}; \ + if [ ! -e $${header} ]; then \ + ${TOUCH} ${TOUCH_FLAGS} $${header}; \ + fi; \ + done + .endif # MESA_BUILDLINK_MK -- cgit v1.2.3