open-src/lib/libpciaccess/Makefile
author Niveditha Rau <Niveditha.Rau@Oracle.COM>
Fri, 06 Apr 2012 21:57:14 -0700
changeset 1265 0b5cc5c013e4
parent 1251 46b41622af46
child 1275 394f1c4996ae
permissions -rw-r--r--
7083537 Xorg 1.12 & associated module updates
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
577
cd96438515cb 6752912 Integrate libpixman [LSARC 2008/637]
Stuart Kreitman <Stuart.Kreitman@Sun.COM>
parents:
diff changeset
     1
###############################################################################
cd96438515cb 6752912 Integrate libpixman [LSARC 2008/637]
Stuart Kreitman <Stuart.Kreitman@Sun.COM>
parents:
diff changeset
     2
#
cd96438515cb 6752912 Integrate libpixman [LSARC 2008/637]
Stuart Kreitman <Stuart.Kreitman@Sun.COM>
parents:
diff changeset
     3
# libpciaccess Makefile
cd96438515cb 6752912 Integrate libpixman [LSARC 2008/637]
Stuart Kreitman <Stuart.Kreitman@Sun.COM>
parents:
diff changeset
     4
#
1265
0b5cc5c013e4 7083537 Xorg 1.12 & associated module updates
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1251
diff changeset
     5
# Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved.
577
cd96438515cb 6752912 Integrate libpixman [LSARC 2008/637]
Stuart Kreitman <Stuart.Kreitman@Sun.COM>
parents:
diff changeset
     6
#
cd96438515cb 6752912 Integrate libpixman [LSARC 2008/637]
Stuart Kreitman <Stuart.Kreitman@Sun.COM>
parents:
diff changeset
     7
# Permission is hereby granted, free of charge, to any person obtaining a
919
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
     8
# copy of this software and associated documentation files (the "Software"),
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
     9
# to deal in the Software without restriction, including without limitation
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    10
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    11
# and/or sell copies of the Software, and to permit persons to whom the
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    12
# Software is furnished to do so, subject to the following conditions:
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    13
#
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    14
# The above copyright notice and this permission notice (including the next
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    15
# paragraph) shall be included in all copies or substantial portions of the
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    16
# Software.
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    17
#
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    18
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    19
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    20
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    21
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    22
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    23
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    24
# DEALINGS IN THE SOFTWARE.
577
cd96438515cb 6752912 Integrate libpixman [LSARC 2008/637]
Stuart Kreitman <Stuart.Kreitman@Sun.COM>
parents:
diff changeset
    25
#
cd96438515cb 6752912 Integrate libpixman [LSARC 2008/637]
Stuart Kreitman <Stuart.Kreitman@Sun.COM>
parents:
diff changeset
    26
cd96438515cb 6752912 Integrate libpixman [LSARC 2008/637]
Stuart Kreitman <Stuart.Kreitman@Sun.COM>
parents:
diff changeset
    27
# Package name used in tarballs
cd96438515cb 6752912 Integrate libpixman [LSARC 2008/637]
Stuart Kreitman <Stuart.Kreitman@Sun.COM>
parents:
diff changeset
    28
MODULE_NAME=libpciaccess
cd96438515cb 6752912 Integrate libpixman [LSARC 2008/637]
Stuart Kreitman <Stuart.Kreitman@Sun.COM>
parents:
diff changeset
    29
cd96438515cb 6752912 Integrate libpixman [LSARC 2008/637]
Stuart Kreitman <Stuart.Kreitman@Sun.COM>
parents:
diff changeset
    30
# Version number (used in path names)
1265
0b5cc5c013e4 7083537 Xorg 1.12 & associated module updates
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1251
diff changeset
    31
MODULE_VERSION=0.13
577
cd96438515cb 6752912 Integrate libpixman [LSARC 2008/637]
Stuart Kreitman <Stuart.Kreitman@Sun.COM>
parents:
diff changeset
    32
911
a3e7e197651c 6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 910
diff changeset
    33
