Makefile revision 1345
280a8a0544b4aeb52414d20e8c6e6c5b1108562eTinderbox User###############################################################################
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved.
c7fd128f8ea8a527fe27c1b95ab46df7155bc8e4Tinderbox User# Permission is hereby granted, free of charge, to any person obtaining a
1f9754245cbd5eec2d2a667bb292f62f72386d4bMark Andrews# copy of this software and associated documentation files (the "Software"),
59663800d2ec04777dae2791dd92aa563faf94c8Evan Hunt# to deal in the Software without restriction, including without limitation
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# the rights to use, copy, modify, merge, publish, distribute, sublicense,
1f9754245cbd5eec2d2a667bb292f62f72386d4bMark Andrews# and/or sell copies of the Software, and to permit persons to whom the
59663800d2ec04777dae2791dd92aa563faf94c8Evan Hunt# Software is furnished to do so, subject to the following conditions:
0726d872f6f36901ea09321df57084614e5bb6faTinderbox User# The above copyright notice and this permission notice (including the next
1ca2cf024391992fe14b2df7d3ae0f575d074452Evan Hunt# paragraph) shall be included in all copies or substantial portions of the
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# DEALINGS IN THE SOFTWARE.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Package name used in tarballs
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Version number (used in path names)
415d630b6309922caee8469384a6fab75cf05032Mark Andrews# Checksums for upstream tarball
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox UserTARBALL_SHA1 = 8177535c9c59d8c3ab98d55ce53520b5737ccd1a
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsTARBALL_SHA256= c382efd7e92bfc3cef39a4b7f1ecf2744ba4414a705e3bc1e697f75502bd4d86
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews# Patches to apply to source after unpacking, in order
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Patches from May 2013 security alert - will be integrated into libX11 1.6
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Library name (used for specfiles/mapfiles)
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User# Dates to show in Oracle copyright notice in pkg license file
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User# Earliest & latest of the copyrights in the Oracle files in this pkg
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# ARC cases that covered this module
415d630b6309922caee8469384a6fab75cf05032Mark Andrews# PSARC/1992/077 X11/R5 Xlib API
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User# PSARC/1992/082 Dynamic Locale Access For X11/R5 Xlib
415d630b6309922caee8469384a6fab75cf05032Mark Andrews# PSARC/1997/141 Sym links needed in /usr/lib for SPARC ABI compliance
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrews# PSARC/2006/448 UTF8_STRING support in Solaris libX11 and XLC modules
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# PSARC/2008/062 Porting of Xorg XI18N
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# PSARC/2009/666 libX11 1.3
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrews# PSARC/2010/109 Introduce libXcb in Solaris
415d630b6309922caee8469384a6fab75cf05032Mark Andrews# Man pages to apply Sun footer to & attributes to list
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonSUNTOUCHED_MANPAGES=man/*.man man/xkb/*.man
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# Command line options to GNU autoconf configure script
28a5dd720187fddb16055a0f64b63a7b66f29f64Mark AndrewsMODULE_CONFIG_OPTS = --enable-xthreads --enable-loadable-i18n \
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews --with-xcb=yes --enable-loadable-xcursor --enable-xcms \
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews --enable-xlocaledir --enable-xkb --enable-man-pages=$(LIB_MAN_SUFFIX) \
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews --with-locale-lib-dir='$${exec_prefix}/lib/X11/locale$(LIBSUBDIR)'
fec6e13f2d1e69fe1c2b8fac36f732f124cf5398Mark Andrews# -xF is needed for mapfile reordering to work
fec6e13f2d1e69fe1c2b8fac36f732f124cf5398Mark Andrews# -DSUNSOFT enables Solaris extensions
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# -DMOTIFBC enables compatibility with bugs in Motif & other apps
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# -DSUNSOFT_KBD enables Solaris traditional keyboard handling
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsMODULE_CPPFLAGS = -DSUNSOFT -DMOTIFBC -DSUNSOFT_KBD \
8f4e6ea383aa9a953c0adb5be6c4d8dc8dbd5c4aWitold KrecickiMODULE_LDFLAGS = -R$(X11_LIB_DIR)$(ARCHLIBSUBDIR)
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews# Need to ignore extra libraries like -lsocket & -lnsl in i18n modules
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews# Backwards compatibility for old paths until g11n moves all input methods
7f9e2fff07b9c17e0d7a0ea7abc9304ce9d01b61Tinderbox User XLOCALEDIR="/usr/share/X11/locale:/usr/X11/share/X11/locale" \
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews XLOCALELIBDIR="/usr/lib/X11/locale$(LIBSUBDIR):/usr/X11/lib/X11/locale$(LIBSUBDIR)"
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Work around libtool's interference
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Use -KPIC instead of -Kpic because we have too many symbols on SPARC
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsDELIBTOOLIZE_FLAGS = $(DELIBTOOLIZE_FLAGS_$(MACH))
361967ea970ea8f0ef8875e769505ecdac74bfb0Tinderbox User# Need additional mapfile for additional symbols in 64-bit versions
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsMODULE_BUILD_64_FLAGS = ADD_libX11_LDFLAGS="-M $(PWD)/mapfile-vers-64"
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater# pkg-config files that need to have -R added
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# Regenerate Makefile.in's from Makefile.am's after patching them
415d630b6309922caee8469384a6fab75cf05032Mark Andrews# Merge in additional sources from sun-src directory
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# Install additional headers we need in other parts of the build or ship in
415d630b6309922caee8469384a6fab75cf05032Mark Andrews# packages, but which X.Org doesn't
fa0326cc2cf428f67575b6ba3b97b528a31b0010Tinderbox UserMODULE_ADD_INSTALL_TARGETS_32 = install_extra_headers
415d630b6309922caee8469384a6fab75cf05032Mark AndrewsMODULE_ADD_INSTALL_TARGETS = $(MODULE_ADD_INSTALL_TARGETS_$(BUILD_TYPE))
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User# Extra links to libX11 for compatibility with SVID / SPARC ABI / etc.
415d630b6309922caee8469384a6fab75cf05032Mark AndrewsMODULE_ADD_INSTALL_TARGETS += install_extra_links
415d630b6309922caee8469384a6fab75cf05032Mark Andrews# Compatibility links from /usr/X11/lib to /usr/lib
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark AndrewsMODULE_X11_LIBCOMPAT_LINKS = libX11.so libX11.so.4 $(EXTRA_LINKS)
415d630b6309922caee8469384a6fab75cf05032Mark Andrews mkdir -p $(PROTODIR)$(X11_INCLUDES_DIR)/X11/extensions
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews cp -pf sun-src/include/X11/extensions/XInteractive.h \
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater cp -pf $(SOURCE_DIR)/src/xlibi18n/Xlc*.h \
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User# Install additional links to libX11 that we include in our packages