Makefile revision 615
2086N/A###############################################################################
2086N/A#
2086N/A# libpciaccess Makefile
2086N/A#
2086N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
2086N/A# Use subject to license terms.
2086N/A#
2086N/A# Permission is hereby granted, free of charge, to any person obtaining a
2086N/A# copy of this software and associated documentation files (the
2086N/A# "Software"), to deal in the Software without restriction, including
2086N/A# without limitation the rights to use, copy, modify, merge, publish,
2086N/A# distribute, and/or sell copies of the Software, and to permit persons
2086N/A# to whom the Software is furnished to do so, provided that the above
2086N/A# copyright notice(s) and this permission notice appear in all copies of
2086N/A# the Software and that both the above copyright notice(s) and this
2086N/A# permission notice appear in supporting documentation.
2086N/A#
2086N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
2086N/A# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
2086N/A# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
2086N/A# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
2086N/A# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
2086N/A# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
2086N/A# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
3034N/A# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
2086N/A# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2086N/A#
2086N/A# Except as contained in this notice, the name of a copyright holder
2086N/A# shall not be used in advertising or otherwise to promote the sale, use
2086N/A# or other dealings in this Software without prior written authorization
2086N/A# of the copyright holder.
2086N/A#
2086N/A
2086N/A# Package name used in tarballs
2086N/AMODULE_NAME=libpciaccess
2086N/A
2086N/A# Version number (used in path names)
2086N/AMODULE_VERSION=0.10.5
2940N/A
2940N/A# Patches to apply to source after unpacking, in order
2940N/ASOURCE_PATCHES = \
2940N/A sparc-byteswap.patch,-p1 \
2940N/A bus-range.patch,-p1 \
2086N/A 6785726.patch \
2086N/A 6789879.patch \
2086N/A scanpci.man.patch
2086N/A
2086N/A# Library name
2086N/ALIBNAME=libpciaccess
2086N/A
2086N/A# Where to install libpciaccess files
2086N/AMODULE_PREFIX=/usr
2086N/AMODULE_PREFIX_SET=yes
2086N/A
2086N/A# Man pages to apply Sun footer to & attributes to list
2086N/A#SUNTOUCHED_MANPAGES=man/*.man
2086N/ASUN_PACKAGE=SUNWpciaccess
2086N/AMODULE_STABILITY=Volatile
2086N/ALIB_MAN_SUFFIX=3pciaccess
2086N/A
2086N/A# pkg-config files that need to have -R added
2086N/AFIX_PC_FILES=pciaccess.pc.in
2086N/A
2086N/A# Activate additional debugging code in debug builds
2086N/AMODULE_DEBUG_FLAGS=-DDEBUG
2086N/A
2086N/Ainclude ../Makefile.inc
2086N/A
2086N/A# Update scanpci.man with program man page flags instead of library ones
2086N/Asource_gen::
2086N/A (cd $(SOURCE_DIR) && \
2086N/A /usr/perl5/bin/perl $(TOP)/common/suntouch-manpages.pl \
2086N/A -a '{Availability, $(SUN_PACKAGE)}' \
2086N/A -a '{Interface Stability, $(MODULE_STABILITY)}' \
2086N/A -p $(MODULE_PREFIX)/bin/ \
2086N/A src/scanpci.man && \
2086N/A sed -e 's/__xorgversion__/"$(MODULE_NAME) $(MODULE_VERSION)"/' \
2086N/A src/scanpci.man > src/scanpci.1 )
2086N/A
2086N/A# We want to install scanpci, even though the upstream Makefile doesn't
2086N/Ainstall_gen::
2086N/A mkdir -p $(PROTODIR)$(MODULE_PREFIX)/bin$(ARCHLIBSUBDIR) \
2086N/A $(PROTODIR)$(MODULE_PREFIX)/share/man/man1
2086N/A $(INSTALL_SCRIPT) -m 755 $(SOURCE_DIR)/src/scanpci \
2086N/A $(PROTODIR)$(MODULE_PREFIX)/bin$(ARCHLIBSUBDIR)/scanpci
2086N/A $(INSTALL_SCRIPT) -m 444 $(SOURCE_DIR)/src/scanpci.1 \
2086N/A $(PROTODIR)$(MODULE_PREFIX)/share/man/man1/scanpci.1
2086N/A
2086N/A