Makefile revision 1265
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User###############################################################################
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User# libpciaccess Makefile
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved.
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User# Permission is hereby granted, free of charge, to any person obtaining a
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User# copy of this software and associated documentation files (the "Software"),
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User# to deal in the Software without restriction, including without limitation
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User# the rights to use, copy, modify, merge, publish, distribute, sublicense,
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User# and/or sell copies of the Software, and to permit persons to whom the
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Software is furnished to do so, subject to the following conditions:
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User# The above copyright notice and this permission notice (including the next
7e71f05d8643aca84914437c900cb716444507e4Tinderbox User# paragraph) shall be included in all copies or substantial portions of the
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
7e71f05d8643aca84914437c900cb716444507e4Tinderbox User# DEALINGS IN THE SOFTWARE.
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User# Package name used in tarballs
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User# Version number (used in path names)
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User# Checksums for upstream tarball
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserTARBALL_MD5 = 2604307ba43c76ee8aec11ea137ae1e8
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox UserTARBALL_SHA1 = 7ddd8e1de27326f6f4a3ac6b4d2241fe77ef5353
dec590a3deb8e87380a8bd3a77d535dba3729bf6Tinderbox UserTARBALL_SHA256= 24368520b0947487ec73729e3c97c95f3d9bf83704a910bb0abe1d5a63df32fd
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Patches to apply to source after unpacking, in order
7e71f05d8643aca84914437c900cb716444507e4Tinderbox User# Library name
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User# Where to install libpciaccess files
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# pkg(5) name we deliver the files in (override default)
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User# Package classification (override default)
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User# ARC cases that covered this module
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# PSARC/2008/638 libpciaccess & scanpci
9d557856c2a19ec95ee73245f60a92f8675cf5baTinderbox User# Man pages to apply Sun footer to & attributes to list
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Update scanpci.man with program man page flags instead of library ones
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox UserSUNTOUCH_MAN_FLAGS = $(COMMON_SUNTOUCH_MAN_FLAGS)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# pkg-config files that need to have -R added
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Activate additional debugging code in debug builds
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User# Override linker flags for scanpci program
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserPCIACCESS_PROG_LDFLAGS = $(MAPFILES_FOR_PROGS) ../src/libpciaccess.so.0
7e71f05d8643aca84914437c900cb716444507e4Tinderbox UserPROGRAM_MAKEFLAGS = $(PROGRAM_VARS:%=%_LDADD="$(PCIACCESS_PROG_LDFLAGS)")
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserMODULE_BUILD_MAKEFLAGS = AM_MAKEFLAGS='$(PROGRAM_MAKEFLAGS)'
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Additional targets for scanpci
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox UserMODULE_ADD_INSTALL_TARGETS_64 = install_scanpci
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserMODULE_ADD_INSTALL_TARGETS = $(MODULE_ADD_INSTALL_TARGETS_$(BUILD_TYPE))
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User# Compatibility links from /usr/X11/bin to /usr/bin
7e71f05d8643aca84914437c900cb716444507e4Tinderbox User# We want to install scanpci, even though the upstream Makefile doesn't
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User $(INSTALL_SCRIPT) -m 755 $(SOURCE_DIR)/scanpci/scanpci \
1ebb25608fa10737ea27abd4e0481707ccd45581Tinderbox User $(INSTALL_SCRIPT) -m 444 $(SOURCE_DIR)/man/scanpci.1 \