1633838b8255282d10af15c5c84cee5a51466712Bob Halley###############################################################################
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews#
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Permission is hereby granted, free of charge, to any person obtaining a
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# copy of this software and associated documentation files (the "Software"),
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# to deal in the Software without restriction, including without limitation
2acf5526612dd7bd01b646c0941031437fb97d92Bob Halley# the rights to use, copy, modify, merge, publish, distribute, sublicense,
70e5a7403f0e0a3bd292b8287c5fed5772c15270Automatic Updater# and/or sell copies of the Software, and to permit persons to whom the
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein# Software is furnished to do so, subject to the following conditions:
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein#
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence# The above copyright notice and this permission notice (including the next
d25afd60ee2286cb171c4960a790f3d7041b6f85Bob Halley# paragraph) shall be included in all copies or substantial portions of the
d25afd60ee2286cb171c4960a790f3d7041b6f85Bob Halley# Software.
2acf5526612dd7bd01b646c0941031437fb97d92Bob Halley#
bf6d2e39124ab3d51c253f7acad9a4abef059be6Bob Halley# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
bf6d2e39124ab3d51c253f7acad9a4abef059be6Bob Halley# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
9cd6d409b78a6f833b681c13a68fbdc7c024fe66David Lawrence# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
4b87939256ede703385e9cab92d3c58d03c31098Mark Andrews# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrence# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
c403d3f7d6cb17406e9be03a330ed5cf91619abcDavid Lawrence# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
364a82f7c25b62967678027043425201a5e5171aBob Halley# DEALINGS IN THE SOFTWARE.
2acf5526612dd7bd01b646c0941031437fb97d92Bob Halley#
bf6d2e39124ab3d51c253f7acad9a4abef059be6Bob Halley#
c403d3f7d6cb17406e9be03a330ed5cf91619abcDavid Lawrence
bf6d2e39124ab3d51c253f7acad9a4abef059be6Bob Halley# Package name used in tarballs
87480bb860c4cbdac3edfb1c8a3ca25daa780032David LawrenceMODULE_NAME=xorg-docs
a942d47f8404dde971d119291e542c979f451989Bob Halley
4b87939256ede703385e9cab92d3c58d03c31098Mark Andrews# Package metadata
2acf5526612dd7bd01b646c0941031437fb97d92Bob HalleyMODULE_DESC = X.Org documentation for the X Window System
c5f15d214f2858db7d8a8b9831eaf0f3bf6edb80David Lawrence
c5f15d214f2858db7d8a8b9831eaf0f3bf6edb80David Lawrence# Version number (used in path names)
87480bb860c4cbdac3edfb1c8a3ca25daa780032David LawrenceMODULE_VERSION=1.7
4502c1b020fe0511becb96011b9d635692aab341Brian Wellington
87480bb860c4cbdac3edfb1c8a3ca25daa780032David Lawrence# Checksums for upstream tarball
87480bb860c4cbdac3edfb1c8a3ca25daa780032David LawrenceTARBALL_MD5 = f9405a1692671d843725b90166370e00
f06dad6860f209da422790ab7b9df36857e8c0f3Mark AndrewsTARBALL_SHA1 = 565df5219a9d72d81a84f7e75294752ba2ea0cc8
f06dad6860f209da422790ab7b9df36857e8c0f3Mark AndrewsTARBALL_SHA256= b9b1918bd365e9eb29c325e76bb8c4d774d37be707e433fb0af94da35683375f
f06dad6860f209da422790ab7b9df36857e8c0f3Mark Andrews
f06dad6860f209da422790ab7b9df36857e8c0f3Mark Andrews# Patches to apply to source after unpacking, in order
f06dad6860f209da422790ab7b9df36857e8c0f3Mark AndrewsSOURCE_PATCHES += solaris-manpages.patch,-p1
f06dad6860f209da422790ab7b9df36857e8c0f3Mark Andrews
f06dad6860f209da422790ab7b9df36857e8c0f3Mark Andrews# Man pages to apply distro customizations to
f06dad6860f209da422790ab7b9df36857e8c0f3Mark Andrews# Normal attributes table not added, since these aren't simple interfaces
87480bb860c4cbdac3edfb1c8a3ca25daa780032David LawrenceSUNTOUCHED_MANPAGES=man/*.man
87480bb860c4cbdac3edfb1c8a3ca25daa780032David LawrenceSUNTOUCH_MAN_FLAGS=-r '{__distroname__, $(DISTRO_NAME)}'
ab023a65562e62b85a824509d829b6fad87e00b1Rob AusteinSUNTOUCH_MAN_FLAGS_SET=yes
87480bb860c4cbdac3edfb1c8a3ca25daa780032David Lawrence
87480bb860c4cbdac3edfb1c8a3ca25daa780032David Lawrence# Additional arguments to configure script
87480bb860c4cbdac3edfb1c8a3ca25daa780032David LawrenceMODULE_CONFIG_OPTS= --docdir='$(X11_DOC_DIR)' \
87480bb860c4cbdac3edfb1c8a3ca25daa780032David Lawrence XORG_SGML_PATH=$(PROTODIR)$(X11_DIR)/share/sgml
87480bb860c4cbdac3edfb1c8a3ca25daa780032David Lawrence
de5c46ae57f71e3de1231fb62152b4d4aae78ab1Bob Halley# Additional rules to fix up unpacked source
2e36a558617f4479ed0361d558947bd9b6e4317fDamien NeilMODULE_ADD_SOURCE_TARGETS = fix_entity_paths
6cf489f9bca4139f92dcb3a6bc33731476bc4e91Brian Wellington
2e36a558617f4479ed0361d558947bd9b6e4317fDamien Neil# Additional install rules beyond what upstream installs
de5c46ae57f71e3de1231fb62152b4d4aae78ab1Bob HalleyMODULE_ADD_INSTALL_TARGETS=install_docs
2e36a558617f4479ed0361d558947bd9b6e4317fDamien Neil
de5c46ae57f71e3de1231fb62152b4d4aae78ab1Bob Halley### Include common rulesets
de5c46ae57f71e3de1231fb62152b4d4aae78ab1Bob Halleyinclude ../Makefile.inc
de5c46ae57f71e3de1231fb62152b4d4aae78ab1Bob Halley
de5c46ae57f71e3de1231fb62152b4d4aae78ab1Bob Halley# Fix entity paths in DocBook files so that gnome-help can resolve them
de5c46ae57f71e3de1231fb62152b4d4aae78ab1Bob Halleyfix_entity_paths: $(UNPACK_TARGET)
bf6d2e39124ab3d51c253f7acad9a4abef059be6Bob Halley find $(SOURCE_DIR) -name '*.xml' | xargs $(PERL) -i.orig -p -e \
4b87939256ede703385e9cab92d3c58d03c31098Mark Andrews 's{SYSTEM ".*/X11/defs.ent"}{SYSTEM "$(X11_DIR)/share/sgml/X11/defs.ent"}'
bf6d2e39124ab3d51c253f7acad9a4abef059be6Bob Halley
9cd6d409b78a6f833b681c13a68fbdc7c024fe66David LawrenceMAN_DIR=$(PROTODIR)$(X11_MAN_DIR)
9cd6d409b78a6f833b681c13a68fbdc7c024fe66David Lawrence
47f65caf30817d7bd5c60995bb679bef154e5aafBrian Wellingtoninstall_docs: $(MAN_DIR)/man5/X11.5 $(MAN_DIR)/man5/XStandards.5
4b87939256ede703385e9cab92d3c58d03c31098Mark Andrews
bf6d2e39124ab3d51c253f7acad9a4abef059be6Bob Halley$(MAN_DIR)/man5/XStandards.5: default_install
2acf5526612dd7bd01b646c0941031437fb97d92Bob Halley 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 - )