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