# Checksums for upstream tarball
1265
0b5cc5c013e4 7083537 Xorg 1.12 & associated module updates
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1251
diff changeset
    34
TARBALL_MD5   = 2604307ba43c76ee8aec11ea137ae1e8
0b5cc5c013e4 7083537 Xorg 1.12 & associated module updates
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1251
diff changeset
    35
TARBALL_SHA1  = 7ddd8e1de27326f6f4a3ac6b4d2241fe77ef5353
0b5cc5c013e4 7083537 Xorg 1.12 & associated module updates
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1251
diff changeset
    36
TARBALL_SHA256= 24368520b0947487ec73729e3c97c95f3d9bf83704a910bb0abe1d5a63df32fd
911
a3e7e197651c 6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 910
diff changeset
    37
577
cd96438515cb 6752912 Integrate libpixman [LSARC 2008/637]
Stuart Kreitman <Stuart.Kreitman@Sun.COM>
parents:
diff changeset
    38
# Patches to apply to source after unpacking, in order
606
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 597
diff changeset
    39
SOURCE_PATCHES = \
829
badaccd24c06 PSARC 2009/596 "primary-card" frame buffer driver property
John Martin <John.M.Martin@Sun.COM>
parents: 810
diff changeset
    40
	scanpci.man.patch \
1265
0b5cc5c013e4 7083537 Xorg 1.12 & associated module updates
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1251
diff changeset
    41
	primary-vga.patch,-p1 \
0b5cc5c013e4 7083537 Xorg 1.12 & associated module updates
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1251
diff changeset
    42
	scanpci_64bit.patch,-p1
577
cd96438515cb 6752912 Integrate libpixman [LSARC 2008/637]
Stuart Kreitman <Stuart.Kreitman@Sun.COM>
parents:
diff changeset
    43
cd96438515cb 6752912 Integrate libpixman [LSARC 2008/637]
Stuart Kreitman <Stuart.Kreitman@Sun.COM>
parents:
diff changeset
    44
# Library name
cd96438515cb 6752912 Integrate libpixman [LSARC 2008/637]
Stuart Kreitman <Stuart.Kreitman@Sun.COM>
parents:
diff changeset
    45
LIBNAME=libpciaccess
cd96438515cb 6752912 Integrate libpixman [LSARC 2008/637]
Stuart Kreitman <Stuart.Kreitman@Sun.COM>
parents:
diff changeset
    46
cd96438515cb 6752912 Integrate libpixman [LSARC 2008/637]
Stuart Kreitman <Stuart.Kreitman@Sun.COM>
parents:
diff changeset
    47
# Where to install libpciaccess files
cd96438515cb 6752912 Integrate libpixman [LSARC 2008/637]
Stuart Kreitman <Stuart.Kreitman@Sun.COM>
parents:
diff changeset
    48
MODULE_PREFIX=/usr
cd96438515cb 6752912 Integrate libpixman [LSARC 2008/637]
Stuart Kreitman <Stuart.Kreitman@Sun.COM>
parents:
diff changeset
    49
MODULE_PREFIX_SET=yes
cd96438515cb 6752912 Integrate libpixman [LSARC 2008/637]
Stuart Kreitman <Stuart.Kreitman@Sun.COM>
parents:
diff changeset
    50
970
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 967
diff changeset
    51
# pkg(5) name we deliver the files in (override default)
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 967
diff changeset
    52
MODULE_PKGNAME=diagnostic/scanpci
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 967
diff changeset
    53
MODULE_PKGNAME_SET=yes
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 967
diff changeset
    54
# Package classification (override default)
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 967
diff changeset
    55
MODULE_PKGCLASS=System/Hardware
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 967
diff changeset
    56
MODULE_PKGCLASS_SET=yes
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 967
diff changeset
    57
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 967
diff changeset
    58
# ARC cases that covered this module
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 967
diff changeset
    59
