Makefile revision 1059
98N/A###############################################################################
98N/A#
943N/A# libpciaccess Makefile
98N/A#
98N/A# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
919N/A#
919N/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
98N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
98N/A# DEALINGS IN THE SOFTWARE.
493N/A#
493N/A
98N/A# Package name used in tarballs
98N/AMODULE_NAME=libpciaccess
753N/A
493N/A# Version number (used in path names)
911N/AMODULE_VERSION=0.10.9
911N/A
911N/A# Checksums for upstream tarball
911N/ATARBALL_MD5 = 685cb20e7a6165bc010972f1183addbd
493N/ATARBALL_SHA1 = 491e137f34a22f7208a6b0f68cbe51d929923591
493N/A
493N/A# Patches to apply to source after unpacking, in order
493N/ASOURCE_PATCHES = \
98N/A pciaccess_private.h.patch \
98N/A scanpci.man.patch \
493N/A solx_devfs.c.patch
493N/A
98N/A# Library name
98N/ALIBNAME=libpciaccess
156N/A
156N/A# Where to install libpciaccess files
98N/AMODULE_PREFIX=/usr
98N/AMODULE_PREFIX_SET=yes
98N/A
606N/A# pkg(5) name we deliver the files in (override default)
606N/AMODULE_PKGNAME=diagnostic/scanpci
98N/AMODULE_PKGNAME_SET=yes
98N/A# Package classification (override default)
98N/AMODULE_PKGCLASS=System/Hardware
98N/AMODULE_PKGCLASS_SET=yes
98N/A
606N/A
851N/A# ARC cases that covered this module
493N/A# PSARC/2008/638 libpciaccess & scanpci
98N/AMODULE_ARC_CASES = PSARC/2008/638
98N/A
851N/A# Man pages to apply Sun footer to & attributes to list
493N/A#SUNTOUCHED_MANPAGES=man/*.man
231N/AMODULE_STABILITY=Volatile
231N/ALIB_MAN_SUFFIX=3pciaccess
851N/A
493N/A# pkg-config files that need to have -R added
98N/AFIX_PC_FILES=pciaccess.pc.in
98N/A
493N/A# Activate additional debugging code in debug builds
98N/AMODULE_DEBUG_FLAGS=-DDEBUG
98N/A
98N/A# Additional targets for scanpci
98N/AMODULE_ADD_SOURCE_TARGETS = source_scanpci_man
98N/AMODULE_ADD_INSTALL_TARGETS_32 = install_scanpci
98N/AMODULE_ADD_INSTALL_TARGETS = $(MODULE_ADD_INSTALL_TARGETS_$(BUILD_TYPE))
851N/A
851N/A# Compatibility links from /usr/X11/bin to /usr/bin
659N/AMODULE_X11_BINCOMPAT_LINKS = scanpci
378N/A
659N/Ainclude ../Makefile.inc
378N/A
606N/A# Update scanpci.man with program man page flags instead of library ones
493N/ASCANPCI_MAN_SRC = $(SOURCE_DIR)/src/scanpci.man
606N/ASCANPCI_MAN_OUT = $(SOURCE_DIR)/src/scanpci.1
493N/A
606N/Asource_scanpci_man: $(SCANPCI_MAN_OUT)
493N/A
98N/A$(SCANPCI_MAN_SRC): $(UNPACK_TARGET)
493N/A
606N/A$(SCANPCI_MAN_OUT): $(SCANPCI_MAN_SRC)
606N/A (cd $(SOURCE_DIR) && \
98N/A $(PERL) $(TOP)/open-src/common/suntouch-manpages.pl \
493N/A $(COMMON_SUNTOUCH_MAN_FLAGS) \
606N/A -p $(MODULE_PREFIX)/bin/ \
606N/A -r '{__distroname__, $(DISTRO_NAME)}' \
98N/A -r '{__xorgversion__, "$(MODULE_NAME) $(MODULE_VERSION)"}' \
98N/A src/scanpci.man && \
493N/A cp src/scanpci.man src/scanpci.1 )
606N/A
606N/A# We want to install scanpci, even though the upstream Makefile doesn't
98N/Ainstall_scanpci: default_install $(SCANPCI_MAN_OUT)
98N/A mkdir -p $(PROTODIR)$(MODULE_PREFIX)/bin$(ARCHLIBSUBDIR) \
493N/A $(PROTODIR)/etc/security/exec_attr.d/ \
98N/A $(PROTODIR)$(MODULE_PREFIX)/share/man/man1
606N/A $(INSTALL_SCRIPT) -m 755 $(SOURCE_DIR)/src/scanpci \
606N/A $(PROTODIR)$(MODULE_PREFIX)/bin$(ARCHLIBSUBDIR)/scanpci
231N/A $(INSTALL_SCRIPT) -m 444 $(SOURCE_DIR)/src/scanpci.1 \
606N/A $(PROTODIR)$(MODULE_PREFIX)/share/man/man1/scanpci.1
606N/A $(INSTALL_SCRIPT) -m 444 exec_attr \
231N/A $(PROTODIR)/etc/security/exec_attr.d/scanpci
231N/A