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