Makefile revision 1447
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews###############################################################################
71cef386fae61275b03e203825680b39fedaa8c6Tinderbox User# libXpm - library for handling XPM format images
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Copyright (c) 2006, 2014, Oracle and/or its affiliates. All rights reserved.
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Permission is hereby granted, free of charge, to any person obtaining a
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# copy of this software and associated documentation files (the "Software"),
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews# to deal in the Software without restriction, including without limitation
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# the rights to use, copy, modify, merge, publish, distribute, sublicense,
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# and/or sell copies of the Software, and to permit persons to whom the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Software is furnished to do so, subject to the following conditions:
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# The above copyright notice and this permission notice (including the next
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# paragraph) shall be included in all copies or substantial portions of the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# DEALINGS IN THE SOFTWARE.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Package name used in tarballs
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Version number (used in path names)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Checksums for upstream tarball
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserTARBALL_MD5 = 769ee12a43611cdebd38094eaf83f3f0
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinTARBALL_SHA1 = 77b95dd1c8cd9bc00b3b834b53d824409202acbb
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinTARBALL_SHA256= c5bdafa51d1ae30086fac01ab83be8d47fe117b238d3437f8e965434090e041c
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User# Patches to apply to source after unpacking, in order
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User# ARC cases that covered this module
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User# Library name
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User# Merge in additional sources from sun-src directory
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# man pages to apply Sun footer to & attributes to list
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinSUNTOUCHED_MANPAGES=man/cxpm.man man/sxpm.man man/libXpm.3lib
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Don't want to add MT-Level & -l flags to cxpm & sxpm command man pages
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# But do want to add them to the libXpm man page
71c66a876ecca77923638d3f94cc0783152b2f03Mark AndrewsMODULE_SUNTOUCH_MAN_FLAGS= $(SUNTOUCH_MAN_FLAGS_$(@F:%.$(FIXED_MAN_SUFFIX)=%))
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinSUNTOUCH_MAN_FLAGS_libXpm.3lib = $(LIB_SUNTOUCH_DEFAULTS)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinSUNTOUCH_MAN_FLAGS_libXpm.3lib += -r '{__xorgversion__, $(MODULE_NAME) $(MODULE_VERSION)}'
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Link shared library with version mapfile
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserMODULE_LD_SHARED_OPTIONS = -M $(PWD)/mapfile-vers
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User# pkg-config files that need to have -R added
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Additional arguments to pass to make
c48c7872a0e020a63a96faed166c6ae960e4c1e9Mark Andrews# - in 32-bit builds, only install library, not apps or headers
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# - install 64-bit apps in default directory, not 64-bit subdir
71c66a876ecca77923638d3f94cc0783152b2f03Mark AndrewsMODULE_INSTALL_MAKEFLAGS_64 = bindir=$(MODULE_PREFIX)/bin
71c66a876ecca77923638d3f94cc0783152b2f03Mark AndrewsMODULE_INSTALL_MAKEFLAGS = $(MODULE_INSTALL_MAKEFLAGS_$(BUILD_TYPE))
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Install docs & l10n files as well
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserMODULE_ADD_INSTALL_TARGETS_64 = install-docs install-po
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserMODULE_ADD_INSTALL_TARGETS = $(MODULE_ADD_INSTALL_TARGETS_$(BUILD_TYPE))
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Compatibility links from /usr/X11/bin to /usr/bin
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Compatibility links from /usr/X11/lib to /usr/lib
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserMODULE_X11_LIBCOMPAT_LINKS = libXpm.so libXpm.so.4
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeininstall-docs: $(PROTODIR)$(MODULE_DOC_DIR)/xpm.ps
71c66a876ecca77923638d3f94cc0783152b2f03Mark Andrewsinstall-docs: $(PROTODIR)$(3LIB_MAN_DIR)/libXpm.3lib
9c6a5d1f22f972232d7a9fd5c5fa64f10bacbdffAutomatic Updater$(PROTODIR)$(MODULE_DOC_DIR)/xpm.ps: $(INSTALL_DEPS) $(PROTODIR)$(MODULE_DOC_DIR)
9c6a5d1f22f972232d7a9fd5c5fa64f10bacbdffAutomatic Updater$(PROTODIR)$(3LIB_MAN_DIR)/libXpm.3lib: $(INSTALL_DEPS) $(PROTODIR)$(3LIB_MAN_DIR)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein ginstall -m 0444 $(SOURCE_DIR)/man/libXpm.3lib $@
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinPO_FILES = $(BUILD_DIR)/cxpm/cxpm.po $(BUILD_DIR)/sxpm/sxpm.po
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeininstall-po: $(INSTALL_DEPS) $(PROTODIR)$(X11_LC_MESSAGES_DIR)
bea931e17b7567f09107f93ab7e25c7f00abeb9cMark Andrews ginstall -m 0444 $(PO_FILES) $(PROTODIR)$(X11_LC_MESSAGES_DIR)