Makefile revision 1425
280N/A###############################################################################
280N/A#
280N/A# libXpm - library for handling XPM format images
280N/A#
280N/A# Copyright (c) 2006, 2013, Oracle and/or its affiliates. All rights reserved.
280N/A#
280N/A# Permission is hereby granted, free of charge, to any person obtaining a
280N/A# copy of this software and associated documentation files (the "Software"),
280N/A# to deal in the Software without restriction, including without limitation
280N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
280N/A# and/or sell copies of the Software, and to permit persons to whom the
280N/A# Software is furnished to do so, subject to the following conditions:
280N/A#
280N/A# The above copyright notice and this permission notice (including the next
280N/A# paragraph) shall be included in all copies or substantial portions of the
280N/A# Software.
280N/A#
280N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
280N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
280N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
280N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
280N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
280N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
280N/A# DEALINGS IN THE SOFTWARE.
280N/A#
280N/A#
618N/A
473N/A# Package name used in tarballs
280N/AMODULE_NAME=libXpm
473N/A
280N/A# Version number (used in path names)
280N/AMODULE_VERSION=3.5.11
280N/A
280N/A# Checksums for upstream tarball
280N/ATARBALL_MD5 = 769ee12a43611cdebd38094eaf83f3f0
280N/ATARBALL_SHA1 = 77b95dd1c8cd9bc00b3b834b53d824409202acbb
280N/ATARBALL_SHA256= c5bdafa51d1ae30086fac01ab83be8d47fe117b238d3437f8e965434090e041c
280N/A
280N/A# Patches to apply to source after unpacking, in order
280N/ASOURCE_PATCHES = setuid.patch
280N/A
280N/A# ARC cases that covered this module
473N/AMODULE_ARC_CASES = PSARC/2001/060
280N/A
280N/A# Library name
280N/ALIBNAME=Xpm
280N/A
280N/A# man pages to apply Sun footer to & attributes to list
280N/ASUNTOUCHED_MANPAGES=man/cxpm.man man/sxpm.man
280N/AMODULE_STABILITY=Uncommitted
280N/ALIB_MAN_SUFFIX=3
280N/A
280N/A# Link shared library with version mapfile
280N/AMODULE_LD_SHARED_OPTIONS = -M $(PWD)/mapfile-vers
280N/A
280N/A# pkg-config files that need to have -R added
280N/AFIX_PC_FILES=xpm.pc.in
# Additional arguments to pass to make
# - in 32-bit builds, only install library, not apps or headers
# - install 64-bit apps in default directory, not 64-bit subdir
MODULE_INSTALL_MAKEFLAGS_32 = -e SUBDIRS="src"
MODULE_INSTALL_MAKEFLAGS_64 = bindir=$(MODULE_PREFIX)/bin
MODULE_INSTALL_MAKEFLAGS = $(MODULE_INSTALL_MAKEFLAGS_$(BUILD_TYPE))
# Install docs & l10n files as well
MODULE_ADD_INSTALL_TARGETS_64 = install-docs install-po
MODULE_ADD_INSTALL_TARGETS = $(MODULE_ADD_INSTALL_TARGETS_$(BUILD_TYPE))
# Compatibility links from /usr/X11/bin to /usr/bin
MODULE_X11_BINCOMPAT_LINKS = cxpm sxpm
# Compatibility links from /usr/X11/lib to /usr/lib
MODULE_X11_LIBCOMPAT_LINKS = libXpm.so libXpm.so.4
include ../Makefile.inc
install-docs: $(PROTODIR)$(MODULE_DOC_DIR)/xpm.ps
$(PROTODIR)$(MODULE_DOC_DIR)/xpm.ps: $(INSTALL_DEPS) $(PROTODIR)$(MODULE_DOC_DIR)
-rm -f $@
gzcat $(SOURCE_DIR)/doc/xpm.PS.gz > $@
PO_FILES = $(SOURCE_DIR)/cxpm/cxpm.po $(SOURCE_DIR)/sxpm/sxpm.po
install-po: $(INSTALL_DEPS)
mkdir -p $(PROTODIR)$(X11_LC_MESSAGES_DIR)
$(INSTALL_SCRIPT) -m 0444 $(PO_FILES) $(PROTODIR)$(X11_LC_MESSAGES_DIR)