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