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