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