Makefile revision 1436
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews###############################################################################
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews#
04428429c4e689333e3ef8d19a2debeb20d4d15dMark Andrews# libXmu - miscellaneous utility functions based on libX11 & libXt
e999539fb3e45b2617571e0e3ecd651992291701Mark Andrews#
e999539fb3e45b2617571e0e3ecd651992291701Mark Andrews# Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.
2a40fdc2d34adb8a5c72a748449699666032d461Mark Andrews#
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:
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington#
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
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews# Software.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
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.
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews#
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews#
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# Package name used in tarballs
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsMODULE_NAME=libXmu
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# Version number (used in path names)
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsMODULE_VERSION=1.1.2
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington
a3b428812703d22a605a9f882e71ed65f0ffdc65Mark Andrews# Checksums for upstream tarball
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsTARBALL_MD5 = 41d92ab627dfa06568076043f3e089e4
c718d15a9a95054ee3c71540c02335426071fc6dMark AndrewsTARBALL_SHA1 = 7e6aeef726743d21aa272c424e7d7996e92599eb
c6d4f781529d2f28693546b25b2967d44ec89e60Mark AndrewsTARBALL_SHA256= 756edc7c383254eef8b4e1b733c3bf1dc061b523c9f9833ac7058378b8349d0b
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c718d15a9a95054ee3c71540c02335426071fc6dMark Andrews# Patches to apply to source after unpacking, in order
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsSOURCE_PATCHES += solaris-abi.patch
c069a20053d41ae299eb9457e50ea44ae9f73ed2Mark Andrews
ed178efa9ab8f813538fce4ff603b81ded9f1799Mark Andrews# Library name (used for specfiles/mapfiles)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsLIBNAME=Xmu
605bd686e437162b5ab65ac4e7c1be0bba1886ddMark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Man pages to apply Sun footer to & attributes to list
3f6174bffe227be44e241a29d186add00c032ff6Mark AndrewsSUNTOUCHED_MANPAGES= man/*.3*
1eb1e1e838d2ea00b166c918bf50764a95826be8Mark AndrewsMODULE_STABILITY=Committed
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsMODULE_PKGCONFIG_MAN=xmu
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsMODULE_PKGCONFIG_MAN_SET=yes
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonLIB_MAN_SUFFIX=3xmu
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
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 AndrewsORACLE_COPYRIGHT_YEARS = 1994, 2015
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# ARC cases that covered this module
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# PSARC/2005/192 Update libXmu to X11R6.8 version
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonMODULE_ARC_CASES = PSARC/2005/192
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# PSARC/2008/036 libXmuu
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonMODULE_ARC_CASES += PSARC/2008/036
26a77b80bb7ee886c6fa704348d5e80a011d8811Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Additional pkg(5) package name used for libxmuu package
6f046a065e5543f8cd7e2f24991c65d2372f4c8dMark AndrewsXMUU_PKGNAME=$(MODULE_PKGNAME:libxmu=libxmuu)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Merge in additional sources from sun-src directory
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsADDITIONAL_SOURCE_DIR=sun-src
62ee2c9f460d2e2e45dcf1abc8b4b4a4a43f5618Mark Andrews
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
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# pkg-config files that need to have -R added
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsFIX_PC_FILES=xmu.pc.in xmuu.pc.in
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# Command line options to GNU autoconf configure script
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonMODULE_CONFIG_OPTS = --with-lint --enable-lint-library
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# configure adds -lsocket -lnsl to both libraries, but libXmu only needs
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# -lnsl and libXmuu doesn't need either one.
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsMODULE_LD_OPTIONS = -z ignore
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# Work around libtool brokenness that adds -R `pwd` to libXmu build
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonDELIBTOOLIZE=yes
45eca3a5d46ed15aee14d81f6cb6c9fb6f365344Mark Andrews
80f9a970ae6681c08529ef209eaabbe078c27ca3Mark Andrews# Regenerate Makefile.in's from Makefile.am's after patching them
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark AndrewsAUTORECONF=yes
46e873c835bf7d9ec3e1097e0aceb8db5b1ae93aMark Andrews
46e873c835bf7d9ec3e1097e0aceb8db5b1ae93aMark Andrews# Additional rules beyond what upstream provides
dd9ad704c3800e3ab07ede8595871eac79984871Mark AndrewsMODULE_ADD_INSTALL_TARGETS=install_solaris_exts
605bd686e437162b5ab65ac4e7c1be0bba1886ddMark Andrews
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
ab81f57ca0c3addfec3df3babdcea9644757cf23Mark Andrews
605bd686e437162b5ab65ac4e7c1be0bba1886ddMark Andrewsinclude ../Makefile.inc
6b5c57e52ac8c3e0af1547be3140ebbfb41a85b3Mark Andrews
6b5c57e52ac8c3e0af1547be3140ebbfb41a85b3Mark Andrews# Additional files we need to install
413988c8166976498250c0ebb2e3a645d0366bd3Mark AndrewsCP = cp -pf
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark AndrewsMANDIR = $(PROTODIR)$(X11_MAN_DIR)/man3xmu
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews
6b5c57e52ac8c3e0af1547be3140ebbfb41a85b3Mark Andrewsinstall_solaris_exts: $(INSTALL_DEPS)
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews mkdir -p $(PROTODIR)$(X11_INCLUDES_DIR)/X11/Xmu $(MANDIR) \
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews $(PROTODIR)$(X11_LIB_DIR)$(ARCHLIBSUBDIR)
6b5c57e52ac8c3e0af1547be3140ebbfb41a85b3Mark Andrews $(CP) $(SOURCE_DIR)/include/X11/Xmu/XmuSolaris.h \
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews $(SOURCE_DIR)/include/X11/Xmu/WhitePoint.h \
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews $(PROTODIR)$(X11_INCLUDES_DIR)/X11/Xmu
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews $(CP) $(SOURCE_DIR)/man/*.3xmu $(MANDIR)
642e0716c8b4ab82ebc8e60f94c9e897ee89f19aMark Andrews
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)
6b5c57e52ac8c3e0af1547be3140ebbfb41a85b3Mark AndrewsLIBXMUU_METADATA_TARGETS = \
45eca3a5d46ed15aee14d81f6cb6c9fb6f365344Mark Andrews $(LIBXMUU_PKG_METADATA_DIR) \
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews $(LIBXMUU_PKG_ATTRDATA_FILE) \
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews $(LIBXMUU_PKG_LICENSE_FILE)
6b5c57e52ac8c3e0af1547be3140ebbfb41a85b3Mark Andrews
d3a3e690ab1f87fa02b3fa77be5ddea5c1fe0cd4Mark Andrews# Added Solaris files are only in libXmu, not libXmuu
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews$(LIBXMUU_PKG_LICENSE_FILE) := ORACLE_COPYRIGHT_YEARS =
d56e188030368b835122d759ebbf8d9613c166f4Mark Andrews
6b5c57e52ac8c3e0af1547be3140ebbfb41a85b3Mark Andrewsinstall_metadata: $(LIBXMUU_METADATA_TARGETS)
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews$(LIBXMUU_PKG_METADATA_DIR):
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews mkdir -p $@
6b5c57e52ac8c3e0af1547be3140ebbfb41a85b3Mark Andrews
a9789e288ee11ae4315e27235c33bae5405bd7c4Mark Andrews$(LIBXMUU_PKG_ATTRDATA_FILE) $(LIBXMUU_PKG_LICENSE_FILE): $(LIBXMUU_PKG_METADATA_DIR)
b7aab05edae933e169d5f83c653935b17c7f0a8bMark Andrews