Makefile revision 999
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein###############################################################################
75c0816e8295e180f4bc7f10db3d0d880383bc1cMark Andrews# X11 1.x Makefile
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# 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
cedb0bd0c1e3c461b7e479a16d3adfd5b150f1f4Mark 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
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Version number (used in path names)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Checksums for upstream tarball
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinTARBALL_SHA1 = c5dda2b6279f3e3267646576138fcd091a7f3c54
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Patches to apply to source after unpacking, in order
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Library name (used for specfiles/mapfiles)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# ARC cases that covered this module
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# PSARC/1992/077 X11/R5 Xlib API
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# PSARC/1992/082 Dynamic Locale Access For X11/R5 Xlib
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# PSARC/1997/141 Sym links needed in /usr/lib for SPARC ABI compliance
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# PSARC/2006/448 UTF8_STRING support in Solaris libX11 and XLC modules
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# PSARC/2008/062 Porting of Xorg XI18N
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# PSARC/2009/666 libX11 1.3
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# 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 \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein --with-xcb=no --enable-loadable-xcursor --enable-xcms \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein --enable-xlocaledir --enable-xkb --enable-man-pages=$(LIB_MAN_SUFFIX) \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein --with-locale-lib-dir='$${exec_prefix}/lib/X11/locale$(LIBSUBDIR)'
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# -xF is needed for mapfile reordering to work
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# -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
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinMODULE_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)"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# 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
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Merge in additional sources from sun-src directory
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Install additional headers we need in other parts of the build or ship in
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# packages, but which X.Org doesn't
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsMODULE_ADD_INSTALL_TARGETS_32 = install_extra_headers
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsMODULE_ADD_INSTALL_TARGETS = $(MODULE_ADD_INSTALL_TARGETS_$(BUILD_TYPE))
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Extra links to libX11 for compatibility with SVID / SPARC ABI / etc.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsMODULE_ADD_INSTALL_TARGETS += install_extra_links
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Compatibility links from /usr/X11/lib to /usr/lib
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsMODULE_X11_LIBCOMPAT_LINKS = libX11.so libX11.so.4 $(EXTRA_LINKS)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein mkdir -p $(PROTODIR)$(X11_INCLUDES_DIR)/X11/extensions
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein cp -pf sun-src/include/X11/extensions/XInteractive.h \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Install additional links to libX11 that we include in our packages