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