Makefile revision 947
98N/A###############################################################################
98N/A#
943N/A# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
98N/A#
98N/A# Permission is hereby granted, free of charge, to any person obtaining a
919N/A# copy of this software and associated documentation files (the "Software"),
919N/A# to deal in the Software without restriction, including without limitation
919N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
919N/A# and/or sell copies of the Software, and to permit persons to whom the
919N/A# Software is furnished to do so, subject to the following conditions:
919N/A#
919N/A# The above copyright notice and this permission notice (including the next
919N/A# paragraph) shall be included in all copies or substantial portions of the
919N/A# Software.
919N/A#
919N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
919N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
919N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
919N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
919N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
919N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
919N/A# DEALINGS IN THE SOFTWARE.
98N/A#
98N/A#
98N/A
493N/A# Package name used in tarballs
493N/AMODULE_NAME=mesa
98N/A
98N/A# Version number (used in path names)
753N/AMODULE_VERSION=7.4.4
98N/A
911N/A# Checksums for upstream tarball
911N/ATARBALL_MD5 = b66528d314c574dccbe0ed963cac5e93
911N/ATARBALL_SHA1 = 1cdcef24900489bc0a879013b2138c0d9aedffe3
911N/A
98N/A# Source tarball
493N/ASOURCE_TARBALL_NAME=MesaLib-$(MODULE_VERSION).tar.bz2
493N/ASOURCE_TARBALL_NAME_SET=yes
98N/A
98N/A# Download site for source
156N/ASOURCE_URL=$(SF_DOWNLOADS_URL)/mesa3d/$(SOURCE_TARBALL_NAME)
156N/ASOURCE_URL_SET=yes
493N/AGIT_URL=$(FDO_GIT_URL)/mesa/mesa
493N/AGIT_URL_SET=yes
493N/A
493N/A# Directory created by unpacking source
493N/ASOURCE_DIRNAME=Mesa-$(MODULE_VERSION)
493N/ASOURCE_DIRNAME_SET=yes
493N/ASOURCE_DIR = $(BUILD_DIR)/$(SOURCE_DIRNAME)
98N/A
98N/A# Patches to apply to source after unpacking, in order
98N/ASOURCE_PATCHES= \
705N/A install-pc-dir.patch,-p1 \
705N/A glu-no-mangled-exports.patch \
814N/A solaris-port.patch \
814N/A 6872597.patch 6866668.patch
606N/A
606N/A# File created by running configure script
606N/AAUTOCONF_TARGET=$(SOURCE_DIR)/configs/autoconf
606N/AAUTOCONF_TARGET_SET=yes
705N/AMODULE_ADD_CONFIGURE_TARGETS=set_pc_dir
606N/A
606N/ADRI_DRIVER_LIST_sparc=
606N/ADRI_DRIVER_LIST_i386=i915 i965 r200 r300 radeon
606N/ADRI_DRIVER_LIST= $(DRI_DRIVER_LIST_$(MACH)) swrast
606N/A
606N/A# Command line options to GNU autoconf configure script
606N/AMODULE_CONFIG_OPTS = --with-driver=dri \
606N/A --with-dri-driverdir='$(X11_SERVERMODS_DIR)/dri$(SERVERMOD_subdir)' \
606N/A --with-dri-drivers='$(DRI_DRIVER_LIST)'
606N/A
606N/A# Override LDFLAGS passed to configure to not include CFLAGS, since that
606N/A# breaks building libGLU with Sun Studio C++ compiler
606N/AMODULE_CONFIG_ENV = LDFLAGS="$(DEFAULT_CONFIG_LDFLAGS) $(ARCH_FLAGS) $(MODTYPE_LDFLAGS) $(MODULE_CFLAGS) $(MODULE_LDFLAGS)"
98N/A
493N/A# Need to use GNU Make to build
493N/AMODULE_MAKE=$(GNUMAKE)
493N/AMODULE_MAKE_SET=yes
98N/A
647N/A# To build with gcc, uncomment these lines and comment out the MODULE_CFLAGS
606N/A# MODULE_COMPILER=gcc
606N/A# MODULE_COMPILER_SET=yes
98N/A
647N/A# Tell Sun compiler to not apply optimizations that increase binary sizes
647N/A# Without this flag, Studio 12 binaries are almost 2x bigger (CR 6808868)
647N/AMODULE_CFLAGS = -xspace
647N/A
606N/A# Add include paths and linker paths needed for DRM modules
606N/AMODULE_CPPFLAGS = -I$(PROTODIR)$(X11_INCLUDES_DIR)/drm
98N/A
606N/AMODULE_LDFLAGS= -L$(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) \
606N/A -R$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR)
98N/A
493N/A# Merge in additional sources from sun-src directory
493N/AADDITIONAL_SOURCE_DIR=sun-src
98N/A
705N/A# pkg-config files that need to have -R added
705N/AFIX_PC_FILES=src/*/*.pc.in src/mesa/drivers/dri/dri.pc.in
705N/A
705N/A
493N/A### Include common rulesets
493N/Ainclude ../Makefile.inc
493N/A
705N/A# Mesa makefiles use a different variable name/method for pkgconfig path
705N/Aset_pc_dir: $(AUTOCONF_TARGET)
705N/A echo 'INSTALL_PC_DIR=$(PKGCONFIG_DIR)' >> $(AUTOCONF_TARGET)