# PSARC/2008/638  libpciaccess & scanpci 
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 967
diff changeset
    60
MODULE_ARC_CASES = PSARC/2008/638
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 967
diff changeset
    61
577
cd96438515cb 6752912 Integrate libpixman [LSARC 2008/637]
Stuart Kreitman <Stuart.Kreitman@Sun.COM>
parents:
diff changeset
    62
# Man pages to apply Sun footer to & attributes to list
1072
88d1d779286d 7010623 X11R7.6 Update: Library modules
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1003
diff changeset
    63
SUNTOUCHED_MANPAGES=man/scanpci.man
577
cd96438515cb 6752912 Integrate libpixman [LSARC 2008/637]
Stuart Kreitman <Stuart.Kreitman@Sun.COM>
parents:
diff changeset
    64
MODULE_STABILITY=Volatile
cd96438515cb 6752912 Integrate libpixman [LSARC 2008/637]
Stuart Kreitman <Stuart.Kreitman@Sun.COM>
parents:
diff changeset
    65
LIB_MAN_SUFFIX=3pciaccess
cd96438515cb 6752912 Integrate libpixman [LSARC 2008/637]
Stuart Kreitman <Stuart.Kreitman@Sun.COM>
parents:
diff changeset
    66
1072
88d1d779286d 7010623 X11R7.6 Update: Library modules
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1003
diff changeset
    67
# Update scanpci.man with program man page flags instead of library ones
1124
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1099
diff changeset
    68
SUNTOUCH_MAN_FLAGS  = $(COMMON_SUNTOUCH_MAN_FLAGS)
7bc7e624f965 7042476 Xorg 1.10 & associated module updates [PSARC/2011/214]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1099
diff changeset
    69
SUNTOUCH_MAN_FLAGS +=-p $(MODULE_PREFIX)/bin/
1072
88d1d779286d 7010623 X11R7.6 Update: Library modules
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1003
diff changeset
    70
SUNTOUCH_MAN_FLAGS_SET=yes
88d1d779286d 7010623 X11R7.6 Update: Library modules
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1003
diff changeset
    71
577
cd96438515cb 6752912 Integrate libpixman [LSARC 2008/637]
Stuart Kreitman <Stuart.Kreitman@Sun.COM>
parents:
diff changeset
    72
# pkg-config files that need to have -R added
cd96438515cb 6752912 Integrate libpixman [LSARC 2008/637]
Stuart Kreitman <Stuart.Kreitman@Sun.COM>
parents:
diff changeset
    73
FIX_PC_FILES=pciaccess.pc.in
cd96438515cb 6752912 Integrate libpixman [LSARC 2008/637]
Stuart Kreitman <Stuart.Kreitman@Sun.COM>
parents:
diff changeset
    74
615
2ce7b8396380 6797039 libpciaccess should use devinfo properties to limit the busses scanned
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 607
diff changeset
    75
# Activate additional debugging code in debug builds
2ce7b8396380 6797039 libpciaccess should use devinfo properties to limit the busses scanned
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 607
diff changeset
    76
MODULE_DEBUG_FLAGS=-DDEBUG
2ce7b8396380 6797039 libpciaccess should use devinfo properties to limit the busses scanned
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 607
diff changeset
    77
1196
1ce455dae979 7081325 X builds should run check_rtime to ensure binaries are linked well
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1177
diff changeset
    78
# Override linker flags for scanpci program
1ce455dae979 7081325 X builds should run check_rtime to ensure binaries are linked well
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1177
diff changeset
    79
PCIACCESS_PROG_LDFLAGS = $(MAPFILES_FOR_PROGS) ../src/libpciaccess.so.0
1ce455dae979 7081325 X builds should run check_rtime to ensure binaries are linked well
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1177
diff changeset
    80
PROGRAM_VARS = scanpci
1ce455dae979 7081325 X builds should run check_rtime to ensure binaries are linked well
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1177
diff changeset
    81
