Makefile revision 1339
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsync###############################################################################
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsync# Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved.
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsync# Permission is hereby granted, free of charge, to any person obtaining a
cf7a2a65e777b164523f5a5a52a1ac64e4322760vboxsync# copy of this software and associated documentation files (the "Software"),
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsync# to deal in the Software without restriction, including without limitation
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsync# the rights to use, copy, modify, merge, publish, distribute, sublicense,
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsync# and/or sell copies of the Software, and to permit persons to whom the
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsync# Software is furnished to do so, subject to the following conditions:
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsync# The above copyright notice and this permission notice (including the next
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsync# paragraph) shall be included in all copies or substantial portions of the
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsync# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
cf7a2a65e777b164523f5a5a52a1ac64e4322760vboxsync# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
cf7a2a65e777b164523f5a5a52a1ac64e4322760vboxsync# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsync# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
39dc16facaba2c0e3d2f4654d5110ebb13ee5e8bvboxsync# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39dc16facaba2c0e3d2f4654d5110ebb13ee5e8bvboxsync# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
b8c803d8e34dc3a8c019b4f7799cb19c382916b9vboxsync# DEALINGS IN THE SOFTWARE.
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsync# Package name used in tarballs
26ab5559e05ae622734a4047cee975670da3b0e8vboxsync# Version number (used in path names)
b8c803d8e34dc3a8c019b4f7799cb19c382916b9vboxsync# Checksums for upstream tarball
b8c803d8e34dc3a8c019b4f7799cb19c382916b9vboxsyncTARBALL_SHA1 = 8177535c9c59d8c3ab98d55ce53520b5737ccd1a
b8c803d8e34dc3a8c019b4f7799cb19c382916b9vboxsyncTARBALL_SHA256= c382efd7e92bfc3cef39a4b7f1ecf2744ba4414a705e3bc1e697f75502bd4d86
b8c803d8e34dc3a8c019b4f7799cb19c382916b9vboxsync# Patches to apply to source after unpacking, in order
5d55446560201599879edf9a7133c74d0a5218bbvboxsync# Library name (used for specfiles/mapfiles)
cf7a2a65e777b164523f5a5a52a1ac64e4322760vboxsync# Dates to show in Oracle copyright notice in pkg license file
26ab5559e05ae622734a4047cee975670da3b0e8vboxsync# Earliest & latest of the copyrights in the Oracle files in this pkg
26ab5559e05ae622734a4047cee975670da3b0e8vboxsync# ARC cases that covered this module
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsync# PSARC/1992/077 X11/R5 Xlib API
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsync# PSARC/1992/082 Dynamic Locale Access For X11/R5 Xlib
26ab5559e05ae622734a4047cee975670da3b0e8vboxsync# PSARC/1997/141 Sym links needed in /usr/lib for SPARC ABI compliance
26ab5559e05ae622734a4047cee975670da3b0e8vboxsync# PSARC/2006/448 UTF8_STRING support in Solaris libX11 and XLC modules
3a6db00712f591d771f60db469fd8ea0e7b0ce69vboxsync# PSARC/2008/062 Porting of Xorg XI18N
26ab5559e05ae622734a4047cee975670da3b0e8vboxsync# PSARC/2009/666 libX11 1.3
26ab5559e05ae622734a4047cee975670da3b0e8vboxsync# PSARC/2010/109 Introduce libXcb in Solaris
3a6db00712f591d771f60db469fd8ea0e7b0ce69vboxsync# Man pages to apply Sun footer to & attributes to list
df32f009590cc83917fb1a9c38365de26109411bvboxsync# Command line options to GNU autoconf configure script
2cfbc16182293ab6af5fcceabe24b53f7b2b822bvboxsyncMODULE_CONFIG_OPTS = --enable-xthreads --enable-loadable-i18n \
2cfbc16182293ab6af5fcceabe24b53f7b2b822bvboxsync --with-xcb=yes --enable-loadable-xcursor --enable-xcms \
2cfbc16182293ab6af5fcceabe24b53f7b2b822bvboxsync --enable-xlocaledir --enable-xkb --enable-man-pages=$(LIB_MAN_SUFFIX) \
2cfbc16182293ab6af5fcceabe24b53f7b2b822bvboxsync --with-locale-lib-dir='$${exec_prefix}/lib/X11/locale$(LIBSUBDIR)'
cf7a2a65e777b164523f5a5a52a1ac64e4322760vboxsync# -xF is needed for mapfile reordering to work
26ab5559e05ae622734a4047cee975670da3b0e8vboxsync# -DSUNSOFT enables Solaris extensions
26ab5559e05ae622734a4047cee975670da3b0e8vboxsync# -DMOTIFBC enables compatibility with bugs in Motif & other apps
cf7a2a65e777b164523f5a5a52a1ac64e4322760vboxsync# -DSUNSOFT_KBD enables Solaris traditional keyboard handling
26ab5559e05ae622734a4047cee975670da3b0e8vboxsyncMODULE_CPPFLAGS = -DSUNSOFT -DMOTIFBC -DSUNSOFT_KBD \
cf7a2a65e777b164523f5a5a52a1ac64e4322760vboxsync# Need to ignore extra libraries like -lsocket & -lnsl in i18n modules
5d55446560201599879edf9a7133c74d0a5218bbvboxsync# Backwards compatibility for old paths until g11n moves all input methods
5d55446560201599879edf9a7133c74d0a5218bbvboxsync XLOCALEDIR="/usr/share/X11/locale:/usr/X11/share/X11/locale" \
5d55446560201599879edf9a7133c74d0a5218bbvboxsync XLOCALELIBDIR="/usr/lib/X11/locale$(LIBSUBDIR):/usr/X11/lib/X11/locale$(LIBSUBDIR)"
fd5860ffe98b17e6cadfc269b2266f95bce04af9vboxsync# Work around libtool's interference
e352a9803c8b6a6ffba3440c75acadabf47c8e0evboxsync# Use -KPIC instead of -Kpic because we have too many symbols on SPARC
b8c803d8e34dc3a8c019b4f7799cb19c382916b9vboxsync# Need additional mapfile for additional symbols in 64-bit versions
b8c803d8e34dc3a8c019b4f7799cb19c382916b9vboxsyncMODULE_BUILD_64_FLAGS = ADD_libX11_LDFLAGS="-M $(PWD)/mapfile-vers-64"
b8c803d8e34dc3a8c019b4f7799cb19c382916b9vboxsync# pkg-config files that need to have -R added
26ab5559e05ae622734a4047cee975670da3b0e8vboxsync# Regenerate Makefile.in's from Makefile.am's after patching them
26ab5559e05ae622734a4047cee975670da3b0e8vboxsync# Merge in additional sources from sun-src directory
26ab5559e05ae622734a4047cee975670da3b0e8vboxsync# Install additional headers we need in other parts of the build or ship in
cf7a2a65e777b164523f5a5a52a1ac64e4322760vboxsync# packages, but which X.Org doesn't
26ab5559e05ae622734a4047cee975670da3b0e8vboxsyncMODULE_ADD_INSTALL_TARGETS_32 = install_extra_headers
8230e6f6671b538d39c7ef6d8484cf516a983ef4vboxsyncMODULE_ADD_INSTALL_TARGETS = $(MODULE_ADD_INSTALL_TARGETS_$(BUILD_TYPE))
0dce7c2dd6b0e84af789fe319304c7305f1ac960vboxsync# Extra links to libX11 for compatibility with SVID / SPARC ABI / etc.
c43988473d501fd034309ca103548285bd9fa3b2vboxsyncMODULE_X11_LIBCOMPAT_LINKS = libX11.so libX11.so.4 $(EXTRA_LINKS)
3a6db00712f591d771f60db469fd8ea0e7b0ce69vboxsync mkdir -p $(PROTODIR)$(X11_INCLUDES_DIR)/X11/extensions
3a6db00712f591d771f60db469fd8ea0e7b0ce69vboxsync cp -pf sun-src/include/X11/extensions/XInteractive.h \
85e53e311e4a1f30cc4bb620495389d43755a33bvboxsync# Install additional links to libX11 that we include in our packages