Makefile revision 1397
98N/A###############################################################################
98N/A#
199N/A# xf86-video-intel Makefile
98N/A#
1351N/A# Copyright (c) 2006, 2013, 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
98N/A# Package name used in tarballs
493N/AMODULE_NAME=xf86-video-intel
98N/A
98N/A# Version number (used in path names)
1351N/AMODULE_VERSION=2.21.5
98N/A
911N/A# Checksums for upstream tarball
1351N/ATARBALL_MD5 = 0dac21775fc67149d1a8b61988b1386b
1351N/ATARBALL_SHA1 = 41aaf6ada255b4094cb6b6cab8f990079d676e29
911N/A
98N/A# Patches to apply to source after unpacking, in order
1089N/ASOURCE_PATCHES= \
1089N/A build-dri.patch \
1351N/A batch.patch libraries.patch
98N/A
98N/A# Man pages to apply Sun footer to & attributes to list
98N/ASUNTOUCHED_MANPAGES=man/*.man
493N/AMODULE_STABILITY=Volatile
98N/A
1097N/A# Need to build 32-bit libXvMC libraries even when X server is 64-bit only
1097N/ABUILD_TYPES=32 64
1097N/ABUILD_TYPES_SET=yes
1097N/A
1097N/A# but we only want those libraries built in the 32-bit build, not the whole
1097N/A# driver (which would overwrite the 64-bit driver)
1097N/ABUILD_TARGETS = build-in-subdir $(MODTYPE_ADD_BUILD_TARGETS)
1265N/ABUILD_TARGETS_32 = build_legacy_xvmc
1265N/ABUILD_TARGETS += $(BUILD_TARGETS_$(BUILD_TYPE))
1097N/ABUILD_TARGETS_SET=yes
1097N/Asubdir_32 = $(SOURCE_DIR)/src/xvmc
1097N/Asubdir_64 = $(SOURCE_DIR)
1097N/Asubdir = $(subdir_$(BUILD_TYPE))
1097N/Ainstall_subdir_cmd = install
1097N/AINSTALL_TARGETS = install-in-subdir $(MODTYPE_ADD_INSTALL_TARGETS)
1265N/AINSTALL_TARGETS_32 = install_legacy_xvmc
1097N/AINSTALL_TARGETS_64 = install_docs
1097N/AINSTALL_TARGETS += $(INSTALL_TARGETS_$(BUILD_TYPE))
1097N/AINSTALL_TARGETS_SET=yes
1097N/ALIBXVMC_LD_OPTIONS = -L$(PROTODIR)$(X11_LIB_DIR)$(ARCHLIBSUBDIR)
1351N/ALIBXVMC_LD_OPTIONS += $(LIB_REQUIRED_LDFLAGS) -z ignore -lc -lX11
1097N/AMODULE_BUILD_ENV_32 = LD_OPTIONS="$(LIBXVMC_LD_OPTIONS)"
1097N/AMODULE_BUILD_ENV = $(MODULE_BUILD_ENV_$(BUILD_TYPE))
1097N/A
705N/A# Intel driver doesn't work on some chipsets if built with Sun compiler
705N/AMODULE_COMPILER=gcc
705N/AMODULE_COMPILER_SET=yes
705N/A
606N/A# Extra flags to pass to configure script
965N/A# --libdir is needed to set path for XvMC libraries
1351N/AMODULE_CONFIG_OPTS=--enable-dri --libdir='$(X11_LIB_DIR)$(ARCHLIBSUBDIR)' \
1351N/A --disable-sna --enable-uxa
98N/A
1265N/A# echo is set to workaround configure/libtool strangeness in 2.15.0 that
1265N/A# causes ../../libtool: line 791: X--mode=install: command not found errors
1265N/AMODULE_CONFIG_ENV = echo=/usr/gnu/bin/echo
1265N/AMODULE_BUILD_ENV += echo=/usr/gnu/bin/echo
1265N/A
965N/A# Library paths at build time
1196N/AMODULE_LD_OPTIONS= -z ignore \
1097N/A -L$(PROTODIR)$(X11_SERVERMODS_DIR) \
1097N/A -L$(PROTODIR)$(MESA_XSERVERMODS_DIR)/extensions \
1097N/A -L$(PROTODIR)$(X11_SERVERMODS_DIR)/extensions \
98N/A -L$(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) \
1089N/A -L$(PROTODIR)$(X11_LIB_DIR)$(ARCHLIBSUBDIR) \
1089N/A -M $(PWD)/mapfile.externs
98N/A
1351N/A# Can't build tests with parfait yet, due to parfait-ld error:
1351N/A$(WITH_PARFAIT) SOURCE_PATCHES += no-test.patch,-p1
1351N/A$(WITH_PARFAIT) AUTORECONF = yes
1351N/A
199N/A# Need to regenerate configure & Makefile.in's after patching
199N/A# configure.ac & Makefile.am's in libraries.patch & build-dri.patch
493N/AAUTORECONF=yes
493N/A
493N/Ainclude ../Makefile.inc
98N/A
910N/Ainstall_docs: $(INSTALL_DEPS)
98N/A mkdir -p $(PROTODIR)$(X11_DOC_DIR)
1097N/A cp -pf $(SOURCE_DIR)/README $(PROTODIR)$(X11_DOC_DIR)/README.intel
1097N/A
1097N/Abuild-in-subdir: $(BUILD_DEPS)
1097N/Ainstall-in-subdir: $(INSTALL_DEPS)
1265N/A
1265N/ALEGACY_XVMC_SUBDIR = $(SOURCE_DIR)/src/legacy/i810/xvmc
1265N/A
1265N/Abuild_legacy_xvmc: $(BUILD_DEPS)
1265N/A $(DEFAULT_BUILD_COMMAND:@DIR@=$(LEGACY_XVMC_SUBDIR)) $(subdir_cmd)
1265N/A
1265N/Ainstall_legacy_xvmc: $(INSTALL_DEPS)
1265N/A $(DEFAULT_INSTALL_COMMAND:@DIR@=$(LEGACY_XVMC_SUBDIR)) $(subdir_cmd) \
1265N/A $(install_subdir_cmd)