Makefile revision 969
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein###############################################################################
75c0816e8295e180f4bc7f10db3d0d880383bc1cMark Andrews# X11 1.x Makefile
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Permission is hereby granted, free of charge, to any person obtaining a
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# copy of this software and associated documentation files (the "Software"),
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# to deal in the Software without restriction, including without limitation
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# the rights to use, copy, modify, merge, publish, distribute, sublicense,
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# and/or sell copies of the Software, and to permit persons to whom the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Software is furnished to do so, subject to the following conditions:
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# The above copyright notice and this permission notice (including the next
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# paragraph) shall be included in all copies or substantial portions of the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
e21a2904f02a03fa06b6db04d348f65fe9c67b2bMark Andrews# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# DEALINGS IN THE SOFTWARE.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Package name used in tarballs
71c66a876ecca77923638d3f94cc0783152b2f03Mark Andrews# Version number (used in path names)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Checksums for upstream tarball
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinTARBALL_SHA1 = 5aab6dc8ed5ec0e86419626715efc3edd34d1db4
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Patches to apply to source after unpacking, in order
27963ad22062efe8eac2beed51ff70d8f0b35900Tinderbox User# Library name (used for specfiles/mapfiles)
27963ad22062efe8eac2beed51ff70d8f0b35900Tinderbox User# Man pages to apply Sun footer to & attributes to list
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Command line options to GNU autoconf configure script
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinMODULE_CONFIG_OPTS = --enable-xthreads --enable-loadable-i18n \
71c66a876ecca77923638d3f94cc0783152b2f03Mark Andrews --with-xcb=no --enable-loadable-xcursor --enable-xcms \
71c66a876ecca77923638d3f94cc0783152b2f03Mark Andrews --enable-xlocaledir --enable-xkb --enable-man-pages=$(LIB_MAN_SUFFIX) \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein --with-locale-lib-dir='$${exec_prefix}/lib/X11/locale$(LIBSUBDIR)'
71c66a876ecca77923638d3f94cc0783152b2f03Mark Andrews# -xF is needed for mapfile reordering to work
71c66a876ecca77923638d3f94cc0783152b2f03Mark Andrews# -DSUNSOFT enables SUN_SME (Shared Memory transport extension)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# -DMOTIFBC enables compatibility with bugs in Motif & other apps
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# -DSUNSOFT_KBD enables Solaris traditional keyboard handling
71c66a876ecca77923638d3f94cc0783152b2f03Mark AndrewsMODULE_CPPFLAGS = -DSUNSOFT -DMOTIFBC -DSUNSOFT_KBD
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinMODULE_LDFLAGS = -R$(X11_LIB_DIR)$(ARCHLIBSUBDIR)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Backwards compatibility for old paths until g11n moves all input methods
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein XLOCALEDIR="/usr/share/X11/locale:/usr/X11/share/X11/locale" \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein XLOCALELIBDIR="/usr/lib/X11/locale$(LIBSUBDIR):/usr/X11/lib/X11/locale$(LIBSUBDIR)"
71c66a876ecca77923638d3f94cc0783152b2f03Mark Andrews# Work around libtool's interference
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Use -KPIC instead of -Kpic because we have too many symbols on SPARC
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinDELIBTOOLIZE_FLAGS = $(DELIBTOOLIZE_FLAGS_$(MACH))
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Need additional mapfile for additional symbols in 64-bit versions
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinMODULE_BUILD_64_FLAGS = ADD_libX11_LDFLAGS="-M $(PWD)/mapfile-vers-64"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# pkg-config files that need to have -R added
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Regenerate Makefile.in's from Makefile.am's after patching them
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Merge in additional sources from sun-src directory
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Install additional headers we need in other parts of the build or ship in
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# packages, but which X.Org doesn't
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinMODULE_ADD_INSTALL_TARGETS_32 = install_extra_headers
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinMODULE_ADD_INSTALL_TARGETS = $(MODULE_ADD_INSTALL_TARGETS_$(BUILD_TYPE))
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Install additional links to libX11 that we include in our packages
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinMODULE_ADD_INSTALL_TARGETS += install_extra_links
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein mkdir -p $(PROTODIR)$(X11_INCLUDES_DIR)/X11/extensions
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein cp -pf sun-src/include/X11/extensions/XInteractive.h \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Extra links to libX11 for compatibility with SVID / SPARC ABI / etc.