Makefile revision 1366
###############################################################################
#
#
# 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
ORACLE_TPNO = 9926
# ARC cases that covered this module
# LSARC/2005/109 MESA, Open Source OpenGL clone
# PSARC/2013/264 Mesa 9.0.3
# 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
# File created by running configure script
# Command line options to GNU autoconf configure script
# Build mesa with this define (CR 7032292)
# Override LDFLAGS passed to configure to not include CFLAGS, since that
# breaks building libGLU with Sun Studio C++ compiler
MODULE_CONFIG_ENV = LDFLAGS="$(DEFAULT_CONFIG_LDFLAGS) $(ARCH_FLAGS) $(MODTYPE_LDFLAGS) $(MODULE_CFLAGS) $(MODULE_LDFLAGS)"
# Add proto area to path to find makedepend
# Need to use GNU Make to build
# To build with gcc, uncomment these lines and comment out the MODULE_CFLAGS
# Tell Sun compiler to not apply optimizations that increase binary sizes
# Without this flag, Studio 12 binaries are almost 2x bigger (CR 6808868)
#MODULE_CFLAGS = -xspace
# Add include paths and linker paths needed for DRM modules
# Merge in additional sources from sun-src directory
# pkg-config files that need to have -R added
### Include common rulesets
echo 'INSTALL_PC_DIR=$(PKGCONFIG_DIR)' >> $(AUTOCONF_TARGET)
# 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
ln -s $(HEADERS_TO_DIRECT_LINK:%=../mesa/%) \
$(HEADERS_TO_RUNTIME_LINK:%=../../../system/volatile/opengl/include/%) \