7040N/A#
7040N/A# CDDL HEADER START
7040N/A#
7040N/A# The contents of this file are subject to the terms of the
7040N/A# Common Development and Distribution License (the "License").
7040N/A# You may not use this file except in compliance with the License.
7040N/A#
7040N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7040N/A# or http://www.opensolaris.org/os/licensing.
7040N/A# See the License for the specific language governing permissions
7040N/A# and limitations under the License.
7040N/A#
7040N/A# When distributing Covered Code, include this CDDL HEADER in each
7040N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7040N/A# If applicable, add the following below this CDDL HEADER, with the
7040N/A# fields enclosed by brackets "[]" replaced with your own identifying
7040N/A# information: Portions Copyright [yyyy] [name of copyright owner]
7040N/A#
7040N/A# CDDL HEADER END
7040N/A#
7040N/A
7040N/A#
7040N/A# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
7040N/A#
7040N/A
7040N/ABUILD_BITS= 64
7040N/Ainclude ../../../make-rules/shared-macros.mk
7040N/A
7040N/ACOMPONENT_NAME= sgml-common
7040N/ACOMPONENT_VERSION= 0.6.3
7040N/ACOMPONENT_PROJECT_URL= http://www.w3.org/2003/entities/
7040N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
7040N/ACOMPONENT_ARCHIVE_HASH= \
7040N/A sha256:7dc418c1d361123ffc5e45d61f1b97257940a8eb35d0bfbbc493381cc5b1f959
7040N/ACOMPONENT_ARCHIVE_URL= http://pkgs.fedoraproject.org/repo/pkgs/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)/103c9828f24820df86e55e7862e28974/$(COMPONENT_ARCHIVE)
7040N/ACOMPONENT_BUGDB= utility/docbook
7040N/A
7040N/ATPNO= 9459
7040N/A
7040N/ATEST_TARGET = $(NO_TESTS)
7040N/A
7040N/Ainclude $(WS_MAKE_RULES)/common.mk
7040N/A
7040N/ACOMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
7040N/ACOMPONENT_PREP_ACTION = \
7040N/A (cd $(@D) ; \
7040N/A aclocal -I . ; \
7040N/A autoconf ; \
7040N/A automake --add-missing --copy )
7040N/A
7040N/ACONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
7040N/ACONFIGURE_OPTIONS += --with-docdir=$(USRSHAREDOCDIR)
7040N/A
7040N/A# The /etc/sgml/catalog file is really generated by the
7040N/A# svc:/application/desktop-cache/docbook-dtds-update:default service.
7040N/A# We create (and deliver) an empty file so that if/when this package is
7040N/A# removed, then that file will be too.
7040N/ACOMPONENT_POST_INSTALL_ACTION += $(MKDIR) $(PROTOETCDIR)/sgml/docbook ;
7040N/ACOMPONENT_POST_INSTALL_ACTION += $(TOUCH) $(PROTOETCDIR)/sgml/catalog ;
7040N/A
7040N/A# The xmlcatalogs on the other hand are generated here, not by a service.
7040N/ASGMLXMLCATALOG=$(ETCDIR)/sgml/docbook/xmlcatalog
7040N/AXMLCATALOG=$(ETCDIR)/xml/catalog
7040N/A
7040N/A# Create an empty XML catalog.
7040N/ACOMPONENT_POST_INSTALL_ACTION += $(MKDIR) $(PROTOETCDIR)/xml ;
7040N/ACOMPONENT_POST_INSTALL_ACTION += \
7040N/A $(USRBINDIR)/xmlcatalog --noout --create $(PROTO_DIR)$(XMLCATALOG) ;
7040N/A
7040N/A# Now put the common DocBook entries in it
7040N/ACOMPONENT_POST_INSTALL_ACTION += \
7040N/A $(USRBINDIR)/xmlcatalog --noout --add "delegatePublic" \
7040N/A "-//OASIS//ENTITIES DocBook XML" \
7040N/A "file://$(SGMLXMLCATALOG)" $(PROTO_DIR)$(XMLCATALOG) ; \
7040N/A $(USRBINDIR)/xmlcatalog --noout --add "delegatePublic" \
7040N/A "-//OASIS//DTD DocBook XML" \
7040N/A "file://$(SGMLXMLCATALOG)" $(PROTO_DIR)$(XMLCATALOG) ; \
7040N/A $(USRBINDIR)/xmlcatalog --noout --add "delegatePublic" \
7040N/A "ISO 8879:1986" \
7040N/A "file://$(SGMLXMLCATALOG)" $(PROTO_DIR)$(XMLCATALOG) ; \
7040N/A $(USRBINDIR)/xmlcatalog --noout --add "delegateSystem" \
7040N/A "http://www.oasis-open.org/docbook/" \
7040N/A "file://$(SGMLXMLCATALOG)" $(PROTO_DIR)$(XMLCATALOG) ; \
7040N/A $(USRBINDIR)/xmlcatalog --noout --add "delegateURI" \
7040N/A "http://www.oasis-open.org/docbook/" \
7040N/A "file://$(SGMLXMLCATALOG)" $(PROTO_DIR)$(XMLCATALOG) ;
7040N/A
7040N/A# Also create the common DocBook catalog
7040N/ACOMPONENT_POST_INSTALL_ACTION += \
7040N/A $(USRBINDIR)/xmlcatalog --noout --create \
7040N/A $(PROTO_DIR)$(SGMLXMLCATALOG) ;
7040N/A
7040N/A# library/libxml2 provides the xmlcatalog command run above
7040N/AREQUIRED_PACKAGES += library/libxml2
7040N/AREQUIRED_PACKAGES += shell/ksh93