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