Makefile revision 977
48c0c81cd6fabac9d3386406d97633780365b839coar###############################################################################
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# X11 1.x Makefile
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
0d2f57cf389a981efa5e98d9b451c6baf0af12bfjerenkrantz# Permission is hereby granted, free of charge, to any person obtaining a
2cc7cdffce670f2ae1bd4ae502b2c19481487dbejerenkrantz# copy of this software and associated documentation files (the "Software"),
d89c116f82699294ca744125723651c554bc5925wrowe# to deal in the Software without restriction, including without limitation
4214e98fc9045e5010e66f9a967bd6d68f40d342aaron# the rights to use, copy, modify, merge, publish, distribute, sublicense,
8721697e2aece27b0e738519329f7976c72b27bfjerenkrantz# and/or sell copies of the Software, and to permit persons to whom the
4a257be29f8aeab984fe5622fa69e0b2aab204d7jerenkrantz# Software is furnished to do so, subject to the following conditions:
91cacb801f6c0215b38322f6d2fc58cbfedfecfbjerenkrantz# The above copyright notice and this permission notice (including the next
df14f0d3a5191cdd7c4bb5b03acd135d43a6f51brbb# paragraph) shall be included in all copies or substantial portions of the
df14f0d3a5191cdd7c4bb5b03acd135d43a6f51brbb# Software.
571760de5e60c0b459cb11be45507b923cd023eejwoolley# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
571760de5e60c0b459cb11be45507b923cd023eejwoolley# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
9180a5933673ffb1af633c255ceee029340f3b1erbb# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
bcb6e1be6041dfeb549c8ea8d37f97ad4e90a0c3rbb# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
9bd71e35f5d26d26d23fe3a677401828e842ed72wrowe# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
2900ab946a2d76b73a14cebfe2985d253f01c967stoddard# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
a548c09e6a8ca1b059d0e93b5256c6ccb2b3c3cdrbb# DEALINGS IN THE SOFTWARE.
cf6bf6c34c936e6a6fe731dbce4a5c3c8bf8e9a3gstein# Package name used in tarballs
8dd4618c4709236b4ea297d7250d282e463ce2d8rbb# Version number (used in path names)
bd929c73ef04789b7183b840d8db6e01d03a4d86rbb# Checksums for upstream tarball
2a6c49cfaef5979a5a06098f3ce987cd76769409manojTARBALL_SHA1 = 5aab6dc8ed5ec0e86419626715efc3edd34d1db4
af4c982a7cf4515f124935f99a329744035fc699slive# Patches to apply to source after unpacking, in order
2fb49a1d25f38421a68d31b4cbb5d9293fdeafbewrowe# Library name (used for specfiles/mapfiles)
2fb49a1d25f38421a68d31b4cbb5d9293fdeafbewrowe# ARC cases that covered this module
2fb49a1d25f38421a68d31b4cbb5d9293fdeafbewrowe# PSARC/1992/077 X11/R5 Xlib API
2fb49a1d25f38421a68d31b4cbb5d9293fdeafbewrowe# PSARC/1992/082 Dynamic Locale Access For X11/R5 Xlib
2fb49a1d25f38421a68d31b4cbb5d9293fdeafbewrowe# PSARC/1997/141 Sym links needed in /usr/lib for SPARC ABI compliance
2fb49a1d25f38421a68d31b4cbb5d9293fdeafbewrowe# PSARC/2006/448 UTF8_STRING support in Solaris libX11 and XLC modules
2fb49a1d25f38421a68d31b4cbb5d9293fdeafbewrowe# PSARC/2008/062 Porting of Xorg XI18N
2fb49a1d25f38421a68d31b4cbb5d9293fdeafbewrowe# PSARC/2009/666 libX11 1.3
2fb49a1d25f38421a68d31b4cbb5d9293fdeafbewrowe# Man pages to apply Sun footer to & attributes to list
83d91d60d00dc345bfbcbc48ff206db4a6b23b2eaaron# Command line options to GNU autoconf configure script
83d91d60d00dc345bfbcbc48ff206db4a6b23b2eaaronMODULE_CONFIG_OPTS = --enable-xthreads --enable-loadable-i18n \
83d91d60d00dc345bfbcbc48ff206db4a6b23b2eaaron --with-xcb=no --enable-loadable-xcursor --enable-xcms \
83d91d60d00dc345bfbcbc48ff206db4a6b23b2eaaron --enable-xlocaledir --enable-xkb --enable-man-pages=$(LIB_MAN_SUFFIX) \
83d91d60d00dc345bfbcbc48ff206db4a6b23b2eaaron --with-locale-lib-dir='$${exec_prefix}/lib/X11/locale$(LIBSUBDIR)'
db2d668e6233d8949b35ee7f9f42f444758f9ce9rbb# -xF is needed for mapfile reordering to work
db2d668e6233d8949b35ee7f9f42f444758f9ce9rbb# -DSUNSOFT enables SUN_SME (Shared Memory transport extension)
db2d668e6233d8949b35ee7f9f42f444758f9ce9rbb# -DMOTIFBC enables compatibility with bugs in Motif & other apps
db2d668e6233d8949b35ee7f9f42f444758f9ce9rbb# -DSUNSOFT_KBD enables Solaris traditional keyboard handling
1ea5221b240a8b41a07c6fb04aab5a73adcddabfaaron# Backwards compatibility for old paths until g11n moves all input methods
1ea5221b240a8b41a07c6fb04aab5a73adcddabfaaron XLOCALEDIR="/usr/share/X11/locale:/usr/X11/share/X11/locale" \
1ea5221b240a8b41a07c6fb04aab5a73adcddabfaaron XLOCALELIBDIR="/usr/lib/X11/locale$(LIBSUBDIR):/usr/X11/lib/X11/locale$(LIBSUBDIR)"
5d12baef135b5d3cb94745e007a1575398469724jerenkrantz# Work around libtool's interference
5d12baef135b5d3cb94745e007a1575398469724jerenkrantz# Use -KPIC instead of -Kpic because we have too many symbols on SPARC
5d12baef135b5d3cb94745e007a1575398469724jerenkrantzDELIBTOOLIZE_FLAGS = $(DELIBTOOLIZE_FLAGS_$(MACH))
5d12baef135b5d3cb94745e007a1575398469724jerenkrantz# Need additional mapfile for additional symbols in 64-bit versions
5d12baef135b5d3cb94745e007a1575398469724jerenkrantzMODULE_BUILD_64_FLAGS = ADD_libX11_LDFLAGS="-M $(PWD)/mapfile-vers-64"
b865daaa4ef731a7066ee6d97e2aae36c7743939jerenkrantz# pkg-config files that need to have -R added
b865daaa4ef731a7066ee6d97e2aae36c7743939jerenkrantz# Regenerate Makefile.in's from Makefile.am's after patching them
b865daaa4ef731a7066ee6d97e2aae36c7743939jerenkrantz# Merge in additional sources from sun-src directory
b865daaa4ef731a7066ee6d97e2aae36c7743939jerenkrantz# Install additional headers we need in other parts of the build or ship in
b865daaa4ef731a7066ee6d97e2aae36c7743939jerenkrantz# packages, but which X.Org doesn't
b865daaa4ef731a7066ee6d97e2aae36c7743939jerenkrantzMODULE_ADD_INSTALL_TARGETS_32 = install_extra_headers
b865daaa4ef731a7066ee6d97e2aae36c7743939jerenkrantzMODULE_ADD_INSTALL_TARGETS = $(MODULE_ADD_INSTALL_TARGETS_$(BUILD_TYPE))
b865daaa4ef731a7066ee6d97e2aae36c7743939jerenkrantz# Extra links to libX11 for compatibility with SVID / SPARC ABI / etc.
dc098c7ce5d36179c504d09fc722d190683d0262aaronMODULE_X11_LIBCOMPAT_LINKS = libX11.so libX11.so.4 $(EXTRA_LINKS)
dc098c7ce5d36179c504d09fc722d190683d0262aaron mkdir -p $(PROTODIR)$(X11_INCLUDES_DIR)/X11/extensions
0bcb1fe39dfaacf9745b6633f5cc9ebc8e2596caaaron cp -pf sun-src/include/X11/extensions/XInteractive.h \
262bfa74293f7bc2049b4cd525875c8775711ca2aaron# Install additional links to libX11 that we include in our packages