Makefile revision 7139
5758e9adfb009286b2b719ff83eb284f1019c589Mark Andrews#
5758e9adfb009286b2b719ff83eb284f1019c589Mark Andrews# CDDL HEADER START
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews#
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews# The contents of this file are subject to the terms of the
6a3c86ff436452d062912bd91ecd289541869d42Mark Andrews# Common Development and Distribution License (the "License").
6a3c86ff436452d062912bd91ecd289541869d42Mark Andrews# You may not use this file except in compliance with the License.
e0fa16fe191d619d2cd05a039067414409329878Mark Andrews#
e0fa16fe191d619d2cd05a039067414409329878Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
e0fa16fe191d619d2cd05a039067414409329878Mark Andrews# or http://www.opensolaris.org/os/licensing.
93da96c1cfd5f3c47169855867dd18db00c8a386Mark Andrews# See the License for the specific language governing permissions
93da96c1cfd5f3c47169855867dd18db00c8a386Mark Andrews# and limitations under the License.
93da96c1cfd5f3c47169855867dd18db00c8a386Mark Andrews#
7d389c324cc032475f9d219a12ab84bacbd7fbaaMark Andrews# When distributing Covered Code, include this CDDL HEADER in each
7d389c324cc032475f9d219a12ab84bacbd7fbaaMark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
cd9bfe5b256a3e84ba090e8fcb5de0d6c50974aeMark Andrews# If applicable, add the following below this CDDL HEADER, with the
cd9bfe5b256a3e84ba090e8fcb5de0d6c50974aeMark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
935afdff81843012abeabf8b06e7d3887e7c5e21Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
dcd371be7d481b242d277d735e4c2d974297c164Mark Andrews#
dcd371be7d481b242d277d735e4c2d974297c164Mark Andrews# CDDL HEADER END
935afdff81843012abeabf8b06e7d3887e7c5e21Mark Andrews#
cc4928ec7116a064223f60639ca1a80f25ba350fMark Andrews# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
935afdff81843012abeabf8b06e7d3887e7c5e21Mark Andrews#
e2cf63c5df79eb7c8b86b6278289883fa760cda5Mark Andrews
935afdff81843012abeabf8b06e7d3887e7c5e21Mark AndrewsBUILD_BITS= NO_ARCH
c3184b4e2a1f238f4615d36fee79df82b1711344Mark Andrewsinclude ../../../make-rules/shared-macros.mk
c3184b4e2a1f238f4615d36fee79df82b1711344Mark Andrews
c3184b4e2a1f238f4615d36fee79df82b1711344Mark AndrewsCOMPONENT_NAME= docbook-xsl
935afdff81843012abeabf8b06e7d3887e7c5e21Mark AndrewsCOMPONENT_VERSION= 1.75.2
9b7c023fe6dc88ba1e69ace1f7c3ade40c6475f9Mark AndrewsCOMPONENT_PROJECT_URL= http://docbook.sourceforge.net/
9b7c023fe6dc88ba1e69ace1f7c3ade40c6475f9Mark Andrews# docs are in a separate tarball that unpacks into a subdirectory
9b7c023fe6dc88ba1e69ace1f7c3ade40c6475f9Mark AndrewsCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
935afdff81843012abeabf8b06e7d3887e7c5e21Mark AndrewsCOMPONENT_SRC_1= \
0a1fa37641b59c56d02f5390917a49e4987f0f75Mark Andrews $(COMPONENT_SRC:$(COMPONENT_NAME)-%=$(COMPONENT_NAME)-doc-%)
0a1fa37641b59c56d02f5390917a49e4987f0f75Mark AndrewsCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
935afdff81843012abeabf8b06e7d3887e7c5e21Mark AndrewsCOMPONENT_ARCHIVE_1= $(COMPONENT_SRC_1).tar.bz2
c61ec97ae0b859914ee26e213fe792f86a157990Mark AndrewsCOMPONENT_ARCHIVE_HASH= \
c61ec97ae0b859914ee26e213fe792f86a157990Mark Andrews sha256:0dcc3aebd2ada8719e47b77c62ab986c4f2747f9a7cab6f629b6472e6d058e09
935afdff81843012abeabf8b06e7d3887e7c5e21Mark AndrewsCOMPONENT_ARCHIVE_HASH_1= \
49f7d1585e0e4f1ffa1667391dd7ae1c4d3d4e81Mark Andrews sha256:e28ab23e61870204f7e693ee204c01fa802c06c8b5da45ae6b65450628f6a8f9
49f7d1585e0e4f1ffa1667391dd7ae1c4d3d4e81Mark AndrewsCOMPONENT_ARCHIVE_URL= http://prdownloads.sourceforge.net/docbook/$(COMPONENT_ARCHIVE)
0b1af13f680a865521105a77ee192024b5af33c4Mark AndrewsCOMPONENT_ARCHIVE_URL_1=$(COMPONENT_ARCHIVE_URL:$(COMPONENT_ARCHIVE)=$(COMPONENT_ARCHIVE_1))
0b1af13f680a865521105a77ee192024b5af33c4Mark AndrewsCOMPONENT_BUGDB= utility/docbook
0b1af13f680a865521105a77ee192024b5af33c4Mark Andrews
0b1af13f680a865521105a77ee192024b5af33c4Mark AndrewsTPNO= 9656
3a7c831b697b4604bc90019f2ccc217338117a1cMark Andrews
945cb085b859dbfc6a883813dda03c83e06995d3Mark AndrewsTEST_TARGET = $(NO_TESTS)
3a7c831b697b4604bc90019f2ccc217338117a1cMark Andrews
5ed4b0d4452967d9b3aaf7a22a2956a6ee67a614Mark AndrewsPKG_VARS += COMPONENT_ARCHIVE_URL_1
5ed4b0d4452967d9b3aaf7a22a2956a6ee67a614Mark Andrews
5ed4b0d4452967d9b3aaf7a22a2956a6ee67a614Mark Andrewsinclude $(WS_MAKE_RULES)/prep.mk
3a7c831b697b4604bc90019f2ccc217338117a1cMark Andrewsinclude $(WS_MAKE_RULES)/ips.mk
c549b3a4d5fedba2ae960df667864e824acb1ef9Mark Andrews
c549b3a4d5fedba2ae960df667864e824acb1ef9Mark Andrews# Docs archive tries to unpack into a subdir of the main archive, so we
3a7c831b697b4604bc90019f2ccc217338117a1cMark Andrews# need to redirect to its own source dir to make userland-unpack work
a483e67c4cdcbfc29ddc62b5a2d0d99b1c542fadMark AndrewsUNPACK_ARGS_1= -r $(COMPONENT_SRC_1)
a483e67c4cdcbfc29ddc62b5a2d0d99b1c542fadMark Andrews
3a7c831b697b4604bc90019f2ccc217338117a1cMark Andrews# Install the subset of files we want to package, so it's easier to
d73de275987d29627dc11d5bd4a22874a29f7874Mark Andrews# generate sample-manifests consistently from new versions
3a7c831b697b4604bc90019f2ccc217338117a1cMark AndrewsXSL_DIR=/usr/share/sgml/docbook/xsl-stylesheets-$(COMPONENT_VERSION)
8f9664521724eefc39728c092d0bc6be527e1496Mark AndrewsDOC_DIR=/usr/share/doc/docbook-style-xsl/doc
8f9664521724eefc39728c092d0bc6be527e1496Mark AndrewsGNUTAR = $(GNUBIN)/tar
3a7c831b697b4604bc90019f2ccc217338117a1cMark Andrews
da091cda77fa951e682119c3df84f60a62bed702Mark Andrewsinstall: $(SOURCE_DIR)/.prep
da091cda77fa951e682119c3df84f60a62bed702Mark Andrews -$(RM) -r $(PROTO_DIR)/usr
da091cda77fa951e682119c3df84f60a62bed702Mark Andrews $(MKDIR) $(PROTO_DIR)$(XSL_DIR) $(PROTO_DIR)$(DOC_DIR)
3a7c831b697b4604bc90019f2ccc217338117a1cMark Andrews $(GNUTAR) -C $(SOURCE_DIR) --exclude-ignore=$(COMPONENT_DIR)/exclude \
d8d489cd8efc45b06a232ac07a636b3d36cc7e8fMark Andrews -cf - . | $(GNUTAR) -C $(PROTO_DIR)$(XSL_DIR) -xf -
d8d489cd8efc45b06a232ac07a636b3d36cc7e8fMark Andrews $(GNUTAR) -C $(SOURCE_DIR_1)/$(COMPONENT_SRC)/doc -cf - . \
3a7c831b697b4604bc90019f2ccc217338117a1cMark Andrews | $(GNUTAR) -C $(PROTO_DIR)$(DOC_DIR) -xf -
bdb1394788a677d0b6e8499ba1ece17a73f476c7Mark Andrews $(SYMLINK) VERSION $(PROTO_DIR)$(XSL_DIR)/VERSION.xsl
bdb1394788a677d0b6e8499ba1ece17a73f476c7Mark Andrews
3a7c831b697b4604bc90019f2ccc217338117a1cMark Andrews# Used in SMF method scripts:
c8aa2c83113229a59069cbd05c735896f51b886bMark AndrewsREQUIRED_PACKAGES += data/xml-common
c8aa2c83113229a59069cbd05c735896f51b886bMark AndrewsREQUIRED_PACKAGES += library/libxml2
3a7c831b697b4604bc90019f2ccc217338117a1cMark AndrewsREQUIRED_PACKAGES += shell/bash
a1edcd1b8d430650d85ec0962cd32efde76a71fbMark Andrews# SMF manifest dependencies:
5b1627d469d07c5bfe7f193e3ddd85d0dd6ad4b0Mark AndrewsREQUIRED_PACKAGES += system/core-os
5b1627d469d07c5bfe7f193e3ddd85d0dd6ad4b0Mark Andrews