diff options
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/Mesa/buildlink.mk | 16 |
1 files changed, 15 insertions, 1 deletions
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 |