###############################################################################
#
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice (including the next
# paragraph) shall be included in all copies or substantial portions of the
# Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
#
#
# Package name used in tarballs
# Package metadata
# ARC cases that covered this module
# LSARC/2005/109 MESA, Open Source OpenGL clone
# PSARC/2013/264 Mesa 9.0.3
# PSARC/2015/251 Xorg server 1.17
# PSARC/2016/560 Mesa 12
# Version number (used in path names)
# Checksums for upstream tarball
# Source tarball
# Download site for source
# Directory created by unpacking source
# Patches to apply to source after unpacking, in order
# Regenerate configure after patching configure.ac in mesa9-port.patch
# delibtoolize does not get along with Mesa 9.0.3
# Command line options to GNU autoconf configure script
# Build mesa with this define (Bug 15706016)
# Add proto area to path to find makedepend
# Need to use GNU Make to build
# Need to build with gcc
# pkg-config files that need to have -R added
### Include common rulesets
# Move installed files to mesa subdirs and make links back
# Run just once after all other install steps are done for both 32/64-bit
$(HEADERS_TO_RUNTIME_LINK:%=../../../system/volatile/opengl/include/%) \