Makefile revision 1339
3955N/A###############################################################################
3955N/A#
3955N/A# Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved.
3955N/A#
3955N/A# Permission is hereby granted, free of charge, to any person obtaining a
3955N/A# copy of this software and associated documentation files (the "Software"),
3955N/A# to deal in the Software without restriction, including without limitation
3955N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
3955N/A# and/or sell copies of the Software, and to permit persons to whom the
3955N/A# Software is furnished to do so, subject to the following conditions:
3955N/A#
3955N/A# The above copyright notice and this permission notice (including the next
3955N/A# paragraph) shall be included in all copies or substantial portions of the
3955N/A# Software.
3955N/A#
3955N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
3955N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
3955N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
3955N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
3955N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
3955N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
3955N/A# DEALINGS IN THE SOFTWARE.
3955N/A#
3955N/A#
3955N/A
3955N/A# Package name used in tarballs
3955N/AMODULE_NAME=xorg-docs
3955N/A
3955N/A# Package metadata
3955N/AMODULE_DESC = X.Org documentation for the X Window System
3955N/A
3955N/A# Version number (used in path names)
3955N/AMODULE_VERSION=1.7
3955N/A
3955N/A# Checksums for upstream tarball
3955N/ATARBALL_MD5 = f9405a1692671d843725b90166370e00
3955N/ATARBALL_SHA1 = 565df5219a9d72d81a84f7e75294752ba2ea0cc8
3955N/ATARBALL_SHA256= b9b1918bd365e9eb29c325e76bb8c4d774d37be707e433fb0af94da35683375f
3955N/A
3955N/A# Patches to apply to source after unpacking, in order
3955N/ASOURCE_PATCHES += solaris-manpages.patch,-p1
3955N/A
3955N/A# Man pages to apply distro customizations to
3955N/A# Normal attributes table not added, since these aren't simple interfaces
3955N/ASUNTOUCHED_MANPAGES=man/*.man
3955N/ASUNTOUCH_MAN_FLAGS=-r '{__distroname__, $(DISTRO_NAME)}'
3955N/ASUNTOUCH_MAN_FLAGS_SET=yes
3955N/A
3955N/A# Additional arguments to configure script
3955N/AMODULE_CONFIG_OPTS= --docdir='$(X11_DOC_DIR)' \
3955N/A XORG_SGML_PATH=$(PROTODIR)$(X11_DIR)/share/sgml
3955N/A
3955N/A# Additional rules to fix up unpacked source
3955N/AMODULE_ADD_SOURCE_TARGETS = fix_entity_paths
3955N/A
3955N/A# Additional install rules beyond what upstream installs
3955N/AMODULE_ADD_INSTALL_TARGETS=install_docs
3955N/A
3955N/A### Include common rulesets
3955N/Ainclude ../Makefile.inc
3955N/A
3955N/A# Fix entity paths in DocBook files so that gnome-help can resolve them
3955N/Afix_entity_paths: $(UNPACK_TARGET)
3955N/A find $(SOURCE_DIR) -name '*.xml' | xargs $(PERL) -i.orig -p -e \
3955N/A 's{SYSTEM ".*/X11/defs.ent"}{SYSTEM "$(X11_DIR)/share/sgml/X11/defs.ent"}'
3955N/A
3955N/AMAN_DIR=$(PROTODIR)$(X11_MAN_DIR)
3955N/A
3955N/Ainstall_docs: $(MAN_DIR)/man5/X11.5 $(MAN_DIR)/man5/XStandards.5
3955N/A
3955N/A$(MAN_DIR)/man5/XStandards.5: default_install
3955N/A mv -f $(MAN_DIR)/man5/Standards.5 $@
3955N/A
3955N/A$(MAN_DIR)/man5/X11.5:
3955N/A mkdir -p $(MAN_DIR)/man5
3955N/A $(INSTALL_SCRIPT) -m 0444 X11.5 $@
3955N/A
3955N/Adefault_install: install_preformatted
3955N/A
3955N/Ainstall_preformatted:
3955N/A mkdir -p $(PROTODIR)$(X11_DOC_DIR)
3955N/A (cd preformatted && tar -cf - .) | \
3955N/A (cd $(PROTODIR)$(X11_DOC_DIR) && tar -xf - )
3955N/A