Makefile revision 963
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews###############################################################################
990d0e893f5b70e735cdf990af66e9ec6e91fa78Tinderbox User#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# X11 1.x Makefile
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Permission is hereby granted, free of charge, to any person obtaining a
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# copy of this software and associated documentation files (the "Software"),
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# to deal in the Software without restriction, including without limitation
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# the rights to use, copy, modify, merge, publish, distribute, sublicense,
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# and/or sell copies of the Software, and to permit persons to whom the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Software is furnished to do so, subject to the following conditions:
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# The above copyright notice and this permission notice (including the next
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# paragraph) shall be included in all copies or substantial portions of the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Software.
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
e21a2904f02a03fa06b6db04d348f65fe9c67b2bMark Andrews# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# DEALINGS IN THE SOFTWARE.
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater#
c3dc968140ab7f04795acc7835e4e89ccb0c0a27Tinderbox User#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Package name used in tarballs
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsMODULE_NAME=libX11
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Version number (used in path names)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsMODULE_VERSION=1.3.4
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater# Checksums for upstream tarball
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsTARBALL_MD5 = f65c9c7ecbfb64c19dbd7927160d63fd
c3dc968140ab7f04795acc7835e4e89ccb0c0a27Tinderbox UserTARBALL_SHA1 = 5aab6dc8ed5ec0e86419626715efc3edd34d1db4
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Patches to apply to source after unpacking, in order
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsSOURCE_PATCHES = \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews 1234757.patch \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews 4010755.patch \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews 4614834.patch \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews 5039226.patch \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews solaris-abi.patch \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews solaris-kbd.patch \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews SolarisIA.patch \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews 4076297.patch \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews 1261271.patch \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews 6714036.patch \
97e74139b19368e385a3564746d42db70879195eAutomatic Updater 6789219.patch \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews sme.patch \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews im-suneu-greek.patch \
990d0e893f5b70e735cdf990af66e9ec6e91fa78Tinderbox User im-ximcp.patch \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews lc-jisx0212.patch \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews lc-jisx0208.patch \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews lc-ksc5601.1992-3.patch \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews lc-gb18030.patch \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews om-generic.patch \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews compose.dir.patch \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews compose-iso8859-1.patch \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews compose-iso8859-2.patch \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews compose-iso8859-5.patch \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews compose-iso8859-6.patch \
990d0e893f5b70e735cdf990af66e9ec6e91fa78Tinderbox User compose-iso8859-7.patch \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews compose-iso8859-8.patch \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews compose-iso8859-9.patch \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews compose-iso8859-13.patch \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews compose-iso8859-15.patch \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews compose-el_GR.UTF-8.patch \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews compose-en_US.UTF-8.patch \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews compose-ja_JP.UTF-8.patch \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews compose-ko_KR.UTF-8.patch \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews compose-pt_BR.UTF-8.patch \
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic Updater compose-th_TH.UTF-8.patch \
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic Updater compose-zh_CN.UTF-8.patch \
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic Updater compose-zh_HK.UTF-8.patch \
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic Updater compose-zh_TW.UTF-8.patch \
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic Updater locale.aliases.patch \
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic Updater locale.paths.patch \
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic Updater locale-C.patch \
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic Updater locale-iso8859-1.patch \
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic Updater locale-iso8859-6.patch \
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater locale-iso8859-8.patch \
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater locale-en_US.UTF-8.patch \
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater locale-ja.SJIS.patch \
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater locale-ja.patch \
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater locale-ja_JP.UTF-8.patch \
be6c1c506161e6f45fcff5d0425f78801bc267c1Automatic Updater locale-ko.patch \
be6c1c506161e6f45fcff5d0425f78801bc267c1Automatic Updater locale-ko_KR.UTF-8.patch \
be6c1c506161e6f45fcff5d0425f78801bc267c1Automatic Updater locale-th_TH.UTF-8.patch \
be6c1c506161e6f45fcff5d0425f78801bc267c1Automatic Updater locale-zh_CN.UTF-8.patch \
be6c1c506161e6f45fcff5d0425f78801bc267c1Automatic Updater locale-zh_CN.gb18030.patch \
be6c1c506161e6f45fcff5d0425f78801bc267c1Automatic Updater locale-zh_HK.UTF-8.patch \
be6c1c506161e6f45fcff5d0425f78801bc267c1Automatic Updater locale-zh_TW.UTF-8.patch \
be6c1c506161e6f45fcff5d0425f78801bc267c1Automatic Updater locale-zh_TW.patch \
dba3c818ae00b10388d31703e86a28415db398acTinderbox User locale-ru-RU.UTF-8.patch
43b94483957d3168796a816ed86cf097518817dcTinderbox User
be6c1c506161e6f45fcff5d0425f78801bc267c1Automatic Updater# Library name (used for specfiles/mapfiles)
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic UpdaterLIBNAME=X11
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic Updater
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic Updater# Man pages to apply Sun footer to & attributes to list
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic UpdaterSUNTOUCHED_MANPAGES=man/*.man man/xkb/*.man
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic UpdaterSUN_PACKAGE=SUNWxwplt
64affc54f96a2c71cbd10ed71e246ce0746259aaAutomatic UpdaterMODULE_STABILITY=Committed
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic UpdaterLIB_MAN_SUFFIX=3X11
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater# Command line options to GNU autoconf configure script
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterMODULE_CONFIG_OPTS = --enable-xthreads --enable-loadable-i18n \
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater --disable-specs \
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater --with-xcb=no --enable-loadable-xcursor --enable-xcms \
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater --enable-xlocaledir --enable-xkb --enable-man-pages=$(LIB_MAN_SUFFIX) \
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater --with-locale-lib-dir='$${exec_prefix}/lib/X11/locale$(LIBSUBDIR)'
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater# -xF is needed for mapfile reordering to work
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterMODULE_CFLAGS = -xF
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# -DSUNSOFT enables SUN_SME (Shared Memory transport extension)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# -DMOTIFBC enables compatibility with bugs in Motif & other apps
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# -DSUNSOFT_KBD enables Solaris traditional keyboard handling
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsMODULE_CPPFLAGS = -DSUNSOFT -DMOTIFBC -DSUNSOFT_KBD
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Backwards compatibility for old paths until g11n moves all input methods
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsMODULE_CONFIG_ENV = \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews XLOCALEDIR="/usr/share/X11/locale:/usr/X11/share/X11/locale" \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews XLOCALELIBDIR="/usr/lib/X11/locale$(LIBSUBDIR):/usr/X11/lib/X11/locale$(LIBSUBDIR)"
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Work around libtool's interference
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsDELIBTOOLIZE=yes
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Use -KPIC instead of -Kpic because we have too many symbols on SPARC
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsDELIBTOOLIZE_FLAGS_sparc = -P
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsDELIBTOOLIZE_FLAGS_i386 =
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsDELIBTOOLIZE_FLAGS = $(DELIBTOOLIZE_FLAGS_$(MACH))
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Need additional mapfile for additional symbols in 64-bit versions
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsMODULE_BUILD_64_FLAGS = ADD_libX11_LDFLAGS="-M $(PWD)/mapfile-vers-64"
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# pkg-config files that need to have -R added
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsFIX_PC_FILES=x11.pc.in
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Regenerate Makefile.in's from Makefile.am's after patching them
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsAUTORECONF=yes
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Merge in additional sources from sun-src directory
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsADDITIONAL_SOURCE_DIR=sun-src
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic Updater# Install additional headers we need in other parts of the build or ship in
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic Updater# packages, but which X.Org doesn't
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsMODULE_ADD_INSTALL_TARGETS_32 = install_extra_headers
60a900e83bab52c3f023be66654f3ab023172778Automatic UpdaterMODULE_ADD_INSTALL_TARGETS = $(MODULE_ADD_INSTALL_TARGETS_$(BUILD_TYPE))
60a900e83bab52c3f023be66654f3ab023172778Automatic Updater
60a900e83bab52c3f023be66654f3ab023172778Automatic Updater# Install additional links to libX11 that we include in our packages
60a900e83bab52c3f023be66654f3ab023172778Automatic UpdaterMODULE_ADD_INSTALL_TARGETS += install_extra_links
60a900e83bab52c3f023be66654f3ab023172778Automatic Updater
60a900e83bab52c3f023be66654f3ab023172778Automatic Updaterinclude ../Makefile.inc
60a900e83bab52c3f023be66654f3ab023172778Automatic Updater
60a900e83bab52c3f023be66654f3ab023172778Automatic Updaterinstall_extra_headers: $(INSTALL_DEPS)
60a900e83bab52c3f023be66654f3ab023172778Automatic Updater mkdir -p $(PROTODIR)$(X11_INCLUDES_DIR)/X11/extensions
60a900e83bab52c3f023be66654f3ab023172778Automatic Updater cp -pf sun-src/include/X11/Xvarargs.h \
60a900e83bab52c3f023be66654f3ab023172778Automatic Updater $(PROTODIR)$(X11_INCLUDES_DIR)/X11/
60a900e83bab52c3f023be66654f3ab023172778Automatic Updater cp -pf sun-src/include/X11/extensions/XInteractive.h \
60a900e83bab52c3f023be66654f3ab023172778Automatic Updater $(PROTODIR)$(X11_INCLUDES_DIR)/X11/extensions/
60a900e83bab52c3f023be66654f3ab023172778Automatic Updater cp -pf $(SOURCE_DIR)/src/xlibi18n/Xlc*.h \
60a900e83bab52c3f023be66654f3ab023172778Automatic Updater $(PROTODIR)$(X11_INCLUDES_DIR)/X11/
60a900e83bab52c3f023be66654f3ab023172778Automatic Updater
60a900e83bab52c3f023be66654f3ab023172778Automatic Updater# Extra links to libX11 for compatibility with SVID / SPARC ABI / etc.
60a900e83bab52c3f023be66654f3ab023172778Automatic UpdaterEXTRA_LINKS = libX.so libX.so.4 libX11.so.5
60a900e83bab52c3f023be66654f3ab023172778Automatic UpdaterEXTRA_PROTO_LINKS = $(EXTRA_LINKS:%=$(PROTODIR)$(MODULE_PREFIX)/lib$(ARCHLIBSUBDIR)/%)
60a900e83bab52c3f023be66654f3ab023172778Automatic Updater
60a900e83bab52c3f023be66654f3ab023172778Automatic Updater$(EXTRA_PROTO_LINKS): $(INSTALL_DEPS)
60a900e83bab52c3f023be66654f3ab023172778Automatic Updater @rm -f $@
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews ln -s libX11.so.4 $@
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinstall_extra_links: $(EXTRA_PROTO_LINKS)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews