Makefile revision 1366
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews###############################################################################
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Copyright (c) 2006, 2013, Oracle and/or its affiliates. All rights reserved.
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Permission is hereby granted, free of charge, to any person obtaining a
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# copy of this software and associated documentation files (the "Software"),
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# to deal in the Software without restriction, including without limitation
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# the rights to use, copy, modify, merge, publish, distribute, sublicense,
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews# and/or sell copies of the Software, and to permit persons to whom the
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# Software is furnished to do so, subject to the following conditions:
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# The above copyright notice and this permission notice (including the next
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# paragraph) shall be included in all copies or substantial portions of the
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# DEALINGS IN THE SOFTWARE.
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# Package name used in tarballs
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# Package metadata
b66b333f59cf51ef87f973084a5023acd9317fb2Evan HuntMODULE_LICENSE = Mesa License (Mixed: MIT, LGPLv2, others)
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# ARC cases that covered this module
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# LSARC/2005/109 MESA, Open Source OpenGL clone
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# PSARC/2013/264 Mesa 9.0.3
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Version number (used in path names)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Checksums for upstream tarball
b66b333f59cf51ef87f973084a5023acd9317fb2Evan HuntTARBALL_SHA1 = c4d88d83d8dbe243e30dc07195888e19ddb1c402
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Source tarball
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserSOURCE_TARBALL_NAME=MesaLib-$(MODULE_VERSION).tar.bz2
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# Download site for source
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserSOURCE_URL=ftp://ftp.freedesktop.org/pub/mesa/$(MODULE_VERSION)/$(SOURCE_TARBALL_NAME)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Directory created by unpacking source
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Patches to apply to source after unpacking, in order
7e71f05d8643aca84914437c900cb716444507e4Tinderbox User# File created by running configure script
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserAUTOCONF_TARGET=$(SOURCE_DIR)/configs/autoconf
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# Command line options to GNU autoconf configure script
b66b333f59cf51ef87f973084a5023acd9317fb2Evan HuntMODULE_CONFIG_OPTS = --with-driver=dri --disable-egl --disable-gallium \
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt --with-dri-driverdir='$(X11_SERVERMODS_DIR)/dri$(ARCHLIBSUBDIR)' \
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# Build mesa with this define (CR 7032292)
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# Override LDFLAGS passed to configure to not include CFLAGS, since that
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# breaks building libGLU with Sun Studio C++ compiler
b66b333f59cf51ef87f973084a5023acd9317fb2Evan HuntMODULE_CONFIG_ENV = LDFLAGS="$(DEFAULT_CONFIG_LDFLAGS) $(ARCH_FLAGS) $(MODTYPE_LDFLAGS) $(MODULE_CFLAGS) $(MODULE_LDFLAGS)"
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# Add proto area to path to find makedepend
b66b333f59cf51ef87f973084a5023acd9317fb2Evan HuntMODULE_BUILD_ENV = PATH="$(PROTODIR)/$(X11_BIN_DIR):$(PATH)"
1ca759b3f5c0672b2a66bc02288fe010cabbfe37Tinderbox User# Need to use GNU Make to build
$(HEADERS_TO_RUNTIME_LINK:%=../../../system/volatile/opengl/include/%) \