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