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