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