components/docbook/xsl/Makefile
author Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
Thu, 20 Oct 2016 09:28:20 -0700
changeset 7141 821d173e6ff4
parent 7043 5286838de66c
child 7687 1093e2a9adbd
permissions -rw-r--r--
24925482 Source URL leaks makefile variable name in docbook-style-xsl
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7043
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     1
#
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     2
# CDDL HEADER START
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     3
#
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     7
#
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    11
# and limitations under the License.
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    12
#
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    18
#
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    19
# CDDL HEADER END
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    20
#
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    21
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    22
#
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    23
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    24
BUILD_BITS=		NO_ARCH
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    25
include ../../../make-rules/shared-macros.mk
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    26
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    27
COMPONENT_NAME=		docbook-xsl
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    28
COMPONENT_VERSION=	1.75.2
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    29
COMPONENT_PROJECT_URL=	http://docbook.sourceforge.net/
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    30
# docs are in a separate tarball that unpacks into a subdirectory
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    31
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    32
COMPONENT_SRC_1= \
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    33
    $(COMPONENT_SRC:$(COMPONENT_NAME)-%=$(COMPONENT_NAME)-doc-%)
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    34
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.bz2
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    35
COMPONENT_ARCHIVE_1= 	$(COMPONENT_SRC_1).tar.bz2
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    36
COMPONENT_ARCHIVE_HASH= \
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    37
    sha256:0dcc3aebd2ada8719e47b77c62ab986c4f2747f9a7cab6f629b6472e6d058e09
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    38
COMPONENT_ARCHIVE_HASH_1= \
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    39
    sha256:e28ab23e61870204f7e693ee204c01fa802c06c8b5da45ae6b65450628f6a8f9
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    40
COMPONENT_ARCHIVE_URL=	http://prdownloads.sourceforge.net/docbook/$(COMPONENT_ARCHIVE)
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    41
COMPONENT_ARCHIVE_URL_1=$(COMPONENT_ARCHIVE_URL:$(COMPONENT_ARCHIVE)=$(COMPONENT_ARCHIVE_1))
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    42
COMPONENT_BUGDB=	utility/docbook
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    43
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    44
TPNO=			9656
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    45
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    46
TEST_TARGET = $(NO_TESTS)
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    47
7141
821d173e6ff4 24925482 Source URL leaks makefile variable name in docbook-style-xsl
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 7043
diff changeset
    48
PKG_VARS += COMPONENT_ARCHIVE_URL_1
821d173e6ff4 24925482 Source URL leaks makefile variable name in docbook-style-xsl
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 7043
diff changeset
    49
7043
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    50
include $(WS_MAKE_RULES)/prep.mk
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    51
include $(WS_MAKE_RULES)/ips.mk
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    52
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    53
# Docs archive tries to unpack into a subdir of the main archive, so we
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    54
# need to redirect to its own source dir to make userland-unpack work
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    55
UNPACK_ARGS_1= -r $(COMPONENT_SRC_1) 
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    56
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    57
# Install the subset of files we want to package, so it's easier to
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    58
# generate sample-manifests consistently from new versions
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    59
XSL_DIR=/usr/share/sgml/docbook/xsl-stylesheets-$(COMPONENT_VERSION)
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    60
DOC_DIR=/usr/share/doc/docbook-style-xsl/doc
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    61
GNUTAR = $(GNUBIN)/tar
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    62
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    63
install:        $(SOURCE_DIR)/.prep
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    64
	-$(RM) -r $(PROTO_DIR)/usr
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    65
	$(MKDIR) $(PROTO_DIR)$(XSL_DIR) $(PROTO_DIR)$(DOC_DIR)
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    66
	$(GNUTAR) -C $(SOURCE_DIR) --exclude-ignore=$(COMPONENT_DIR)/exclude \
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    67
		-cf - . | $(GNUTAR) -C $(PROTO_DIR)$(XSL_DIR) -xf -
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    68
	$(GNUTAR) -C $(SOURCE_DIR_1)/$(COMPONENT_SRC)/doc -cf - . \
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    69
		| $(GNUTAR) -C $(PROTO_DIR)$(DOC_DIR) -xf -
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    70
	$(SYMLINK) VERSION $(PROTO_DIR)$(XSL_DIR)/VERSION.xsl
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    71
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    72
# Used in SMF method scripts:
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    73
REQUIRED_PACKAGES += data/xml-common
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    74
REQUIRED_PACKAGES += library/libxml2
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    75
REQUIRED_PACKAGES += shell/bash
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    76
# SMF manifest dependencies:
5286838de66c 23245466 Move docbook-style-xsl 1.75.2 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    77
REQUIRED_PACKAGES += system/core-os