Makefile revision 911
f951f076f3d321c52b824a866caff28ce4f8e06cAndreas Gustafsson###############################################################################
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# libpciaccess Makefile
f951f076f3d321c52b824a866caff28ce4f8e06cAndreas Gustafsson# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
f951f076f3d321c52b824a866caff28ce4f8e06cAndreas Gustafsson# Use is subject to license terms.
15a44745412679c30a6d022733925af70a38b715David Lawrence# Permission is hereby granted, free of charge, to any person obtaining a
15a44745412679c30a6d022733925af70a38b715David Lawrence# copy of this software and associated documentation files (the
15a44745412679c30a6d022733925af70a38b715David Lawrence# "Software"), to deal in the Software without restriction, including
15a44745412679c30a6d022733925af70a38b715David Lawrence# without limitation the rights to use, copy, modify, merge, publish,
15a44745412679c30a6d022733925af70a38b715David Lawrence# distribute, and/or sell copies of the Software, and to permit persons
15a44745412679c30a6d022733925af70a38b715David Lawrence# to whom the Software is furnished to do so, provided that the above
15a44745412679c30a6d022733925af70a38b715David Lawrence# copyright notice(s) and this permission notice appear in all copies of
15a44745412679c30a6d022733925af70a38b715David Lawrence# the Software and that both the above copyright notice(s) and this
f951f076f3d321c52b824a866caff28ce4f8e06cAndreas Gustafsson# permission notice appear in supporting documentation.
618a5e4923c3d064c1cc0f1866e27e8ddca90700Andreas Gustafsson# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
f951f076f3d321c52b824a866caff28ce4f8e06cAndreas Gustafsson# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
f951f076f3d321c52b824a866caff28ce4f8e06cAndreas Gustafsson# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
f80ea74e1984e0b1dbe48dd86ecdd3a2380393cbBob Halley# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrence# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrence# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
fc8a6561cbb0a1fea849950a3217aacd3b8f1eacDavid Lawrence# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrence# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
ed04318ef686581fc9a20965a5be02abfb4f1bd5Andreas Gustafsson# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
f951f076f3d321c52b824a866caff28ce4f8e06cAndreas Gustafsson# Except as contained in this notice, the name of a copyright holder
f951f076f3d321c52b824a866caff28ce4f8e06cAndreas Gustafsson# shall not be used in advertising or otherwise to promote the sale, use
f951f076f3d321c52b824a866caff28ce4f8e06cAndreas Gustafsson# or other dealings in this Software without prior written authorization
f951f076f3d321c52b824a866caff28ce4f8e06cAndreas Gustafsson# of the copyright holder.
f951f076f3d321c52b824a866caff28ce4f8e06cAndreas Gustafsson# Package name used in tarballs
f951f076f3d321c52b824a866caff28ce4f8e06cAndreas Gustafsson# Version number (used in path names)
f951f076f3d321c52b824a866caff28ce4f8e06cAndreas Gustafsson# Checksums for upstream tarball
f951f076f3d321c52b824a866caff28ce4f8e06cAndreas GustafssonTARBALL_MD5 = 685cb20e7a6165bc010972f1183addbd
f951f076f3d321c52b824a866caff28ce4f8e06cAndreas GustafssonTARBALL_SHA1 = 491e137f34a22f7208a6b0f68cbe51d929923591
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# Patches to apply to source after unpacking, in order
a928d619170d61da40c3bff29800ff73709140daAndreas Gustafsson# Where to install libpciaccess files
a928d619170d61da40c3bff29800ff73709140daAndreas Gustafsson# Man pages to apply Sun footer to & attributes to list
a928d619170d61da40c3bff29800ff73709140daAndreas Gustafsson#SUNTOUCHED_MANPAGES=man/*.man
a928d619170d61da40c3bff29800ff73709140daAndreas Gustafsson# pkg-config files that need to have -R added
f951f076f3d321c52b824a866caff28ce4f8e06cAndreas Gustafsson# Activate additional debugging code in debug builds
f951f076f3d321c52b824a866caff28ce4f8e06cAndreas Gustafsson# Additional targets for scanpci
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David LawrenceMODULE_ADD_SOURCE_TARGETS = source_scanpci_man
f951f076f3d321c52b824a866caff28ce4f8e06cAndreas GustafssonMODULE_ADD_INSTALL_TARGETS = install_scanpci
f951f076f3d321c52b824a866caff28ce4f8e06cAndreas Gustafsson# Update scanpci.man with program man page flags instead of library ones
f951f076f3d321c52b824a866caff28ce4f8e06cAndreas Gustafsson /usr/perl5/bin/perl $(TOP)/common/suntouch-manpages.pl \
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence -a '{Interface Stability, $(MODULE_STABILITY)}' \
f951f076f3d321c52b824a866caff28ce4f8e06cAndreas Gustafsson sed -e 's/__xorgversion__/"$(MODULE_NAME) $(MODULE_VERSION)"/' \
f951f076f3d321c52b824a866caff28ce4f8e06cAndreas Gustafsson# We want to install scanpci, even though the upstream Makefile doesn't
f951f076f3d321c52b824a866caff28ce4f8e06cAndreas Gustafsson mkdir -p $(PROTODIR)$(MODULE_PREFIX)/bin$(ARCHLIBSUBDIR) \
f951f076f3d321c52b824a866caff28ce4f8e06cAndreas Gustafsson $(PROTODIR)$(MODULE_PREFIX)/share/man/man1
f951f076f3d321c52b824a866caff28ce4f8e06cAndreas Gustafsson $(INSTALL_SCRIPT) -m 755 $(SOURCE_DIR)/src/scanpci \
ed04318ef686581fc9a20965a5be02abfb4f1bd5Andreas Gustafsson $(PROTODIR)$(MODULE_PREFIX)/bin$(ARCHLIBSUBDIR)/scanpci
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence $(INSTALL_SCRIPT) -m 444 $(SOURCE_DIR)/src/scanpci.1 \