PROGRAM_MAKEFLAGS = $(PROGRAM_VARS:%=%_LDADD="$(PCIACCESS_PROG_LDFLAGS)")
1ce455dae979 7081325 X builds should run check_rtime to ensure binaries are linked well
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1177
diff changeset
    82
MODULE_BUILD_MAKEFLAGS = AM_MAKEFLAGS='$(PROGRAM_MAKEFLAGS)'
1ce455dae979 7081325 X builds should run check_rtime to ensure binaries are linked well
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1177
diff changeset
    83
810
6f94d3da0552 6889793 enable parallel builds of the X consolidation
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 705
diff changeset
    84
# Additional targets for scanpci
1097
243d7ed7a10c 6991718 Removal of 32-bit X servers [PSARC/2010/382]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1072
diff changeset
    85
MODULE_ADD_INSTALL_TARGETS_64 = install_scanpci
935
f812f9863e75 6941861 Collected X gate build fixes
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 919
diff changeset
    86
MODULE_ADD_INSTALL_TARGETS = $(MODULE_ADD_INSTALL_TARGETS_$(BUILD_TYPE))
810
6f94d3da0552 6889793 enable parallel builds of the X consolidation
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 705
diff changeset
    87
970
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 967
diff changeset
    88
# Compatibility links from /usr/X11/bin to /usr/bin
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 967
diff changeset
    89
MODULE_X11_BINCOMPAT_LINKS = scanpci
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 967
diff changeset
    90
577
cd96438515cb 6752912 Integrate libpixman [LSARC 2008/637]
Stuart Kreitman <Stuart.Kreitman@Sun.COM>
parents:
diff changeset
    91
include ../Makefile.inc
cd96438515cb 6752912 Integrate libpixman [LSARC 2008/637]
Stuart Kreitman <Stuart.Kreitman@Sun.COM>
parents:
diff changeset
    92
cd96438515cb 6752912 Integrate libpixman [LSARC 2008/637]
Stuart Kreitman <Stuart.Kreitman@Sun.COM>
parents:
diff changeset
    93
# We want to install scanpci, even though the upstream Makefile doesn't
1072
88d1d779286d 7010623 X11R7.6 Update: Library modules
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1003
diff changeset
    94
install_scanpci: default_install
1097
243d7ed7a10c 6991718 Removal of 32-bit X servers [PSARC/2010/382]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1072
diff changeset
    95
	mkdir -p $(PROTODIR)$(MODULE_PREFIX)/bin \
970
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 967
diff changeset
    96
		 $(PROTODIR)/etc/security/exec_attr.d/ \
577
cd96438515cb 6752912 Integrate libpixman [LSARC 2008/637]
Stuart Kreitman <Stuart.Kreitman@Sun.COM>
parents:
diff changeset
    97
		 $(PROTODIR)$(MODULE_PREFIX)/share/man/man1
1072
88d1d779286d 7010623 X11R7.6 Update: Library modules
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1003
diff changeset
    98
	$(INSTALL_SCRIPT) -m 755 $(SOURCE_DIR)/scanpci/scanpci \
1097
243d7ed7a10c 6991718 Removal of 32-bit X servers [PSARC/2010/382]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1072
diff changeset
    99
		$(PROTODIR)$(MODULE_PREFIX)/bin/scanpci
1072
88d1d779286d 7010623 X11R7.6 Update: Library modules
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1003
diff changeset
   100
	$(INSTALL_SCRIPT) -m 444 $(SOURCE_DIR)/man/scanpci.1 \
577
cd96438515cb 6752912 Integrate libpixman [LSARC 2008/637]
Stuart Kreitman <Stuart.Kreitman@Sun.COM>
parents:
diff changeset
   101
		$(PROTODIR)$(MODULE_PREFIX)/share/man/man1/scanpci.1
970
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 967
diff changeset
   102
	$(INSTALL_SCRIPT) -m 444 exec_attr \
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 967
diff changeset
   103
		$(PROTODIR)/etc/security/exec_attr.d/scanpci