Makefile revision 824
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync###############################################################################
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync#
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync# X11 1.x Makefile
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync#
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync# Use is subject to license terms.
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync#
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync# Permission is hereby granted, free of charge, to any person obtaining a
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync# copy of this software and associated documentation files (the
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync# "Software"), to deal in the Software without restriction, including
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync# without limitation the rights to use, copy, modify, merge, publish,
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync# distribute, and/or sell copies of the Software, and to permit persons
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync# to whom the Software is furnished to do so, provided that the above
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync# copyright notice(s) and this permission notice appear in all copies of
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync# the Software and that both the above copyright notice(s) and this
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync# permission notice appear in supporting documentation.
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync#
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync#
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync# Except as contained in this notice, the name of a copyright holder
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync# shall not be used in advertising or otherwise to promote the sale, use
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync# or other dealings in this Software without prior written authorization
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync# of the copyright holder.
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync#
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync# ident "@(#)Makefile 1.25 09/10/21 SMI"
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync#
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync# Package name used in tarballs
1b33c96954667ba382fa595baf7b31290bfdd517vboxsyncMODULE_NAME=libX11
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync# Version number (used in path names)
1b33c96954667ba382fa595baf7b31290bfdd517vboxsyncMODULE_VERSION=1.2.1
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync# Patches to apply to source after unpacking, in order
1b33c96954667ba382fa595baf7b31290bfdd517vboxsyncSOURCE_PATCHES = \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync compose-masculine.patch,-p1 \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync locale-fi_FI.UTF-8.patch,-p1 \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync 1234757.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync 4010755.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync 4614834.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync 5039226.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync solaris-abi.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync solaris-kbd.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync SolarisIA.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync 4076297.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync 1261271.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync 6714036.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync 6789219.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync sme.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync im-suneu-greek.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync im-ximcp.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync lc-jisx0212.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync lc-jisx0208.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync lc-ksc5601.1992-3.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync lc-gb18030.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync om-generic.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync compose.dir.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync compose-iso8859-1.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync compose-iso8859-2.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync compose-iso8859-5.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync compose-iso8859-6.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync compose-iso8859-7.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync compose-iso8859-8.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync compose-iso8859-9.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync compose-iso8859-13.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync compose-iso8859-15.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync compose-el_GR.UTF-8.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync compose-en_US.UTF-8.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync compose-ja_JP.UTF-8.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync compose-ko_KR.UTF-8.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync compose-pt_BR.UTF-8.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync compose-th_TH.UTF-8.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync compose-zh_CN.UTF-8.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync compose-zh_HK.UTF-8.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync compose-zh_TW.UTF-8.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync locale.aliases.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync locale-C.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync locale-iso8859-1.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync locale-iso8859-6.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync locale-iso8859-8.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync locale-en_US.UTF-8.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync locale-ja.SJIS.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync locale-ja.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync locale-ja_JP.UTF-8.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync locale-ko.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync locale-ko_KR.UTF-8.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync locale-th_TH.UTF-8.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync locale-zh_CN.UTF-8.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync locale-zh_CN.gb18030.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync locale-zh_HK.UTF-8.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync locale-zh_TW.UTF-8.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync locale-zh_TW.patch \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync locale-ru-RU.UTF-8.patch
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync# Library name (used for specfiles/mapfiles)
1b33c96954667ba382fa595baf7b31290bfdd517vboxsyncLIBNAME=X11
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync# Man pages to apply Sun footer to & attributes to list
1b33c96954667ba382fa595baf7b31290bfdd517vboxsyncSUNTOUCHED_MANPAGES=man/*.man man/xkb/*.man
1b33c96954667ba382fa595baf7b31290bfdd517vboxsyncSUN_PACKAGE=SUNWxwplt
1b33c96954667ba382fa595baf7b31290bfdd517vboxsyncMODULE_STABILITY=Committed
1b33c96954667ba382fa595baf7b31290bfdd517vboxsyncLIB_MAN_SUFFIX=3X11
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync# Command line options to GNU autoconf configure script
1b33c96954667ba382fa595baf7b31290bfdd517vboxsyncMODULE_CONFIG_OPTS = --enable-xthreads --enable-loadable-i18n \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync --with-xcb=no --enable-loadable-xcursor --enable-xcms \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync --enable-xlocaledir --enable-xkb --enable-man-pages=$(LIB_MAN_SUFFIX) \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync --with-locale-lib-dir='$${exec_prefix}/lib/X11/locale$(LIBSUBDIR)'
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync# -xF is needed for mapfile reordering to work
1b33c96954667ba382fa595baf7b31290bfdd517vboxsyncMODULE_CFLAGS = -xF
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync# -DSUNSOFT enables SUN_SME (Shared Memory transport extension)
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync# -DMOTIFBC enables compatibility with bugs in Motif & other apps
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync# -DSUNSOFT_KBD enables Solaris traditional keyboard handling
1b33c96954667ba382fa595baf7b31290bfdd517vboxsyncMODULE_CPPFLAGS = -DSUNSOFT -DMOTIFBC -DSUNSOFT_KBD
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync# Work around libtool's interference
1b33c96954667ba382fa595baf7b31290bfdd517vboxsyncDELIBTOOLIZE=yes
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync# Use -KPIC instead of -Kpic because we have too many symbols on SPARC
1b33c96954667ba382fa595baf7b31290bfdd517vboxsyncDELIBTOOLIZE_FLAGS_sparc = -P
1b33c96954667ba382fa595baf7b31290bfdd517vboxsyncDELIBTOOLIZE_FLAGS_i386 =
1b33c96954667ba382fa595baf7b31290bfdd517vboxsyncDELIBTOOLIZE_FLAGS = $(DELIBTOOLIZE_FLAGS_$(MACH))
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync# Need additional mapfile for additional symbols in 64-bit versions
1b33c96954667ba382fa595baf7b31290bfdd517vboxsyncMODULE_BUILD_64_FLAGS = ADD_libX11_LDFLAGS="-M $(PWD)/mapfile-vers-64"
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync# pkg-config files that need to have -R added
1b33c96954667ba382fa595baf7b31290bfdd517vboxsyncFIX_PC_FILES=x11.pc.in
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync# Regenerate Makefile.in's from Makefile.am's after patching them
1b33c96954667ba382fa595baf7b31290bfdd517vboxsyncAUTORECONF=yes
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync# Merge in additional sources from sun-src directory
1b33c96954667ba382fa595baf7b31290bfdd517vboxsyncADDITIONAL_SOURCE_DIR=sun-src
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync
1b33c96954667ba382fa595baf7b31290bfdd517vboxsyncinclude ../Makefile.inc
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync# Install additional headers we need in other parts of the build or ship in
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync# packages, but which X.Org doesn't
1b33c96954667ba382fa595baf7b31290bfdd517vboxsyncinstall_32:: build_32
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync mkdir -p $(PROTODIR)/usr/X11/include/X11/extensions
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync cp -pf sun-src/include/X11/Xvarargs.h $(PROTODIR)/usr/X11/include/X11/
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync cp -pf sun-src/include/X11/extensions/XInteractive.h \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync $(PROTODIR)/usr/X11/include/X11/extensions/
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync cp -pf $(BUILD_DIR_32)$(SOURCE_DIR)/src/ks_tables.h \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync $(PROTODIR)/usr/X11/include/
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync cp -pf $(BUILD_DIR_32)$(SOURCE_DIR)/src/xlibi18n/Xlc*.h \
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync $(PROTODIR)/usr/X11/include/X11/
1b33c96954667ba382fa595baf7b31290bfdd517vboxsync