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