Makefile revision 1124
0N/A###############################################################################
0N/A#
0N/A# libpciaccess Makefile
0N/A#
0N/A# Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
0N/A#
0N/A# Permission is hereby granted, free of charge, to any person obtaining a
0N/A# copy of this software and associated documentation files (the "Software"),
0N/A# to deal in the Software without restriction, including without limitation
0N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
0N/A# and/or sell copies of the Software, and to permit persons to whom the
0N/A# Software is furnished to do so, subject to the following conditions:
0N/A#
0N/A# The above copyright notice and this permission notice (including the next
0N/A# paragraph) shall be included in all copies or substantial portions of the
0N/A# Software.
0N/A#
0N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
0N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
0N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
0N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
0N/A# DEALINGS IN THE SOFTWARE.
0N/A#
0N/A
0N/A# Package name used in tarballs
0N/AMODULE_NAME=libpciaccess
0N/A
0N/A# Version number (used in path names)
0N/AMODULE_VERSION=0.12.1
0N/A
0N/A# Checksums for upstream tarball
0N/ATARBALL_MD5 = d6363ee9f4df79f6fc47cba7c67b0d35
0N/ATARBALL_SHA1 = 4933bda545df37395e57ff6b4bd61e17a5431770
0N/A
0N/A# Patches to apply to source after unpacking, in order
0N/ASOURCE_PATCHES = \
0N/A pciaccess_private.h.patch \
0N/A scanpci.man.patch \
0N/A solx_devfs.c.patch \
0N/A solx_devfs.c.domain.patch
0N/A
0N/A# Library name
0N/ALIBNAME=libpciaccess
0N/A
0N/A# Where to install libpciaccess files
0N/AMODULE_PREFIX=/usr
0N/AMODULE_PREFIX_SET=yes
0N/A
0N/A# pkg(5) name we deliver the files in (override default)
0N/AMODULE_PKGNAME=diagnostic/scanpci
0N/AMODULE_PKGNAME_SET=yes
0N/A# Package classification (override default)
0N/AMODULE_PKGCLASS=System/Hardware
0N/AMODULE_PKGCLASS_SET=yes
0N/A
0N/A# ARC cases that covered this module
0N/A# PSARC/2008/638 libpciaccess & scanpci
MODULE_ARC_CASES = PSARC/2008/638
# Man pages to apply Sun footer to & attributes to list
SUNTOUCHED_MANPAGES=man/scanpci.man
MODULE_STABILITY=Volatile
LIB_MAN_SUFFIX=3pciaccess
# Update scanpci.man with program man page flags instead of library ones
SUNTOUCH_MAN_FLAGS = $(COMMON_SUNTOUCH_MAN_FLAGS)
SUNTOUCH_MAN_FLAGS +=-p $(MODULE_PREFIX)/bin/
SUNTOUCH_MAN_FLAGS_SET=yes
# pkg-config files that need to have -R added
FIX_PC_FILES=pciaccess.pc.in
# 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