Makefile revision 1513
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews###############################################################################
1fdd2470b625a58b57d0b155e6caf8c4fc0afe8aAutomatic Updater#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# X Toolkit Intrinsics library (libXt)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater# Copyright (c) 2008, 2015, 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.
3b2c6af63e0367c6eabe0a21ca23841ca87cd22fAutomatic Updater#
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#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Package name used in tarballs
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsMODULE_NAME=libXt
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# pkg(5) name we deliver the files in (override default)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsMODULE_PKGNAME=x11/library/toolkit/libxt
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsMODULE_PKGNAME_SET=yes
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Version number (used in path names)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsMODULE_VERSION=1.1.4
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Checksums for upstream tarball
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsTARBALL_MD5 = 03149823ae57bb02d0cec90d5b97d56c
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsTARBALL_SHA1 = 0111c316d83fb7e830c517128150094cb0a48ae7
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsTARBALL_SHA256= 843a97a988f5654872682a4120486d987d853a71651515472f55519ffae2dd57
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Patches to apply to source after unpacking, in order
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsSOURCE_PATCHES = 6671721.patch,-p1
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsSOURCE_PATCHES += xt.pc.patch,-p1
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Regenerate configure script & Makefile.in's after patching in 6671721.patch
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsAUTORECONF=yes
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
8de0d8a6905e397ed0a26054815420685f9b435eAutomatic Updater# Work around libtool's interference
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsDELIBTOOLIZE=yes
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
3b2c6af63e0367c6eabe0a21ca23841ca87cd22fAutomatic Updater# Library name (used for specfiles/mapfiles)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsLIBNAME=Xt
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# ARC cases that covered this module
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# PSARC/1997/141 Sym links needed in /usr/lib for SPARC ABI compliance
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsMODULE_ARC_CASES = PSARC/1997/141
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# PSARC/2012/151 libXt 1.1 [XtAsprintf()]
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsMODULE_ARC_CASES += PSARC/2012/151
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Man pages to apply Sun footer to & attributes to list
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsSUNTOUCHED_MANPAGES=man/*.man
3b2c6af63e0367c6eabe0a21ca23841ca87cd22fAutomatic UpdaterMODULE_STABILITY=Committed
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsMODULE_MTLEVEL=See XtToolkitThreadInitialize(3XT)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsMODULE_MTLEVEL_SET=yes
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsLIB_MAN_SUFFIX=3xt
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# pkg-config files that need to have -R added
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsFIX_PC_FILES=xt.pc.in
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# the xinline option is here to fix bug 15508570, No Hands lib
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# needs to interpose on these functions, and if they are inline
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic Updater# then the loader can't find them. It complains silently.
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic UpdaterMODULE_CFLAGS = -DGETVALUES_BUG \
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic Updater -xinline=no%_XtAppCreateShell,no%XtAppNextEvent,no%XtAppProcessEvent
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic Updater
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic Updater# Extra links to libXt for compatibility with SVID / SPARC ABI / etc.
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic UpdaterEXTRA_LINKS = libXt.so.5
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic UpdaterMODULE_ADD_INSTALL_TARGETS = install_extra_links
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic Updater
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic Updater# Compatibility links from /usr/X11/lib to /usr/lib
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterMODULE_X11_LIBCOMPAT_LINKS = libXt.so libXt.so.4 $(EXTRA_LINKS)
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updaterinclude ../Makefile.inc
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater# Install additional links to libXt that we include in our packages
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic UpdaterEXTRA_PROTO_LINKS = $(EXTRA_LINKS:%=$(PROTODIR)$(MODULE_PREFIX)/lib$(ARCHLIBSUBDIR)/%)
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic Updater
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic Updater$(EXTRA_PROTO_LINKS): $(INSTALL_DEPS)
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic Updater @rm -f $@
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic Updater ln -s libXt.so.4 $@
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic Updater
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic Updaterinstall_extra_links: $(EXTRA_PROTO_LINKS)
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater