Makefile revision 1003
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync###############################################################################
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# Xorg server Makefile
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# Permission is hereby granted, free of charge, to any person obtaining a
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# copy of this software and associated documentation files (the "Software"),
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# to deal in the Software without restriction, including without limitation
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# the rights to use, copy, modify, merge, publish, distribute, sublicense,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# and/or sell copies of the Software, and to permit persons to whom the
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# Software is furnished to do so, subject to the following conditions:
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# The above copyright notice and this permission notice (including the next
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# paragraph) shall be included in all copies or substantial portions of the
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# DEALINGS IN THE SOFTWARE.
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# Build 32-bit or 64-bit?
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# Package name used in tarballs
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# Version number (used in path names)
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# Checksums for upstream tarball
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncTARBALL_SHA1 = 0f1b71363843b7e394d6de62d0db5b74d3e645ef
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# Patches to apply to source after unpacking, in order
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# *** Moved to patch-list file so they can be shared between Xorg & Xvnc builds
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# Used in rules shared between Xorg & Xvnc builds in Makefile.inc
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# to allow for different source layouts
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# ARC cases that covered this module
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# PSARC/2004/187 Xorg Server for Solaris
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# PSARC/2004/685 Xorg server upgrade to X11R6.8 release
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# PSARC/2004/829 Xorg 6.8.2 server upgrade for Solaris
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# PSARC/2005/450 Xorg 6.9 for Solaris
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# PSARC/2006/609 Xserver provider for DTrace
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# PSARC/2007/051 Xorg server upgrade to 7.2
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# PSARC/2007/434 Xorg server 1.3
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# PSARC/2007/500 X11 MIT-SHM Extension across zones
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# PSARC/2008/294 Xorg driver selection based on VIS_GETIDENTIFIER
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# PSARC/2009/021 Xorg server 1.5
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# PSARC/2009/292 Xorg server 1.6
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# PSARC/2009/679 Xorg server 1.7
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# Man pages to apply Sun footer to & attributes to list
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# XXX: Need to adjust some of these to correct packages/stability
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# Override specific attributes for specific man pages
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync $(SUNTOUCH_MAN_FLAGS_$(@F:%.man.$(FIXED_MAN_SUFFIX)=%))
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# Xephyr & Xvfb are split out into their own packages
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncSUNTOUCH_MAN_FLAGS_Xephyr = -o '{Availability, $(MODULE_PKGNAME:%xorg=%xephyr)}'
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncSUNTOUCH_MAN_FLAGS_Xvfb = -o '{Availability, $(MODULE_PKGNAME:%xorg=%xvfb)}'
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# Used in sun-manpage.patch to set distro name in Xserver man page
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# DISTRO_NAME is set in open-src/common/Makefile.options.*
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync# Binary built in tree
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncBUILD_TARGETS=$(XORGSERVER_BIN) build_mdb set-elf-comments \
-e 's%^.* _XSERVER64 .*$$%#include <sys/isa_defs.h>\
# Install xorg-server.pc in 32-bit pkgconfig dir on SPARC too
-rm -f $@
/usr/ccs/bin/nm -g $(XORGSERVER_BIN) $(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR)/libXfont.so | grep -v UNDEF | sed -n -e 's/^.*\|FUNC \|GLOB \|.*\|\([A-Za-z].*\)$$/ \1 = FUNCTION extern;/p' -e 's/^.*\|OBJT \|GLOB \|.*\|\([A-Za-z].*\)$$/ \1 = DATA extern;/p' >> $@
@rm -f $@
@rm -f $@
ln -s ../../../../..$(SERVERMOD_subdir:$(SUBDIR64)=..)/var/run/opengl/server/$(SERVERMOD_subdir)/libglx.so \
$(EXTRA_ATTRDATA_FILES) \
mkdir -p $@
@rm -f $@
mkdir -p $@
@rm -f $@