Makefile revision 1196
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson###############################################################################
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# xf86-video-intel Makefile
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Copyright (c) 2006, 2011, Oracle and/or its affiliates. All rights reserved.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Permission is hereby granted, free of charge, to any person obtaining a
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# copy of this software and associated documentation files (the "Software"),
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# to deal in the Software without restriction, including without limitation
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# the rights to use, copy, modify, merge, publish, distribute, sublicense,
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# and/or sell copies of the Software, and to permit persons to whom the
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Software is furnished to do so, subject to the following conditions:
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# The above copyright notice and this permission notice (including the next
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# paragraph) shall be included in all copies or substantial portions of the
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
8eea877894ea5bcf5cdd9ca124a8601ad421d753Andreas Gustafsson# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# DEALINGS IN THE SOFTWARE.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Package name used in tarballs
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Version number (used in path names)
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Checksums for upstream tarball
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonTARBALL_MD5 = 78309d4f04dd8ae6585d120377042741
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonTARBALL_SHA1 = 1683eddf89ed88f109cb2fe46284e3f8f304a0d9
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Patches to apply to source after unpacking, in order
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Man pages to apply Sun footer to & attributes to list
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Need to build 32-bit libXvMC libraries even when X server is 64-bit only
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# but we only want those libraries built in the 32-bit build, not the whole
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# driver (which would overwrite the 64-bit driver)
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonBUILD_TARGETS = build-in-subdir $(MODTYPE_ADD_BUILD_TARGETS)
8eea877894ea5bcf5cdd9ca124a8601ad421d753Andreas GustafssonINSTALL_TARGETS = install-in-subdir $(MODTYPE_ADD_INSTALL_TARGETS)
8eea877894ea5bcf5cdd9ca124a8601ad421d753Andreas GustafssonINSTALL_TARGETS += $(INSTALL_TARGETS_$(BUILD_TYPE))
8eea877894ea5bcf5cdd9ca124a8601ad421d753Andreas GustafssonLIBXVMC_LD_OPTIONS = -L$(PROTODIR)$(X11_LIB_DIR)$(ARCHLIBSUBDIR)
8eea877894ea5bcf5cdd9ca124a8601ad421d753Andreas GustafssonLIBXVMC_LD_OPTIONS += $(LIB_REQUIRED_LDFLAGS) -z ignore -lc
8eea877894ea5bcf5cdd9ca124a8601ad421d753Andreas GustafssonMODULE_BUILD_ENV_32 = LD_OPTIONS="$(LIBXVMC_LD_OPTIONS)"
8eea877894ea5bcf5cdd9ca124a8601ad421d753Andreas GustafssonMODULE_BUILD_ENV = $(MODULE_BUILD_ENV_$(BUILD_TYPE))
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Intel driver doesn't work on some chipsets if built with Sun compiler
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Extra flags to pass to configure script
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# --libdir is needed to set path for XvMC libraries
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonMODULE_CONFIG_OPTS=--enable-dri --libdir='$(X11_LIB_DIR)$(ARCHLIBSUBDIR)'
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Library paths at build time
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson -L$(PROTODIR)$(MESA_XSERVERMODS_DIR)/extensions \
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson -L$(PROTODIR)$(X11_SERVERMODS_DIR)/extensions \
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson -L$(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) \
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson -L$(PROTODIR)$(X11_LIB_DIR)$(ARCHLIBSUBDIR) \
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Need to regenerate configure & Makefile.in's after patching
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# configure.ac & Makefile.am's in libraries.patch & build-dri.patch