Makefile revision 1124
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync###############################################################################
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync#
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync# libpciaccess Makefile
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync#
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync# Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync#
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync# Permission is hereby granted, free of charge, to any person obtaining a
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync# copy of this software and associated documentation files (the "Software"),
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync# to deal in the Software without restriction, including without limitation
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync# the rights to use, copy, modify, merge, publish, distribute, sublicense,
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync# and/or sell copies of the Software, and to permit persons to whom the
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync# Software is furnished to do so, subject to the following conditions:
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync#
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync# The above copyright notice and this permission notice (including the next
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync# paragraph) shall be included in all copies or substantial portions of the
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync# Software.
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync#
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync# DEALINGS IN THE SOFTWARE.
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync#
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync# Package name used in tarballs
f9a51917495bc8ba8b60632219652a7b122c1190vboxsyncMODULE_NAME=libpciaccess
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync# Version number (used in path names)
f9a51917495bc8ba8b60632219652a7b122c1190vboxsyncMODULE_VERSION=0.12.1
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync# Checksums for upstream tarball
f9a51917495bc8ba8b60632219652a7b122c1190vboxsyncTARBALL_MD5 = d6363ee9f4df79f6fc47cba7c67b0d35
f9a51917495bc8ba8b60632219652a7b122c1190vboxsyncTARBALL_SHA1 = 4933bda545df37395e57ff6b4bd61e17a5431770
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync# Patches to apply to source after unpacking, in order
f9a51917495bc8ba8b60632219652a7b122c1190vboxsyncSOURCE_PATCHES = \
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync pciaccess_private.h.patch \
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync scanpci.man.patch \
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync solx_devfs.c.patch \
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync solx_devfs.c.domain.patch
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync# Library name
f9a51917495bc8ba8b60632219652a7b122c1190vboxsyncLIBNAME=libpciaccess
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync# Where to install libpciaccess files
f9a51917495bc8ba8b60632219652a7b122c1190vboxsyncMODULE_PREFIX=/usr
f9a51917495bc8ba8b60632219652a7b122c1190vboxsyncMODULE_PREFIX_SET=yes
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync# pkg(5) name we deliver the files in (override default)
f9a51917495bc8ba8b60632219652a7b122c1190vboxsyncMODULE_PKGNAME=diagnostic/scanpci
f9a51917495bc8ba8b60632219652a7b122c1190vboxsyncMODULE_PKGNAME_SET=yes
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync# Package classification (override default)
f9a51917495bc8ba8b60632219652a7b122c1190vboxsyncMODULE_PKGCLASS=System/Hardware
f9a51917495bc8ba8b60632219652a7b122c1190vboxsyncMODULE_PKGCLASS_SET=yes
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync# ARC cases that covered this module
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync# PSARC/2008/638 libpciaccess & scanpci
f9a51917495bc8ba8b60632219652a7b122c1190vboxsyncMODULE_ARC_CASES = PSARC/2008/638
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync# Man pages to apply Sun footer to & attributes to list
f9a51917495bc8ba8b60632219652a7b122c1190vboxsyncSUNTOUCHED_MANPAGES=man/scanpci.man
f9a51917495bc8ba8b60632219652a7b122c1190vboxsyncMODULE_STABILITY=Volatile
f9a51917495bc8ba8b60632219652a7b122c1190vboxsyncLIB_MAN_SUFFIX=3pciaccess
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync# Update scanpci.man with program man page flags instead of library ones
f9a51917495bc8ba8b60632219652a7b122c1190vboxsyncSUNTOUCH_MAN_FLAGS = $(COMMON_SUNTOUCH_MAN_FLAGS)
f9a51917495bc8ba8b60632219652a7b122c1190vboxsyncSUNTOUCH_MAN_FLAGS +=-p $(MODULE_PREFIX)/bin/
f9a51917495bc8ba8b60632219652a7b122c1190vboxsyncSUNTOUCH_MAN_FLAGS_SET=yes
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync# pkg-config files that need to have -R added
f9a51917495bc8ba8b60632219652a7b122c1190vboxsyncFIX_PC_FILES=pciaccess.pc.in
f9a51917495bc8ba8b60632219652a7b122c1190vboxsync
# Activate additional debugging code in debug builds
MODULE_DEBUG_FLAGS=-DDEBUG
# Additional targets for scanpci
MODULE_ADD_INSTALL_TARGETS_64 = install_scanpci
MODULE_ADD_INSTALL_TARGETS = $(MODULE_ADD_INSTALL_TARGETS_$(BUILD_TYPE))
# Compatibility links from /usr/X11/bin to /usr/bin
MODULE_X11_BINCOMPAT_LINKS = scanpci
include ../Makefile.inc
# We want to install scanpci, even though the upstream Makefile doesn't
install_scanpci: default_install
mkdir -p $(PROTODIR)$(MODULE_PREFIX)/bin \
$(PROTODIR)/etc/security/exec_attr.d/ \
$(PROTODIR)$(MODULE_PREFIX)/share/man/man1
$(INSTALL_SCRIPT) -m 755 $(SOURCE_DIR)/scanpci/scanpci \
$(PROTODIR)$(MODULE_PREFIX)/bin/scanpci
$(INSTALL_SCRIPT) -m 444 $(SOURCE_DIR)/man/scanpci.1 \
$(PROTODIR)$(MODULE_PREFIX)/share/man/man1/scanpci.1
$(INSTALL_SCRIPT) -m 444 exec_attr \
$(PROTODIR)/etc/security/exec_attr.d/scanpci