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