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