Makefile revision 1451
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont###############################################################################
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Copyright (c) 2008, 2014, Oracle and/or its affiliates. All rights reserved.
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater# Permission is hereby granted, free of charge, to any person obtaining a
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# copy of this software and associated documentation files (the "Software"),
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# to deal in the Software without restriction, including without limitation
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# the rights to use, copy, modify, merge, publish, distribute, sublicense,
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# and/or sell copies of the Software, and to permit persons to whom the
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Software is furnished to do so, subject to the following conditions:
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# The above copyright notice and this permission notice (including the next
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# paragraph) shall be included in all copies or substantial portions of the
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# DEALINGS IN THE SOFTWARE.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Package name used in tarballs
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Version number (used in path names)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Checksums for upstream tarball
50066670817cdf9e86c832066d73715232b29680Tinderbox UserTARBALL_MD5 = c35d6ad95b06635a524579e88622fdb5
2a31bd531072824ef252c18303859d6af7451b00Francis DupontTARBALL_SHA1 = 0dd74854e6f6bb8a322e88ba3e89f87c3dcf9e08
2a31bd531072824ef252c18303859d6af7451b00Francis DupontTARBALL_SHA256= 2aa027e837231d2eeea90f3a4afe19948a6eb4c8b2bec0241eba7dbc8106bd16
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Patches to apply to source after unpacking, in order
2a6d4c9948b3f4f31311bd799d114585a30419a9Automatic Updater# Library name (used for specfiles/mapfiles)
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User# Dates to show in Oracle copyright notice in pkg license file
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User# Earliest & latest of the copyrights in the Oracle files in this pkg
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic Updater# ARC cases that covered this module
6ea2385360e9e2167e65f9286447da9eea189457Tinderbox User# PSARC/1992/077 X11/R5 Xlib API
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User# PSARC/1992/082 Dynamic Locale Access For X11/R5 Xlib
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# PSARC/1997/141 Sym links needed in /usr/lib for SPARC ABI compliance
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User# PSARC/2006/448 UTF8_STRING support in Solaris libX11 and XLC modules
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User# PSARC/2008/062 Porting of Xorg XI18N
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User# PSARC/2009/666 libX11 1.3
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# PSARC/2010/109 Introduce libXcb in Solaris
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Man pages to apply Sun footer to & attributes to list
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User# Command line options to GNU autoconf configure script
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox UserMODULE_CONFIG_OPTS = --enable-xthreads --enable-loadable-i18n \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User --with-xcb=yes --enable-loadable-xcursor --enable-xcms \
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User --enable-xlocaledir --enable-xkb --enable-man-pages=$(LIB_MAN_SUFFIX) \
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User --with-locale-lib-dir='$${exec_prefix}/lib/X11/locale$(LIBSUBDIR)'
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User# -xF is needed for mapfile reordering to work
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User# -DSUNSOFT enables Solaris extensions
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User# -DMOTIFBC enables compatibility with bugs in Motif & other apps
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# -DSUNSOFT_KBD enables Solaris traditional keyboard handling
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox UserMODULE_CPPFLAGS = -DSUNSOFT -DMOTIFBC -DSUNSOFT_KBD \
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox UserMODULE_LDFLAGS = -R$(X11_LIB_DIR)$(ARCHLIBSUBDIR)
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User# Need to discard -lc in .so's that don't need it, but leave it for those
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User# which do need to link to it.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Backwards compatibility for old paths until g11n moves all input methods
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User XLOCALEDIR="/usr/share/X11/locale:/usr/X11/share/X11/locale" \
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User XLOCALELIBDIR="/usr/lib/X11/locale$(LIBSUBDIR):/usr/X11/lib/X11/locale$(LIBSUBDIR)"
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User# Work around libtool's interference
c7d32c0b0ff4c01f0d4479af3410d3c06044d48aAutomatic Updater# Use -KPIC instead of -Kpic because we have too many symbols on SPARC
c7d32c0b0ff4c01f0d4479af3410d3c06044d48aAutomatic Updater# Need additional mapfile for additional symbols in 64-bit versions
c7d32c0b0ff4c01f0d4479af3410d3c06044d48aAutomatic UpdaterMODULE_BUILD_64_FLAGS = ADD_libX11_LDFLAGS="-M $(PWD)/mapfile-vers-64"
c7d32c0b0ff4c01f0d4479af3410d3c06044d48aAutomatic Updater# pkg-config files that need to be updated
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Regenerate Makefile.in's from Makefile.am's after patching them
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User# Merge in additional sources from sun-src directory
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User# Install additional headers we need in other parts of the build or ship in
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User# packages, but which X.Org doesn't
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox UserMODULE_ADD_INSTALL_TARGETS_32 = install_extra_headers
f8e3e03cacd16ffb923a9603fca23a9e1a1fee07Automatic UpdaterMODULE_ADD_INSTALL_TARGETS = $(MODULE_ADD_INSTALL_TARGETS_$(BUILD_TYPE))
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User# Extra links to libX11 for compatibility with SVID / SPARC ABI / etc.
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox UserMODULE_ADD_INSTALL_TARGETS += install_extra_links
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Compatibility links from /usr/X11/lib to /usr/lib
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox UserMODULE_X11_LIBCOMPAT_LINKS = libX11.so libX11.so.4 $(EXTRA_LINKS)
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User mkdir -p $(PROTODIR)$(X11_INCLUDES_DIR)/X11/extensions
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User cp -pf sun-src/include/X11/extensions/XInteractive.h \
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User $(PROTODIR)$(X11_INCLUDES_DIR)/X11/extensions/
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User# Install additional links to libX11 that we include in our packages