Makefile revision 1436
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews###############################################################################
04428429c4e689333e3ef8d19a2debeb20d4d15dMark Andrews# libXmu - miscellaneous utility functions based on libX11 & libXt
e999539fb3e45b2617571e0e3ecd651992291701Mark Andrews# Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# Permission is hereby granted, free of charge, to any person obtaining a
a3b428812703d22a605a9f882e71ed65f0ffdc65Mark Andrews# copy of this software and associated documentation files (the "Software"),
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# to deal in the Software without restriction, including without limitation
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# the rights to use, copy, modify, merge, publish, distribute, sublicense,
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews# and/or sell copies of the Software, and to permit persons to whom the
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# Software is furnished to do so, subject to the following conditions:
d56e188030368b835122d759ebbf8d9613c166f4Mark Andrews# The above copyright notice and this permission notice (including the next
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrews# paragraph) shall be included in all copies or substantial portions of the
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrews# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrews# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrews# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# DEALINGS IN THE SOFTWARE.
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# Package name used in tarballs
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# Version number (used in path names)
a3b428812703d22a605a9f882e71ed65f0ffdc65Mark Andrews# Checksums for upstream tarball
c718d15a9a95054ee3c71540c02335426071fc6dMark AndrewsTARBALL_SHA1 = 7e6aeef726743d21aa272c424e7d7996e92599eb
c6d4f781529d2f28693546b25b2967d44ec89e60Mark AndrewsTARBALL_SHA256= 756edc7c383254eef8b4e1b733c3bf1dc061b523c9f9833ac7058378b8349d0b
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrews# Patches to apply to source after unpacking, in order
ed178efa9ab8f813538fce4ff603b81ded9f1799Mark Andrews# Library name (used for specfiles/mapfiles)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Man pages to apply Sun footer to & attributes to list
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews# Dates to show in Oracle copyright notice in pkg license file
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews# Earliest & latest of the copyrights in the Oracle files in this pkg
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# ARC cases that covered this module
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# PSARC/2005/192 Update libXmu to X11R6.8 version
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# PSARC/2008/036 libXmuu
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Additional pkg(5) package name used for libxmuu package
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Merge in additional sources from sun-src directory
e086341ea57e618a60c9f166b95daee1fab71b3bMark Andrews# sun-src/src/VisGamma.c requires libX11 private headers for _Xcms functions
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsMODULE_CPPFLAGS += -I $(TOOLS_DIR)$(X11_INCLUDES_DIR)/X11/xcms
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# pkg-config files that need to have -R added
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# Command line options to GNU autoconf configure script
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonMODULE_CONFIG_OPTS = --with-lint --enable-lint-library
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# configure adds -lsocket -lnsl to both libraries, but libXmu only needs
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# -lnsl and libXmuu doesn't need either one.
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# Work around libtool brokenness that adds -R `pwd` to libXmu build
80f9a970ae6681c08529ef209eaabbe078c27ca3Mark Andrews# Regenerate Makefile.in's from Makefile.am's after patching them
46e873c835bf7d9ec3e1097e0aceb8db5b1ae93aMark Andrews# Additional rules beyond what upstream provides
45eca3a5d46ed15aee14d81f6cb6c9fb6f365344Mark Andrews# Compatibility links from /usr/X11/lib to /usr/lib
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark AndrewsMODULE_X11_LIBCOMPAT_LINKS = libXmu.so libXmu.so.4 libXmuu.so libXmuu.so.1
6b5c57e52ac8c3e0af1547be3140ebbfb41a85b3Mark Andrews# Additional files we need to install
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews mkdir -p $(PROTODIR)$(X11_INCLUDES_DIR)/X11/Xmu $(MANDIR) \
6b5c57e52ac8c3e0af1547be3140ebbfb41a85b3Mark Andrews $(CP) $(SOURCE_DIR)/include/X11/Xmu/XmuSolaris.h \
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# Metadata for libxmuu package
6b5c57e52ac8c3e0af1547be3140ebbfb41a85b3Mark AndrewsLIBXMUU_PKG_METADATA_DIR = $(PROTOMETA)/x11-library-libxmuu
6b5c57e52ac8c3e0af1547be3140ebbfb41a85b3Mark AndrewsLIBXMUU_PKG_ATTRDATA_FILE = $(LIBXMUU_PKG_METADATA_DIR)/$(ATTRDATA_FILE_NAME)
6b5c57e52ac8c3e0af1547be3140ebbfb41a85b3Mark AndrewsLIBXMUU_PKG_LICENSE_FILE = $(LIBXMUU_PKG_METADATA_DIR)/$(LICENSE_FILE_NAME)
d3a3e690ab1f87fa02b3fa77be5ddea5c1fe0cd4Mark Andrews# Added Solaris files are only in libXmu, not libXmuu
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews$(LIBXMUU_PKG_LICENSE_FILE) := ORACLE_COPYRIGHT_YEARS =