Makefile revision 1124
0N/A###############################################################################
0N/A#
0N/A# xf86-video-intel Makefile
0N/A#
407N/A# Copyright (c) 2006, 2011, Oracle and/or its affiliates. All rights reserved.
0N/A#
0N/A# Permission is hereby granted, free of charge, to any person obtaining a
0N/A# copy of this software and associated documentation files (the "Software"),
0N/A# to deal in the Software without restriction, including without limitation
0N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
0N/A# and/or sell copies of the Software, and to permit persons to whom the
0N/A# Software is furnished to do so, subject to the following conditions:
0N/A#
0N/A# The above copyright notice and this permission notice (including the next
0N/A# paragraph) shall be included in all copies or substantial portions of the
0N/A# Software.
0N/A#
0N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
0N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
0N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
0N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
0N/A# DEALINGS IN THE SOFTWARE.
0N/A#
388N/A#
388N/A
388N/A# Package name used in tarballs
388N/AMODULE_NAME=xf86-video-intel
388N/A
388N/A# Version number (used in path names)
388N/AMODULE_VERSION=2.10.0
388N/A
508N/A# Checksums for upstream tarball
388N/ATARBALL_MD5 = 78309d4f04dd8ae6585d120377042741
388N/ATARBALL_SHA1 = 1683eddf89ed88f109cb2fe46284e3f8f304a0d9
388N/A
508N/A# Patches to apply to source after unpacking, in order
350N/ASOURCE_PATCHES= \
0N/A xserver-1.9-list.h.patch \
388N/A xserver-1.9-abi.patch \
0N/A build-dri.patch \
388N/A libraries.patch \
388N/A pad.patch sandybridge.patch \
0N/A build-with-Xorg1.10.patch
456N/A
456N/A# Man pages to apply Sun footer to & attributes to list
456N/ASUNTOUCHED_MANPAGES=man/*.man
456N/AMODULE_STABILITY=Volatile
456N/A
456N/A# Need to build 32-bit libXvMC libraries even when X server is 64-bit only
0N/ABUILD_TYPES=32 64
0N/ABUILD_TYPES_SET=yes
0N/A
0N/A# but we only want those libraries built in the 32-bit build, not the whole
0N/A# driver (which would overwrite the 64-bit driver)
0N/ABUILD_TARGETS = build-in-subdir $(MODTYPE_ADD_BUILD_TARGETS)
350N/ABUILD_TARGETS_SET=yes
0N/Asubdir_32 = $(SOURCE_DIR)/src/xvmc
0N/Asubdir_64 = $(SOURCE_DIR)
0N/Asubdir = $(subdir_$(BUILD_TYPE))
0N/Ainstall_subdir_cmd = install
0N/AINSTALL_TARGETS = install-in-subdir $(MODTYPE_ADD_INSTALL_TARGETS)
0N/AINSTALL_TARGETS_64 = install_docs
0N/AINSTALL_TARGETS += $(INSTALL_TARGETS_$(BUILD_TYPE))
0N/AINSTALL_TARGETS_SET=yes
0N/ALIBXVMC_LD_OPTIONS = -L$(PROTODIR)$(X11_LIB_DIR)$(ARCHLIBSUBDIR)
0N/ALIBXVMC_LD_OPTIONS += $(LIB_REQUIRED_LDFLAGS) -lc
0N/AMODULE_BUILD_ENV_32 = LD_OPTIONS="$(LIBXVMC_LD_OPTIONS)"
0N/AMODULE_BUILD_ENV = $(MODULE_BUILD_ENV_$(BUILD_TYPE))
0N/A
0N/A# Intel driver doesn't work on some chipsets if built with Sun compiler
344N/AMODULE_COMPILER=gcc
344N/AMODULE_COMPILER_SET=yes
460N/A
460N/A# Extra flags to pass to configure script
151N/A# --libdir is needed to set path for XvMC libraries
158N/AMODULE_CONFIG_OPTS=--enable-dri --libdir='$(X11_LIB_DIR)$(ARCHLIBSUBDIR)'
151N/A
158N/A# Library paths at build time
0N/AMODULE_LD_OPTIONS= \
344N/A -L$(PROTODIR)$(X11_SERVERMODS_DIR) \
0N/A -L$(PROTODIR)$(MESA_XSERVERMODS_DIR)/extensions \
0N/A -L$(PROTODIR)$(X11_SERVERMODS_DIR)/extensions \
158N/A -L$(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) \
0N/A -L$(PROTODIR)$(X11_LIB_DIR)$(ARCHLIBSUBDIR) \
388N/A -M $(PWD)/mapfile.externs
0N/A
388N/A# Need to regenerate configure & Makefile.in's after patching
0N/A# configure.ac & Makefile.am's in libraries.patch & build-dri.patch
0N/AAUTORECONF=yes
0N/A
0N/Ainclude ../Makefile.inc
0N/A
350N/Ainstall_docs: $(INSTALL_DEPS)
350N/A mkdir -p $(PROTODIR)$(X11_DOC_DIR)
350N/A cp -pf $(SOURCE_DIR)/README $(PROTODIR)$(X11_DOC_DIR)/README.intel
350N/A
350N/Abuild-in-subdir: $(BUILD_DEPS)
0N/Ainstall-in-subdir: $(INSTALL_DEPS)
0N/A