Makefile revision 810
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews###############################################################################
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
f0aad5341752aefe5059832f6cf3abc3283c6e16Tinderbox User# libpciaccess Makefile
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Use is subject to license terms.
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Permission is hereby granted, free of charge, to any person obtaining a
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews# copy of this software and associated documentation files (the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# "Software"), to deal in the Software without restriction, including
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# without limitation the rights to use, copy, modify, merge, publish,
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# distribute, and/or sell copies of the Software, and to permit persons
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# to whom the Software is furnished to do so, provided that the above
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# copyright notice(s) and this permission notice appear in all copies of
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User# the Software and that both the above copyright notice(s) and this
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User# permission notice appear in supporting documentation.
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Except as contained in this notice, the name of a copyright holder
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# shall not be used in advertising or otherwise to promote the sale, use
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# or other dealings in this Software without prior written authorization
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# of the copyright holder.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Package name used in tarballs
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserMODULE_NAME=libpciaccess
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Version number (used in path names)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserMODULE_VERSION=0.10.6
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Patches to apply to source after unpacking, in order
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsSOURCE_PATCHES = \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User scanpci.man.patch
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Library name
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserLIBNAME=libpciaccess
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Where to install libpciaccess files
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserMODULE_PREFIX=/usr
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserMODULE_PREFIX_SET=yes
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Man pages to apply Sun footer to & attributes to list
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#SUNTOUCHED_MANPAGES=man/*.man
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserSUN_PACKAGE=SUNWpciaccess
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserMODULE_STABILITY=Volatile
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserLIB_MAN_SUFFIX=3pciaccess
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# pkg-config files that need to have -R added
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserFIX_PC_FILES=pciaccess.pc.in
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Activate additional debugging code in debug builds
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserMODULE_DEBUG_FLAGS=-DDEBUG
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Additional targets for scanpci
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserMODULE_ADD_SOURCE_TARGETS = source_scanpci_man
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserMODULE_ADD_INSTALL_TARGETS = install_scanpci
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Userinclude ../Makefile.inc
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Update scanpci.man with program man page flags instead of library ones
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Usersource_scanpci_man:: default_source
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User (cd $(SOURCE_DIR) && \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User /usr/perl5/bin/perl $(TOP)/common/suntouch-manpages.pl \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User -a '{Availability, $(SUN_PACKAGE)}' \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User -a '{Interface Stability, $(MODULE_STABILITY)}' \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User -p $(MODULE_PREFIX)/bin/ \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User src/scanpci.man && \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User sed -e 's/__xorgversion__/"$(MODULE_NAME) $(MODULE_VERSION)"/' \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User src/scanpci.man > src/scanpci.1 )
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# We want to install scanpci, even though the upstream Makefile doesn't
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Userinstall_scanpci:: default_install
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User mkdir -p $(PROTODIR)$(MODULE_PREFIX)/bin$(ARCHLIBSUBDIR) \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(PROTODIR)$(MODULE_PREFIX)/share/man/man1
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(INSTALL_SCRIPT) -m 755 $(SOURCE_DIR)/src/scanpci \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(PROTODIR)$(MODULE_PREFIX)/bin$(ARCHLIBSUBDIR)/scanpci
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(INSTALL_SCRIPT) -m 444 $(SOURCE_DIR)/src/scanpci.1 \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User $(PROTODIR)$(MODULE_PREFIX)/share/man/man1/scanpci.1
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User