Makefile revision 943
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin###############################################################################
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# X11 1.x Makefile
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Permission is hereby granted, free of charge, to any person obtaining a
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# copy of this software and associated documentation files (the "Software"),
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# to deal in the Software without restriction, including without limitation
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# the rights to use, copy, modify, merge, publish, distribute, sublicense,
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# and/or sell copies of the Software, and to permit persons to whom the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Software is furnished to do so, subject to the following conditions:
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# The above copyright notice and this permission notice (including the next
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# paragraph) shall be included in all copies or substantial portions of the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Software.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# DEALINGS IN THE SOFTWARE.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Package name used in tarballs
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinMODULE_NAME=libX11
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Version number (used in path names)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinMODULE_VERSION=1.3.2
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Checksums for upstream tarball
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinTARBALL_MD5 = 001d780829f936e34851ef7cd37b4dfd
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinTARBALL_SHA1 = d4b3966d8eeb79514daad3eeae0debf65d16edca
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Patches to apply to source after unpacking, in order
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinSOURCE_PATCHES = \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin lintlib.patch,-p1 \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin 1234757.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin 4010755.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin 4614834.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin 5039226.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin solaris-abi.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin solaris-kbd.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin SolarisIA.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin 4076297.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin 1261271.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin 6714036.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin 6789219.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin sme.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin im-suneu-greek.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin im-ximcp.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin lc-jisx0212.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin lc-jisx0208.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin lc-ksc5601.1992-3.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin lc-gb18030.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin om-generic.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin compose.dir.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin compose-iso8859-1.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin compose-iso8859-2.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin compose-iso8859-5.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin compose-iso8859-6.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin compose-iso8859-7.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin compose-iso8859-8.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin compose-iso8859-9.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin compose-iso8859-13.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin compose-iso8859-15.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin compose-el_GR.UTF-8.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin compose-en_US.UTF-8.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin compose-ja_JP.UTF-8.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin compose-ko_KR.UTF-8.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin compose-pt_BR.UTF-8.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin compose-th_TH.UTF-8.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin compose-zh_CN.UTF-8.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin compose-zh_HK.UTF-8.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin compose-zh_TW.UTF-8.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin locale.aliases.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin locale.paths.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin locale-C.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin locale-iso8859-1.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin locale-iso8859-6.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin locale-iso8859-8.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin locale-en_US.UTF-8.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin locale-ja.SJIS.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin locale-ja.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin locale-ja_JP.UTF-8.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin locale-ko.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin locale-ko_KR.UTF-8.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin locale-th_TH.UTF-8.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin locale-zh_CN.UTF-8.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin locale-zh_CN.gb18030.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin locale-zh_HK.UTF-8.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin locale-zh_TW.UTF-8.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin locale-zh_TW.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin locale-ru-RU.UTF-8.patch \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin 6913809.patch
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Library name (used for specfiles/mapfiles)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinLIBNAME=X11
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Man pages to apply Sun footer to & attributes to list
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinSUNTOUCHED_MANPAGES=man/*.man man/xkb/*.man
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinSUN_PACKAGE=SUNWxwplt
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinMODULE_STABILITY=Committed
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinLIB_MAN_SUFFIX=3X11
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Command line options to GNU autoconf configure script
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinMODULE_CONFIG_OPTS = --enable-xthreads --enable-loadable-i18n \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin --disable-specs \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin --with-xcb=no --enable-loadable-xcursor --enable-xcms \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin --enable-xlocaledir --enable-xkb --enable-man-pages=$(LIB_MAN_SUFFIX) \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin --with-locale-lib-dir='$${exec_prefix}/lib/X11/locale$(LIBSUBDIR)'
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# -xF is needed for mapfile reordering to work
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinMODULE_CFLAGS = -xF
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# -DSUNSOFT enables SUN_SME (Shared Memory transport extension)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# -DMOTIFBC enables compatibility with bugs in Motif & other apps
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# -DSUNSOFT_KBD enables Solaris traditional keyboard handling
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinMODULE_CPPFLAGS = -DSUNSOFT -DMOTIFBC -DSUNSOFT_KBD
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Backwards compatibility for old paths until g11n moves all input methods
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinMODULE_CONFIG_ENV = \
XLOCALEDIR="/usr/share/X11/locale:/usr/X11/share/X11/locale" \
XLOCALELIBDIR="/usr/lib/X11/locale$(LIBSUBDIR):/usr/X11/lib/X11/locale$(LIBSUBDIR)"
# Work around libtool's interference
DELIBTOOLIZE=yes
# Use -KPIC instead of -Kpic because we have too many symbols on SPARC
DELIBTOOLIZE_FLAGS_sparc = -P
DELIBTOOLIZE_FLAGS_i386 =
DELIBTOOLIZE_FLAGS = $(DELIBTOOLIZE_FLAGS_$(MACH))
# Need additional mapfile for additional symbols in 64-bit versions
MODULE_BUILD_64_FLAGS = ADD_libX11_LDFLAGS="-M $(PWD)/mapfile-vers-64"
# pkg-config files that need to have -R added
FIX_PC_FILES=x11.pc.in
# Regenerate Makefile.in's from Makefile.am's after patching them
AUTORECONF=yes
# Merge in additional sources from sun-src directory
ADDITIONAL_SOURCE_DIR=sun-src
# Install additional headers we need in other parts of the build or ship in
# packages, but which X.Org doesn't
MODULE_ADD_INSTALL_TARGETS_32 = install_extra_headers
MODULE_ADD_INSTALL_TARGETS = $(MODULE_ADD_INSTALL_TARGETS_$(BUILD_TYPE))
include ../Makefile.inc
install_extra_headers: $(INSTALL_DEPS)
mkdir -p $(PROTODIR)$(X11_INCLUDES_DIR)/X11/extensions
cp -pf sun-src/include/X11/Xvarargs.h \
$(PROTODIR)$(X11_INCLUDES_DIR)/X11/
cp -pf sun-src/include/X11/extensions/XInteractive.h \
$(PROTODIR)$(X11_INCLUDES_DIR)/X11/extensions/
cp -pf $(SOURCE_DIR)/src/xlibi18n/Xlc*.h \
$(PROTODIR)$(X11_INCLUDES_DIR)/X11/