Makefile revision 1402
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews###############################################################################
205c10066a0acfeac52d1a135671f41d207b8557Automatic Updater#
205c10066a0acfeac52d1a135671f41d207b8557Automatic Updater# libXpm - library for handling XPM format images
1167fc7904c5f0a472f8df207ac46dd52c7f1ec8Automatic Updater#
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater# Copyright (c) 2006, 2014, Oracle and/or its affiliates. All rights reserved.
46da3117812814a29432a8d9a9ccf8acdbfdadceAutomatic Updater#
2bb3422dc683c013db7042f5736240de6b86f182Automatic Updater# Permission is hereby granted, free of charge, to any person obtaining a
cd0aa2d941d1438fabb5337f1f38c49478edf71dAutomatic Updater# copy of this software and associated documentation files (the "Software"),
2ec4ab21838e218863d052ebfa3e106e04f50820Evan Hunt# to deal in the Software without restriction, including without limitation
ea854b585041ad19f70f7af15e08144ef2c2bd1bMark Andrews# the rights to use, copy, modify, merge, publish, distribute, sublicense,
78cb74fab4665da2e2641ba909c6f59f74cc4193Automatic Updater# and/or sell copies of the Software, and to permit persons to whom the
cd0aa2d941d1438fabb5337f1f38c49478edf71dAutomatic Updater# Software is furnished to do so, subject to the following conditions:
90ff38a0d8deaf5f9c2aa5916d99b2e572d28738Automatic Updater#
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# The above copyright notice and this permission notice (including the next
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews# paragraph) shall be included in all copies or substantial portions of the
6c6a121295b30772cbf3dd75a51fb9d883051a0eAutomatic Updater# Software.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington#
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
bc0a53583d92309bebcf93c408e2f3247ebd3d3cAutomatic Updater# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
56874aef380a64a2c183b7c282c3e7a361d67fa1Automatic Updater# 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
58be84825d7f5de30e50eb7206b37227ecd8055bAutomatic Updater# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
3cc98b8ecedcbc8465f1cf2740b966b315662430Automatic Updater# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# DEALINGS IN THE SOFTWARE.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
96713299d08c0735c18ebe8772dd2cc1ecd4356aAutomatic Updater#
831f79c4310a7d38fc3475ccfff531b2b2535641Automatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Package name used in tarballs
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterMODULE_NAME=libXpm
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# Version number (used in path names)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonMODULE_VERSION=3.5.11
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# Checksums for upstream tarball
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonTARBALL_MD5 = 769ee12a43611cdebd38094eaf83f3f0
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterTARBALL_SHA1 = 77b95dd1c8cd9bc00b3b834b53d824409202acbb
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterTARBALL_SHA256= c5bdafa51d1ae30086fac01ab83be8d47fe117b238d3437f8e965434090e041c
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt# Patches to apply to source after unpacking, in order
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterSOURCE_PATCHES = setuid.patch
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt# ARC cases that covered this module
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterMODULE_ARC_CASES = PSARC/2001/060
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Library name
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntLIBNAME=Xpm
2d2dc37599979c83495510f8af8d1756753aa2c5Automatic Updater
2d2dc37599979c83495510f8af8d1756753aa2c5Automatic Updater# Merge in additional sources from sun-src directory
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntADDITIONAL_SOURCE_DIR=sun-src
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# man pages to apply Sun footer to & attributes to list
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterSUNTOUCHED_MANPAGES=man/cxpm.man man/sxpm.man man/libXpm.3lib
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterMODULE_STABILITY=Uncommitted
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterMODULE_MTLEVEL=Unsafe
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic UpdaterMODULE_MTLEVEL_SET=yes
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic UpdaterLIB_MAN_SUFFIX=3
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Don't want to add MT-Level & -l flags to cxpm & sxpm command man pages
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterOVERRIDE_LIB_SUNTOUCH_DEFAULT=yes
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# But do want to add them to the libXpm man page
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterMODULE_SUNTOUCH_MAN_FLAGS= $(SUNTOUCH_MAN_FLAGS_$(@F:%.$(FIXED_MAN_SUFFIX)=%))
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark AndrewsSUNTOUCH_MAN_FLAGS_libXpm.3lib = $(LIB_SUNTOUCH_DEFAULTS)
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark AndrewsSUNTOUCH_MAN_FLAGS_libXpm.3lib += -r '{__xorgversion__, $(MODULE_NAME) $(MODULE_VERSION)}'
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# Link with version mapfile
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic UpdaterMODULE_LD_OPTIONS = -M $(PWD)/mapfile-vers
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
129090f0f6f91753b4a085ab635e28549fd018adAutomatic Updater# pkg-config files that need to have -R added
129090f0f6f91753b4a085ab635e28549fd018adAutomatic UpdaterFIX_PC_FILES=xpm.pc.in
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater# Additional arguments to pass to make
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsMODULE_MAKEFLAGS= -e SUBDIRS="src include"
db5b7e2cdf150c46e8242d3e2e3ad3f5c7300258Automatic Updater
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater# Install documentation as well
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsMODULE_ADD_INSTALL_TARGETS = install-docs
1a06700908f5a1d9f4a8d51285a0fd971e2f9117Automatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Compatibility links from /usr/X11/lib to /usr/lib
db5b7e2cdf150c46e8242d3e2e3ad3f5c7300258Automatic UpdaterMODULE_X11_LIBCOMPAT_LINKS = libXpm.so libXpm.so.4
693c4232dfdffaff672197d4b9fea944c64cf80aAutomatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsinclude ../Makefile.inc
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson3LIB_MAN_DIR = $(X11_MAN_DIR)/man3lib
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updaterinstall-docs: $(PROTODIR)$(MODULE_DOC_DIR)/xpm.ps
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrewsinstall-docs: $(PROTODIR)$(3LIB_MAN_DIR)/libXpm.3lib
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson$(PROTODIR)$(MODULE_DOC_DIR)/xpm.ps: $(INSTALL_DEPS) $(PROTODIR)$(MODULE_DOC_DIR)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater -rm -f $@
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater gzcat $(SOURCE_DIR)/doc/xpm.PS.gz > $@
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater$(PROTODIR)$(3LIB_MAN_DIR)/libXpm.3lib: $(INSTALL_DEPS) $(PROTODIR)$(3LIB_MAN_DIR)
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater ginstall -m 0444 $(SOURCE_DIR)/man/libXpm.3lib $@
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater
9174e44c14b1cb91a651fa1dc29470438c246ab9Automatic Updater$(PROTODIR)$(3LIB_MAN_DIR):
b1265b5a06df36d490d4bdf54284fb133a1f5a84Automatic Updater mkdir -p $@
9174e44c14b1cb91a651fa1dc29470438c246ab9Automatic Updater