Makefile revision 935
a747113422afaa29ce72d2c5ba7f0b7ea9ec2054Evan Hunt###############################################################################
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# libpciaccess Makefile
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# Permission is hereby granted, free of charge, to any person obtaining a
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# copy of this software and associated documentation files (the "Software"),
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# to deal in the Software without restriction, including without limitation
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# the rights to use, copy, modify, merge, publish, distribute, sublicense,
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# and/or sell copies of the Software, and to permit persons to whom the
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# Software is furnished to do so, subject to the following conditions:
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# The above copyright notice and this permission notice (including the next
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# paragraph) shall be included in all copies or substantial portions of the
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# DEALINGS IN THE SOFTWARE.
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrews# Package name used in tarballs
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# Version number (used in path names)
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# Checksums for upstream tarball
ef421f66f47224a42073deaf087378c5d0c9952eEvan HuntTARBALL_SHA1 = 491e137f34a22f7208a6b0f68cbe51d929923591
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# Patches to apply to source after unpacking, in order
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# Library name
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# Where to install libpciaccess files
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# Man pages to apply Sun footer to & attributes to list
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt#SUNTOUCHED_MANPAGES=man/*.man
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# pkg-config files that need to have -R added
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# Activate additional debugging code in debug builds
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# Additional targets for scanpci
ef421f66f47224a42073deaf087378c5d0c9952eEvan HuntMODULE_ADD_INSTALL_TARGETS = $(MODULE_ADD_INSTALL_TARGETS_$(BUILD_TYPE))
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# Update scanpci.man with program man page flags instead of library ones
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt sed -e 's/__xorgversion__/"$(MODULE_NAME) $(MODULE_VERSION)"/' \
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# We want to install scanpci, even though the upstream Makefile doesn't
4a53e3c2b83c476a93148eaee0272649beb221caMark Andrewsinstall_scanpci: default_install $(SCANPCI_MAN_OUT)
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt mkdir -p $(PROTODIR)$(MODULE_PREFIX)/bin$(ARCHLIBSUBDIR) \
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt $(INSTALL_SCRIPT) -m 755 $(SOURCE_DIR)/src/scanpci \
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt $(PROTODIR)$(MODULE_PREFIX)/bin$(ARCHLIBSUBDIR)/scanpci
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt $(INSTALL_SCRIPT) -m 444 $(SOURCE_DIR)/src/scanpci.1 \