Makefile revision 1409
577N/A###############################################################################
577N/A#
1339N/A# libpciaccess - generic PCI access software library & scanpci utility
577N/A#
1409N/A# Copyright (c) 2008, 2014, Oracle and/or its affiliates. All rights reserved.
577N/A#
577N/A# Permission is hereby granted, free of charge, to any person obtaining a
919N/A# copy of this software and associated documentation files (the "Software"),
919N/A# to deal in the Software without restriction, including without limitation
919N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
919N/A# and/or sell copies of the Software, and to permit persons to whom the
919N/A# Software is furnished to do so, subject to the following conditions:
919N/A#
919N/A# The above copyright notice and this permission notice (including the next
919N/A# paragraph) shall be included in all copies or substantial portions of the
919N/A# Software.
919N/A#
919N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
919N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
919N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
919N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
919N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
919N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
919N/A# DEALINGS IN THE SOFTWARE.
577N/A#
577N/A
577N/A# Package name used in tarballs
577N/AMODULE_NAME=libpciaccess
577N/A
577N/A# Version number (used in path names)
1370N/AMODULE_VERSION=0.13.2
577N/A
911N/A# Checksums for upstream tarball
1370N/ATARBALL_MD5 = b7c0d3afce14eedca57312a3141ec13a
1370N/ATARBALL_SHA1 = 63df515a4c5d5a339a7c1f9e4baa6543efa3c7da
1370N/ATARBALL_SHA256= abab8c2b050afb89bc29280e9c6b50ec5867174960d88bfb81a01036ec20de19
911N/A
577N/A# Patches to apply to source after unpacking, in order
1370N/ASOURCE_PATCHES = scanpci.man.patch
1409N/ASOURCE_PATCHES += fd-leak.patch,-p1
577N/A
577N/A# Library name
577N/ALIBNAME=libpciaccess
577N/A
577N/A# Where to install libpciaccess files
577N/AMODULE_PREFIX=/usr
577N/AMODULE_PREFIX_SET=yes
577N/A
1339N/A# Package metadata
1339N/AMODULE_DESC = the libpciaccess library and scanpci utility
970N/A# pkg(5) name we deliver the files in (override default)
970N/AMODULE_PKGNAME=diagnostic/scanpci
970N/AMODULE_PKGNAME_SET=yes
970N/A# Package classification (override default)
970N/AMODULE_PKGCLASS=System/Hardware
970N/AMODULE_PKGCLASS_SET=yes
970N/A
970N/A# ARC cases that covered this module
970N/A# PSARC/2008/638 libpciaccess & scanpci
970N/AMODULE_ARC_CASES = PSARC/2008/638
970N/A
577N/A# Man pages to apply Sun footer to & attributes to list
1072N/ASUNTOUCHED_MANPAGES=man/scanpci.man
577N/AMODULE_STABILITY=Volatile
577N/ALIB_MAN_SUFFIX=3pciaccess
577N/A
1072N/A# Update scanpci.man with program man page flags instead of library ones
1124N/ASUNTOUCH_MAN_FLAGS = $(COMMON_SUNTOUCH_MAN_FLAGS)
1124N/ASUNTOUCH_MAN_FLAGS +=-p $(MODULE_PREFIX)/bin/
1072N/ASUNTOUCH_MAN_FLAGS_SET=yes
1072N/A
577N/A# pkg-config files that need to have -R added
577N/AFIX_PC_FILES=pciaccess.pc.in
577N/A
615N/A# Activate additional debugging code in debug builds
615N/AMODULE_DEBUG_FLAGS=-DDEBUG
615N/A
1196N/A# Override linker flags for scanpci program
1196N/APCIACCESS_PROG_LDFLAGS = $(MAPFILES_FOR_PROGS) ../src/libpciaccess.so.0
1196N/APROGRAM_VARS = scanpci
1196N/APROGRAM_MAKEFLAGS = $(PROGRAM_VARS:%=%_LDADD="$(PCIACCESS_PROG_LDFLAGS)")
1196N/AMODULE_BUILD_MAKEFLAGS = AM_MAKEFLAGS='$(PROGRAM_MAKEFLAGS)'
1196N/A
810N/A# Additional targets for scanpci
1097N/AMODULE_ADD_INSTALL_TARGETS_64 = install_scanpci
935N/AMODULE_ADD_INSTALL_TARGETS = $(MODULE_ADD_INSTALL_TARGETS_$(BUILD_TYPE))
810N/A
970N/A# Compatibility links from /usr/X11/bin to /usr/bin
970N/AMODULE_X11_BINCOMPAT_LINKS = scanpci
970N/A
577N/Ainclude ../Makefile.inc
577N/A
577N/A# We want to install scanpci, even though the upstream Makefile doesn't
1072N/Ainstall_scanpci: default_install
1097N/A mkdir -p $(PROTODIR)$(MODULE_PREFIX)/bin \
970N/A $(PROTODIR)/etc/security/exec_attr.d/ \
577N/A $(PROTODIR)$(MODULE_PREFIX)/share/man/man1
1072N/A $(INSTALL_SCRIPT) -m 755 $(SOURCE_DIR)/scanpci/scanpci \
1097N/A $(PROTODIR)$(MODULE_PREFIX)/bin/scanpci
1072N/A $(INSTALL_SCRIPT) -m 444 $(SOURCE_DIR)/man/scanpci.1 \
577N/A $(PROTODIR)$(MODULE_PREFIX)/share/man/man1/scanpci.1
970N/A $(INSTALL_SCRIPT) -m 444 exec_attr \
970N/A $(PROTODIR)/etc/security/exec_attr.d/scanpci