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