Makefile revision 969
341N/A###############################################################################
341N/A#
341N/A# X11 1.x Makefile
341N/A#
943N/A# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
341N/A#
341N/A# Permission is hereby granted, free of charge, to any person obtaining a
919N/A# copy of this software and associated documentation files (the "Software"),
919N/A# to deal in the Software without restriction, including without limitation
919N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
919N/A# and/or sell copies of the Software, and to permit persons to whom the
919N/A# Software is furnished to do so, subject to the following conditions:
919N/A#
919N/A# The above copyright notice and this permission notice (including the next
919N/A# paragraph) shall be included in all copies or substantial portions of the
919N/A# Software.
919N/A#
919N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
919N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
919N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
919N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
919N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
919N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
919N/A# DEALINGS IN THE SOFTWARE.
341N/A#
341N/A#
341N/A
341N/A# Package name used in tarballs
493N/AMODULE_NAME=libX11
341N/A
341N/A# Version number (used in path names)
962N/AMODULE_VERSION=1.3.4
341N/A
911N/A# Checksums for upstream tarball
962N/ATARBALL_MD5 = f65c9c7ecbfb64c19dbd7927160d63fd
962N/ATARBALL_SHA1 = 5aab6dc8ed5ec0e86419626715efc3edd34d1db4
911N/A
341N/A# Patches to apply to source after unpacking, in order
341N/ASOURCE_PATCHES = \
341N/A 1234757.patch \
341N/A 4010755.patch \
341N/A 4614834.patch \
341N/A 5039226.patch \
341N/A solaris-abi.patch \
341N/A solaris-kbd.patch \
341N/A SolarisIA.patch \
341N/A 4076297.patch \
392N/A 1261271.patch \
604N/A 6714036.patch \
646N/A 6789219.patch \
812N/A sme.patch \
688N/A im-suneu-greek.patch \
688N/A im-ximcp.patch \
688N/A lc-jisx0212.patch \
688N/A lc-jisx0208.patch \
688N/A lc-ksc5601.1992-3.patch \
688N/A lc-gb18030.patch \
688N/A om-generic.patch \
688N/A compose.dir.patch \
688N/A compose-iso8859-1.patch \
688N/A compose-iso8859-2.patch \
688N/A compose-iso8859-5.patch \
688N/A compose-iso8859-6.patch \
688N/A compose-iso8859-7.patch \
688N/A compose-iso8859-8.patch \
688N/A compose-iso8859-9.patch \
688N/A compose-iso8859-13.patch \
688N/A compose-iso8859-15.patch \
688N/A compose-el_GR.UTF-8.patch \
688N/A compose-en_US.UTF-8.patch \
688N/A compose-ja_JP.UTF-8.patch \
688N/A compose-ko_KR.UTF-8.patch \
688N/A compose-pt_BR.UTF-8.patch \
688N/A compose-th_TH.UTF-8.patch \
688N/A compose-zh_CN.UTF-8.patch \
688N/A compose-zh_HK.UTF-8.patch \
688N/A compose-zh_TW.UTF-8.patch \
688N/A locale.aliases.patch \
851N/A locale.paths.patch \
688N/A locale-C.patch \
688N/A locale-iso8859-1.patch \
688N/A locale-iso8859-6.patch \
688N/A locale-iso8859-8.patch \
688N/A locale-en_US.UTF-8.patch \
688N/A locale-ja.SJIS.patch \
688N/A locale-ja.patch \
688N/A locale-ja_JP.UTF-8.patch \
688N/A locale-ko.patch \
688N/A locale-ko_KR.UTF-8.patch \
688N/A locale-th_TH.UTF-8.patch \
688N/A locale-zh_CN.UTF-8.patch \
688N/A locale-zh_CN.gb18030.patch \
688N/A locale-zh_HK.UTF-8.patch \
688N/A locale-zh_TW.UTF-8.patch \
816N/A locale-zh_TW.patch \
962N/A locale-ru-RU.UTF-8.patch
341N/A
341N/A# Library name (used for specfiles/mapfiles)
341N/ALIBNAME=X11
341N/A
341N/A# Man pages to apply Sun footer to & attributes to list
341N/ASUNTOUCHED_MANPAGES=man/*.man man/xkb/*.man
341N/ASUN_PACKAGE=SUNWxwplt
493N/AMODULE_STABILITY=Committed
969N/ALIB_MAN_SUFFIX=3x11
341N/A
341N/A# Command line options to GNU autoconf configure script
493N/AMODULE_CONFIG_OPTS = --enable-xthreads --enable-loadable-i18n \
851N/A --disable-specs \
341N/A --with-xcb=no --enable-loadable-xcursor --enable-xcms \
341N/A --enable-xlocaledir --enable-xkb --enable-man-pages=$(LIB_MAN_SUFFIX) \
341N/A --with-locale-lib-dir='$${exec_prefix}/lib/X11/locale$(LIBSUBDIR)'
341N/A
341N/A# -xF is needed for mapfile reordering to work
493N/AMODULE_CFLAGS = -xF
341N/A
341N/A# -DSUNSOFT enables SUN_SME (Shared Memory transport extension)
341N/A# -DMOTIFBC enables compatibility with bugs in Motif & other apps
341N/A# -DSUNSOFT_KBD enables Solaris traditional keyboard handling
493N/AMODULE_CPPFLAGS = -DSUNSOFT -DMOTIFBC -DSUNSOFT_KBD
341N/A
965N/AMODULE_LDFLAGS = -R$(X11_LIB_DIR)$(ARCHLIBSUBDIR)
965N/A
851N/A# Backwards compatibility for old paths until g11n moves all input methods
851N/AMODULE_CONFIG_ENV = \
851N/A XLOCALEDIR="/usr/share/X11/locale:/usr/X11/share/X11/locale" \
851N/A XLOCALELIBDIR="/usr/lib/X11/locale$(LIBSUBDIR):/usr/X11/lib/X11/locale$(LIBSUBDIR)"
851N/A
341N/A# Work around libtool's interference
493N/ADELIBTOOLIZE=yes
341N/A
341N/A# Use -KPIC instead of -Kpic because we have too many symbols on SPARC
341N/ADELIBTOOLIZE_FLAGS_sparc = -P
341N/ADELIBTOOLIZE_FLAGS_i386 =
341N/ADELIBTOOLIZE_FLAGS = $(DELIBTOOLIZE_FLAGS_$(MACH))
341N/A
341N/A# Need additional mapfile for additional symbols in 64-bit versions
493N/AMODULE_BUILD_64_FLAGS = ADD_libX11_LDFLAGS="-M $(PWD)/mapfile-vers-64"
341N/A
341N/A# pkg-config files that need to have -R added
341N/AFIX_PC_FILES=x11.pc.in
341N/A
341N/A# Regenerate Makefile.in's from Makefile.am's after patching them
493N/AAUTORECONF=yes
493N/A
493N/A# Merge in additional sources from sun-src directory
493N/AADDITIONAL_SOURCE_DIR=sun-src
341N/A
341N/A# Install additional headers we need in other parts of the build or ship in
341N/A# packages, but which X.Org doesn't
922N/AMODULE_ADD_INSTALL_TARGETS_32 = install_extra_headers
922N/AMODULE_ADD_INSTALL_TARGETS = $(MODULE_ADD_INSTALL_TARGETS_$(BUILD_TYPE))
910N/A
963N/A# Install additional links to libX11 that we include in our packages
963N/AMODULE_ADD_INSTALL_TARGETS += install_extra_links
963N/A
922N/Ainclude ../Makefile.inc
922N/A
922N/Ainstall_extra_headers: $(INSTALL_DEPS)
851N/A mkdir -p $(PROTODIR)$(X11_INCLUDES_DIR)/X11/extensions
851N/A cp -pf sun-src/include/X11/Xvarargs.h \
851N/A $(PROTODIR)$(X11_INCLUDES_DIR)/X11/
341N/A cp -pf sun-src/include/X11/extensions/XInteractive.h \
851N/A $(PROTODIR)$(X11_INCLUDES_DIR)/X11/extensions/
922N/A cp -pf $(SOURCE_DIR)/src/xlibi18n/Xlc*.h \
851N/A $(PROTODIR)$(X11_INCLUDES_DIR)/X11/
963N/A
963N/A# Extra links to libX11 for compatibility with SVID / SPARC ABI / etc.
963N/AEXTRA_LINKS = libX.so libX.so.4 libX11.so.5
963N/AEXTRA_PROTO_LINKS = $(EXTRA_LINKS:%=$(PROTODIR)$(MODULE_PREFIX)/lib$(ARCHLIBSUBDIR)/%)
963N/A
963N/A$(EXTRA_PROTO_LINKS): $(INSTALL_DEPS)
963N/A @rm -f $@
963N/A ln -s libX11.so.4 $@
963N/A
963N/Ainstall_extra_links: $(EXTRA_PROTO_LINKS)