Makefile revision 1176
687b6322fb189c41c3672226a59461cc5c24c087Evan Hunt###############################################################################
687b6322fb189c41c3672226a59461cc5c24c087Evan Hunt#
687b6322fb189c41c3672226a59461cc5c24c087Evan Hunt# Xt 1.x Makefile
57fb4f7bbec88bc6431a39d4a10f82c265798b1fMark Andrews#
57fb4f7bbec88bc6431a39d4a10f82c265798b1fMark Andrews# Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
57fb4f7bbec88bc6431a39d4a10f82c265798b1fMark Andrews#
57fb4f7bbec88bc6431a39d4a10f82c265798b1fMark Andrews# Permission is hereby granted, free of charge, to any person obtaining a
5b77627c09dea9a65a70d2a0b95a22ff75b3ac04Mark Andrews# copy of this software and associated documentation files (the "Software"),
5b77627c09dea9a65a70d2a0b95a22ff75b3ac04Mark Andrews# to deal in the Software without restriction, including without limitation
5b77627c09dea9a65a70d2a0b95a22ff75b3ac04Mark Andrews# the rights to use, copy, modify, merge, publish, distribute, sublicense,
288486df9df0c5a39b3c3d625c7f133d9a8e69fbMark Andrews# and/or sell copies of the Software, and to permit persons to whom the
288486df9df0c5a39b3c3d625c7f133d9a8e69fbMark Andrews# Software is furnished to do so, subject to the following conditions:
5773d3c007c0c065f83480aa17e61bea728221f9Mark Andrews#
5773d3c007c0c065f83480aa17e61bea728221f9Mark Andrews# The above copyright notice and this permission notice (including the next
5773d3c007c0c065f83480aa17e61bea728221f9Mark Andrews# paragraph) shall be included in all copies or substantial portions of the
85c5ed3577655f4f710f0af5ee93edd71c336055Evan Hunt# Software.
85c5ed3577655f4f710f0af5ee93edd71c336055Evan Hunt#
85c5ed3577655f4f710f0af5ee93edd71c336055Evan Hunt# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0faf1492c711ddb063efda9f3f03b7afa938cff8Francis Dupont# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0faf1492c711ddb063efda9f3f03b7afa938cff8Francis Dupont# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
0faf1492c711ddb063efda9f3f03b7afa938cff8Francis Dupont# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
0faf1492c711ddb063efda9f3f03b7afa938cff8Francis Dupont# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
0faf1492c711ddb063efda9f3f03b7afa938cff8Francis Dupont# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
bd31f734eec1884bd14024a232eb3ad3b0b86489Evan Hunt# DEALINGS IN THE SOFTWARE.
bd31f734eec1884bd14024a232eb3ad3b0b86489Evan Hunt#
1361014b02f11cf8de8725d1770a3dccbc1c8975Evan Hunt#
1361014b02f11cf8de8725d1770a3dccbc1c8975Evan Hunt
1361014b02f11cf8de8725d1770a3dccbc1c8975Evan Hunt# Package name used in tarballs
40ad4ed01be1cace49a62214d11ef1309b3029a0Evan HuntMODULE_NAME=libXt
40ad4ed01be1cace49a62214d11ef1309b3029a0Evan Hunt
40ad4ed01be1cace49a62214d11ef1309b3029a0Evan Hunt# pkg(5) name we deliver the files in (override default)
b09559fd36c5081ffaf58ab64bdef170c1a720f1Evan HuntMODULE_PKGNAME=x11/library/toolkit/libxt
b09559fd36c5081ffaf58ab64bdef170c1a720f1Evan HuntMODULE_PKGNAME_SET=yes
b09559fd36c5081ffaf58ab64bdef170c1a720f1Evan Hunt
aa3415ba49c7f322845ee3dd59c2d0159f37bb34Evan Hunt# Version number (used in path names)
aa3415ba49c7f322845ee3dd59c2d0159f37bb34Evan HuntMODULE_VERSION=1.0.9
aa3415ba49c7f322845ee3dd59c2d0159f37bb34Evan Hunt
c9630524c7560b27784fca6e456e652ff41ae7f1Mark Andrews# Checksums for upstream tarball
c9630524c7560b27784fca6e456e652ff41ae7f1Mark AndrewsTARBALL_MD5 = 8a414f8f2327aaa616ca2dcac1f5d8c3
c9630524c7560b27784fca6e456e652ff41ae7f1Mark AndrewsTARBALL_SHA1 = 3222c028b37e70a1d0d88feba5e52c2408e6bd5c
4e55893d307162770fbd7e0967043f0aef9d7583Evan Hunt
4e55893d307162770fbd7e0967043f0aef9d7583Evan Hunt# Patches to apply to source after unpacking, in order
4e55893d307162770fbd7e0967043f0aef9d7583Evan HuntSOURCE_PATCHES = 6671721.patch
4e55893d307162770fbd7e0967043f0aef9d7583Evan Hunt
4e55893d307162770fbd7e0967043f0aef9d7583Evan Hunt# Regenerate configure script & Makefile.in's after applying patches
4e55893d307162770fbd7e0967043f0aef9d7583Evan HuntAUTORECONF=yes
0da859c5a7f17298577616577197cc6c857e4579Evan Hunt
0da859c5a7f17298577616577197cc6c857e4579Evan Hunt# Work around libtool's interference
0da859c5a7f17298577616577197cc6c857e4579Evan HuntDELIBTOOLIZE=yes
19a6c40c37cd22a07b29542a5cc5c8986c1fbf57Evan Hunt
19a6c40c37cd22a07b29542a5cc5c8986c1fbf57Evan Hunt# Library name (used for specfiles/mapfiles)
19a6c40c37cd22a07b29542a5cc5c8986c1fbf57Evan HuntLIBNAME=Xt
9de98fbbbee124bbb8d609669cfaff17ec7a36e0Evan Hunt
9de98fbbbee124bbb8d609669cfaff17ec7a36e0Evan Hunt# ARC cases that covered this module
9de98fbbbee124bbb8d609669cfaff17ec7a36e0Evan Hunt# PSARC/1997/141 Sym links needed in /usr/lib for SPARC ABI compliance
28f4cd0a4503b91d7a48ed4d157347b251ae5686Mark AndrewsMODULE_ARC_CASES = PSARC/1997/141
c221360e9f511be38c1385b9a647ebd7dceb8b42Mark Andrews
28f4cd0a4503b91d7a48ed4d157347b251ae5686Mark Andrews# Man pages to apply Sun footer to & attributes to list
485a435efecda961aa117b63d8e02494a5e11e37Mark AndrewsSUNTOUCHED_MANPAGES=man/*.man
bc04d6ec155564b7f0c0171ac88e9e5918366c9dEvan HuntMODULE_STABILITY=Committed
bc04d6ec155564b7f0c0171ac88e9e5918366c9dEvan HuntMODULE_MTLEVEL=See XtToolkitThreadInitialize(3XT)
bc04d6ec155564b7f0c0171ac88e9e5918366c9dEvan HuntMODULE_MTLEVEL_SET=yes
16de5dbc7178b7fe8a9d4beb9ff50778cc8d3847Evan HuntLIB_MAN_SUFFIX=3xt
16de5dbc7178b7fe8a9d4beb9ff50778cc8d3847Evan Hunt
b8b602f89be848d44472df92320e9d88213a1411Evan Hunt# pkg-config files that need to have -R added
b8b602f89be848d44472df92320e9d88213a1411Evan HuntFIX_PC_FILES=xt.pc.in
b8b602f89be848d44472df92320e9d88213a1411Evan Hunt
12178c86525332bb0ab66155feb61fbf32eca6acEvan Hunt# the xinline option is here to fix bug 6748586, No Hands lib
12178c86525332bb0ab66155feb61fbf32eca6acEvan Hunt# needs to interpose on these functions, and if they are inline
12178c86525332bb0ab66155feb61fbf32eca6acEvan Hunt# then the loader can't find them. It complains silently.
12178c86525332bb0ab66155feb61fbf32eca6acEvan HuntMODULE_CFLAGS = -DGETVALUES_BUG -xinline=no%_XtAppCreateShell,no%XtAppNextEvent,no%XtAppProcessEvent
d601ef9e8914bc914220865328de64cb4b6cec67Evan Hunt
d601ef9e8914bc914220865328de64cb4b6cec67Evan Hunt# Extra links to libXt for compatibility with SVID / SPARC ABI / etc.
d601ef9e8914bc914220865328de64cb4b6cec67Evan HuntEXTRA_LINKS = libXt.so.5
71ba75c604df3604673232828a68bb28c420e698Mark AndrewsMODULE_ADD_INSTALL_TARGETS = install_extra_links
71ba75c604df3604673232828a68bb28c420e698Mark Andrews
71ba75c604df3604673232828a68bb28c420e698Mark Andrews# Compatibility links from /usr/X11/lib to /usr/lib
71ba75c604df3604673232828a68bb28c420e698Mark AndrewsMODULE_X11_LIBCOMPAT_LINKS = libXt.so libXt.so.4 $(EXTRA_LINKS)
71ba75c604df3604673232828a68bb28c420e698Mark Andrews
3d17a3ba61a303d5c4d9867068d0fbe9f24d2988Mark Andrewsinclude ../Makefile.inc
3d17a3ba61a303d5c4d9867068d0fbe9f24d2988Mark Andrews
3d17a3ba61a303d5c4d9867068d0fbe9f24d2988Mark Andrews# Install additional links to libXt that we include in our packages
3d17a3ba61a303d5c4d9867068d0fbe9f24d2988Mark AndrewsEXTRA_PROTO_LINKS = $(EXTRA_LINKS:%=$(PROTODIR)$(MODULE_PREFIX)/lib$(ARCHLIBSUBDIR)/%)
3d17a3ba61a303d5c4d9867068d0fbe9f24d2988Mark Andrews
3d17a3ba61a303d5c4d9867068d0fbe9f24d2988Mark Andrews$(EXTRA_PROTO_LINKS): $(INSTALL_DEPS)
3d17a3ba61a303d5c4d9867068d0fbe9f24d2988Mark Andrews @rm -f $@
3d17a3ba61a303d5c4d9867068d0fbe9f24d2988Mark Andrews ln -s libXt.so.4 $@
3d17a3ba61a303d5c4d9867068d0fbe9f24d2988Mark Andrews
3d17a3ba61a303d5c4d9867068d0fbe9f24d2988Mark Andrewsinstall_extra_links: $(EXTRA_PROTO_LINKS)
3d17a3ba61a303d5c4d9867068d0fbe9f24d2988Mark Andrews