Makefile revision 1097
1e83c8de3aa48b316b28057d53995272baf1260cwrowe###############################################################################
1e83c8de3aa48b316b28057d53995272baf1260cwrowe# Xorg server Makefile
1e83c8de3aa48b316b28057d53995272baf1260cwrowe# Copyright (c) 2006, 2011, Oracle and/or its affiliates. All rights reserved.
1e83c8de3aa48b316b28057d53995272baf1260cwrowe# Permission is hereby granted, free of charge, to any person obtaining a
1e83c8de3aa48b316b28057d53995272baf1260cwrowe# copy of this software and associated documentation files (the "Software"),
1e83c8de3aa48b316b28057d53995272baf1260cwrowe# to deal in the Software without restriction, including without limitation
1e83c8de3aa48b316b28057d53995272baf1260cwrowe# the rights to use, copy, modify, merge, publish, distribute, sublicense,
1e83c8de3aa48b316b28057d53995272baf1260cwrowe# and/or sell copies of the Software, and to permit persons to whom the
1e83c8de3aa48b316b28057d53995272baf1260cwrowe# Software is furnished to do so, subject to the following conditions:
1e83c8de3aa48b316b28057d53995272baf1260cwrowe# The above copyright notice and this permission notice (including the next
1e83c8de3aa48b316b28057d53995272baf1260cwrowe# paragraph) shall be included in all copies or substantial portions of the
1e83c8de3aa48b316b28057d53995272baf1260cwrowe# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1e83c8de3aa48b316b28057d53995272baf1260cwrowe# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1e83c8de3aa48b316b28057d53995272baf1260cwrowe# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
1e83c8de3aa48b316b28057d53995272baf1260cwrowe# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1e83c8de3aa48b316b28057d53995272baf1260cwrowe# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
1e83c8de3aa48b316b28057d53995272baf1260cwrowe# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
1e83c8de3aa48b316b28057d53995272baf1260cwrowe# DEALINGS IN THE SOFTWARE.
1e83c8de3aa48b316b28057d53995272baf1260cwrowe# Package name used in tarballs
1e83c8de3aa48b316b28057d53995272baf1260cwrowe# Version number (used in path names)
1e83c8de3aa48b316b28057d53995272baf1260cwrowe# Checksums for upstream tarball
1e83c8de3aa48b316b28057d53995272baf1260cwroweTARBALL_SHA1 = e8d5776fe973f15c0e907fd827106f8d296acf7e
1e83c8de3aa48b316b28057d53995272baf1260cwrowe# Patches to apply to source after unpacking, in order
1e83c8de3aa48b316b28057d53995272baf1260cwrowe# *** Moved to patch-list file so they can be shared between Xorg & Xvnc builds
1e83c8de3aa48b316b28057d53995272baf1260cwrowe# Used in rules shared between Xorg & Xvnc builds in Makefile.inc
1e83c8de3aa48b316b28057d53995272baf1260cwrowe# to allow for different source layouts
82fb810bb421cd57e1a74095bcbf30c89b9cc6acmturk# ARC cases that covered this module
1e83c8de3aa48b316b28057d53995272baf1260cwrowe# PSARC/2004/187 Xorg Server for Solaris
1e83c8de3aa48b316b28057d53995272baf1260cwrowe# PSARC/2004/685 Xorg server upgrade to X11R6.8 release
1e83c8de3aa48b316b28057d53995272baf1260cwrowe# PSARC/2004/829 Xorg 6.8.2 server upgrade for Solaris
1e83c8de3aa48b316b28057d53995272baf1260cwrowe# PSARC/2005/450 Xorg 6.9 for Solaris
94b262d3639149df0b02642a9daa6db8bff58577wrowe# PSARC/2006/609 Xserver provider for DTrace
94b262d3639149df0b02642a9daa6db8bff58577wrowe# PSARC/2007/051 Xorg server upgrade to 7.2
94b262d3639149df0b02642a9daa6db8bff58577wrowe# PSARC/2007/434 Xorg server 1.3
94b262d3639149df0b02642a9daa6db8bff58577wrowe# PSARC/2007/500 X11 MIT-SHM Extension across zones
1e83c8de3aa48b316b28057d53995272baf1260cwrowe# PSARC/2008/294 Xorg driver selection based on VIS_GETIDENTIFIER
1e83c8de3aa48b316b28057d53995272baf1260cwrowe# PSARC/2009/021 Xorg server 1.5
1e83c8de3aa48b316b28057d53995272baf1260cwrowe# PSARC/2009/292 Xorg server 1.6
1e83c8de3aa48b316b28057d53995272baf1260cwrowe# PSARC/2009/679 Xorg server 1.7
1e83c8de3aa48b316b28057d53995272baf1260cwrowe# PSARC/2010/109 Introduce libXcb in Solaris
1e83c8de3aa48b316b28057d53995272baf1260cwrowe# Man pages to apply Sun footer to & attributes to list
1e83c8de3aa48b316b28057d53995272baf1260cwrowe# XXX: Need to adjust some of these to correct packages/stability
1e83c8de3aa48b316b28057d53995272baf1260cwrowe# Override specific attributes for specific man pages
94b262d3639149df0b02642a9daa6db8bff58577wrowe $(SUNTOUCH_MAN_FLAGS_$(@F:%.man.$(FIXED_MAN_SUFFIX)=%))
94b262d3639149df0b02642a9daa6db8bff58577wrowe# Xephyr, Xvfb, and Xdmx are split out into their own packages
94b262d3639149df0b02642a9daa6db8bff58577wroweSUNTOUCH_MAN_FLAGS_Xephyr = -o '{Availability, $(MODULE_PKGNAME:%xorg=%xephyr)}'
94b262d3639149df0b02642a9daa6db8bff58577wroweSUNTOUCH_MAN_FLAGS_Xvfb = -o '{Availability, $(MODULE_PKGNAME:%xorg=%xvfb)}'
94b262d3639149df0b02642a9daa6db8bff58577wroweSUNTOUCH_MAN_FLAGS_Xdmx = -o '{Availability, $(MODULE_PKGNAME:%xorg=%xdmx)}'
94b262d3639149df0b02642a9daa6db8bff58577wrowe# Used in sun-manpage.patch to set distro name in Xserver man page
1e83c8de3aa48b316b28057d53995272baf1260cwrowe# DISTRO_NAME is set in open-src/common/Makefile.options.*
1e83c8de3aa48b316b28057d53995272baf1260cwrowe# Binary built in tree
1e83c8de3aa48b316b28057d53995272baf1260cwroweBUILD_TARGETS=$(XORGSERVER_BIN) build_mdb set-elf-comments \
1e83c8de3aa48b316b28057d53995272baf1260cwrowe# Need to regenerate autoconf/automake files after patching
8c8173f49dd7122e10636b3d20ae841551bd0b43wrowe# Command line options to GNU autoconf configure script
1e83c8de3aa48b316b28057d53995272baf1260cwrowe# Need to override LD setting to add -xarch flags that libtool strips
1e83c8de3aa48b316b28057d53995272baf1260cwrowe# XXX: --disable-dga
# builds, and install xorg-server.pc in 32-bit pkgconfig dir 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' >> $@
$(EXTRA_ATTRDATA_FILES) \
mkdir -p $@
mkdir -p $@
@rm -f $@
mkdir -p $@
@rm -f $@