7041N/A#
7041N/A# CDDL HEADER START
7041N/A#
7041N/A# The contents of this file are subject to the terms of the
7041N/A# Common Development and Distribution License (the "License").
7041N/A# You may not use this file except in compliance with the License.
7041N/A#
7041N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7041N/A# or http://www.opensolaris.org/os/licensing.
7041N/A# See the License for the specific language governing permissions
7041N/A# and limitations under the License.
7041N/A#
7041N/A# When distributing Covered Code, include this CDDL HEADER in each
7041N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7041N/A# If applicable, add the following below this CDDL HEADER, with the
7041N/A# fields enclosed by brackets "[]" replaced with your own identifying
7041N/A# information: Portions Copyright [yyyy] [name of copyright owner]
7041N/A#
7041N/A# CDDL HEADER END
7041N/A#
7041N/A# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
7041N/A#
7041N/A
7041N/ABUILD_BITS= NO_ARCH
7041N/Ainclude ../../../make-rules/shared-macros.mk
7041N/A
7041N/ACOMPONENT_NAME= docbook-xsl
7041N/ACOMPONENT_VERSION= 1.75.2
7041N/ACOMPONENT_PROJECT_URL= http://docbook.sourceforge.net/
7041N/A# docs are in a separate tarball that unpacks into a subdirectory
7041N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
7041N/ACOMPONENT_SRC_1= \
7041N/A $(COMPONENT_SRC:$(COMPONENT_NAME)-%=$(COMPONENT_NAME)-doc-%)
7041N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
7041N/ACOMPONENT_ARCHIVE_1= $(COMPONENT_SRC_1).tar.bz2
7041N/ACOMPONENT_ARCHIVE_HASH= \
7041N/A sha256:0dcc3aebd2ada8719e47b77c62ab986c4f2747f9a7cab6f629b6472e6d058e09
7041N/ACOMPONENT_ARCHIVE_HASH_1= \
7041N/A sha256:e28ab23e61870204f7e693ee204c01fa802c06c8b5da45ae6b65450628f6a8f9
7041N/ACOMPONENT_ARCHIVE_URL= http://prdownloads.sourceforge.net/docbook/$(COMPONENT_ARCHIVE)
7041N/ACOMPONENT_ARCHIVE_URL_1=$(COMPONENT_ARCHIVE_URL:$(COMPONENT_ARCHIVE)=$(COMPONENT_ARCHIVE_1))
7041N/ACOMPONENT_BUGDB= utility/docbook
7041N/A
7041N/ATPNO= 9656
7041N/A
7041N/ATEST_TARGET = $(NO_TESTS)
7041N/A
7139N/APKG_VARS += COMPONENT_ARCHIVE_URL_1
7139N/A
7041N/Ainclude $(WS_MAKE_RULES)/prep.mk
7041N/Ainclude $(WS_MAKE_RULES)/ips.mk
7041N/A
7041N/A# Docs archive tries to unpack into a subdir of the main archive, so we
7041N/A# need to redirect to its own source dir to make userland-unpack work
7041N/AUNPACK_ARGS_1= -r $(COMPONENT_SRC_1)
7041N/A
7041N/A# Install the subset of files we want to package, so it's easier to
7041N/A# generate sample-manifests consistently from new versions
7041N/AXSL_DIR=/usr/share/sgml/docbook/xsl-stylesheets-$(COMPONENT_VERSION)
7041N/ADOC_DIR=/usr/share/doc/docbook-style-xsl/doc
7041N/AGNUTAR = $(GNUBIN)/tar
7041N/A
7041N/Ainstall: $(SOURCE_DIR)/.prep
7041N/A -$(RM) -r $(PROTO_DIR)/usr
7041N/A $(MKDIR) $(PROTO_DIR)$(XSL_DIR) $(PROTO_DIR)$(DOC_DIR)
7041N/A $(GNUTAR) -C $(SOURCE_DIR) --exclude-ignore=$(COMPONENT_DIR)/exclude \
7041N/A -cf - . | $(GNUTAR) -C $(PROTO_DIR)$(XSL_DIR) -xf -
7041N/A $(GNUTAR) -C $(SOURCE_DIR_1)/$(COMPONENT_SRC)/doc -cf - . \
7041N/A | $(GNUTAR) -C $(PROTO_DIR)$(DOC_DIR) -xf -
7041N/A $(SYMLINK) VERSION $(PROTO_DIR)$(XSL_DIR)/VERSION.xsl
7041N/A
7041N/A# Used in SMF method scripts:
7041N/AREQUIRED_PACKAGES += data/xml-common
7041N/AREQUIRED_PACKAGES += library/libxml2
7041N/AREQUIRED_PACKAGES += shell/bash
7041N/A# SMF manifest dependencies:
7041N/AREQUIRED_PACKAGES += system/core-os