diff options
author | jlam <jlam@pkgsrc.org> | 2001-09-09 03:19:42 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-09-09 03:19:42 +0000 |
commit | 5700c6abe38ad8bc838fcf036551fb26079ab1ad (patch) | |
tree | a5057fb83e3bf01af79ee8b2c3eb7e0095eb46a5 /graphics/Mesa/buildlink.mk | |
parent | a1aafaafc7228d8a8f16fa0c654927a680203577 (diff) | |
download | pkgsrc-5700c6abe38ad8bc838fcf036551fb26079ab1ad.tar.gz |
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.
Diffstat (limited to 'graphics/Mesa/buildlink.mk')
-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 |