Makefile revision 1402
90N/A###############################################################################
90N/A#
1276N/A# libXpm - library for handling XPM format images
90N/A#
1402N/A# Copyright (c) 2006, 2014, Oracle and/or its affiliates. All rights reserved.
90N/A#
90N/A# Permission is hereby granted, free of charge, to any person obtaining a
919N/A# copy of this software and associated documentation files (the "Software"),
919N/A# to deal in the Software without restriction, including without limitation
919N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
919N/A# and/or sell copies of the Software, and to permit persons to whom the
919N/A# Software is furnished to do so, subject to the following conditions:
919N/A#
919N/A# The above copyright notice and this permission notice (including the next
919N/A# paragraph) shall be included in all copies or substantial portions of the
919N/A# Software.
919N/A#
919N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
919N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
919N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
919N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
919N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
919N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
919N/A# DEALINGS IN THE SOFTWARE.
90N/A#
90N/A#
90N/A
90N/A# Package name used in tarballs
493N/AMODULE_NAME=libXpm
90N/A
90N/A# Version number (used in path names)
1370N/AMODULE_VERSION=3.5.11
90N/A
911N/A# Checksums for upstream tarball
1370N/ATARBALL_MD5 = 769ee12a43611cdebd38094eaf83f3f0
1370N/ATARBALL_SHA1 = 77b95dd1c8cd9bc00b3b834b53d824409202acbb
1370N/ATARBALL_SHA256= c5bdafa51d1ae30086fac01ab83be8d47fe117b238d3437f8e965434090e041c
911N/A
90N/A# Patches to apply to source after unpacking, in order
90N/ASOURCE_PATCHES = setuid.patch
90N/A
970N/A# ARC cases that covered this module
970N/AMODULE_ARC_CASES = PSARC/2001/060
970N/A
90N/A# Library name
90N/ALIBNAME=Xpm
90N/A
1402N/A# Merge in additional sources from sun-src directory
1402N/AADDITIONAL_SOURCE_DIR=sun-src
1402N/A
1402N/A# man pages to apply Sun footer to & attributes to list
1402N/ASUNTOUCHED_MANPAGES=man/cxpm.man man/sxpm.man man/libXpm.3lib
493N/AMODULE_STABILITY=Uncommitted
1402N/AMODULE_MTLEVEL=Unsafe
1402N/AMODULE_MTLEVEL_SET=yes
90N/ALIB_MAN_SUFFIX=3
1402N/A# Don't want to add MT-Level & -l flags to cxpm & sxpm command man pages
1402N/AOVERRIDE_LIB_SUNTOUCH_DEFAULT=yes
1402N/A# But do want to add them to the libXpm man page
1402N/AMODULE_SUNTOUCH_MAN_FLAGS= $(SUNTOUCH_MAN_FLAGS_$(@F:%.$(FIXED_MAN_SUFFIX)=%))
1402N/ASUNTOUCH_MAN_FLAGS_libXpm.3lib = $(LIB_SUNTOUCH_DEFAULTS)
1402N/ASUNTOUCH_MAN_FLAGS_libXpm.3lib += -r '{__xorgversion__, $(MODULE_NAME) $(MODULE_VERSION)}'
90N/A
90N/A# Link with version mapfile
493N/AMODULE_LD_OPTIONS = -M $(PWD)/mapfile-vers
90N/A
90N/A# pkg-config files that need to have -R added
90N/AFIX_PC_FILES=xpm.pc.in
90N/A
90N/A# Additional arguments to pass to make
1072N/AMODULE_MAKEFLAGS= -e SUBDIRS="src include"
90N/A
970N/A# Install documentation as well
970N/AMODULE_ADD_INSTALL_TARGETS = install-docs
970N/A
970N/A# Compatibility links from /usr/X11/lib to /usr/lib
970N/AMODULE_X11_LIBCOMPAT_LINKS = libXpm.so libXpm.so.4
970N/A
90N/Ainclude ../Makefile.inc
90N/A
1402N/A3LIB_MAN_DIR = $(X11_MAN_DIR)/man3lib
1402N/A
970N/Ainstall-docs: $(PROTODIR)$(MODULE_DOC_DIR)/xpm.ps
1402N/Ainstall-docs: $(PROTODIR)$(3LIB_MAN_DIR)/libXpm.3lib
970N/A
970N/A$(PROTODIR)$(MODULE_DOC_DIR)/xpm.ps: $(INSTALL_DEPS) $(PROTODIR)$(MODULE_DOC_DIR)
1072N/A -rm -f $@
1072N/A gzcat $(SOURCE_DIR)/doc/xpm.PS.gz > $@
1402N/A
1402N/A$(PROTODIR)$(3LIB_MAN_DIR)/libXpm.3lib: $(INSTALL_DEPS) $(PROTODIR)$(3LIB_MAN_DIR)
1402N/A ginstall -m 0444 $(SOURCE_DIR)/man/libXpm.3lib $@
1402N/A
1402N/A$(PROTODIR)$(3LIB_MAN_DIR):
1402N/A mkdir -p $@