|
1 # |
|
2 # CDDL HEADER START |
|
3 # |
|
4 # The contents of this file are subject to the terms of the |
|
5 # Common Development and Distribution License (the "License"). |
|
6 # You may not use this file except in compliance with the License. |
|
7 # |
|
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
9 # or http://www.opensolaris.org/os/licensing. |
|
10 # See the License for the specific language governing permissions |
|
11 # and limitations under the License. |
|
12 # |
|
13 # When distributing Covered Code, include this CDDL HEADER in each |
|
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
15 # If applicable, add the following below this CDDL HEADER, with the |
|
16 # fields enclosed by brackets "[]" replaced with your own identifying |
|
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
|
18 # |
|
19 # CDDL HEADER END |
|
20 # |
|
21 |
|
22 # |
|
23 # Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. |
|
24 # |
|
25 |
|
26 BUILD_BITS= 64 |
|
27 include ../../../make-rules/shared-macros.mk |
|
28 |
|
29 COMPONENT_NAME= sgml-common |
|
30 COMPONENT_VERSION= 0.6.3 |
|
31 COMPONENT_PROJECT_URL= http://www.w3.org/2003/entities/ |
|
32 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz |
|
33 COMPONENT_ARCHIVE_HASH= \ |
|
34 sha256:7dc418c1d361123ffc5e45d61f1b97257940a8eb35d0bfbbc493381cc5b1f959 |
|
35 COMPONENT_ARCHIVE_URL= http://pkgs.fedoraproject.org/repo/pkgs/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)/103c9828f24820df86e55e7862e28974/$(COMPONENT_ARCHIVE) |
|
36 COMPONENT_BUGDB= utility/docbook |
|
37 |
|
38 TPNO= 9459 |
|
39 |
|
40 TEST_TARGET = $(NO_TESTS) |
|
41 |
|
42 include $(WS_MAKE_RULES)/common.mk |
|
43 |
|
44 COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D)) |
|
45 COMPONENT_PREP_ACTION = \ |
|
46 (cd $(@D) ; \ |
|
47 aclocal -I . ; \ |
|
48 autoconf ; \ |
|
49 automake --add-missing --copy ) |
|
50 |
|
51 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR) |
|
52 CONFIGURE_OPTIONS += --with-docdir=$(USRSHAREDOCDIR) |
|
53 |
|
54 # The /etc/sgml/catalog file is really generated by the |
|
55 # svc:/application/desktop-cache/docbook-dtds-update:default service. |
|
56 # We create (and deliver) an empty file so that if/when this package is |
|
57 # removed, then that file will be too. |
|
58 COMPONENT_POST_INSTALL_ACTION += $(MKDIR) $(PROTOETCDIR)/sgml/docbook ; |
|
59 COMPONENT_POST_INSTALL_ACTION += $(TOUCH) $(PROTOETCDIR)/sgml/catalog ; |
|
60 |
|
61 # The xmlcatalogs on the other hand are generated here, not by a service. |
|
62 SGMLXMLCATALOG=$(ETCDIR)/sgml/docbook/xmlcatalog |
|
63 XMLCATALOG=$(ETCDIR)/xml/catalog |
|
64 |
|
65 # Create an empty XML catalog. |
|
66 COMPONENT_POST_INSTALL_ACTION += $(MKDIR) $(PROTOETCDIR)/xml ; |
|
67 COMPONENT_POST_INSTALL_ACTION += \ |
|
68 $(USRBINDIR)/xmlcatalog --noout --create $(PROTO_DIR)$(XMLCATALOG) ; |
|
69 |
|
70 # Now put the common DocBook entries in it |
|
71 COMPONENT_POST_INSTALL_ACTION += \ |
|
72 $(USRBINDIR)/xmlcatalog --noout --add "delegatePublic" \ |
|
73 "-//OASIS//ENTITIES DocBook XML" \ |
|
74 "file://$(SGMLXMLCATALOG)" $(PROTO_DIR)$(XMLCATALOG) ; \ |
|
75 $(USRBINDIR)/xmlcatalog --noout --add "delegatePublic" \ |
|
76 "-//OASIS//DTD DocBook XML" \ |
|
77 "file://$(SGMLXMLCATALOG)" $(PROTO_DIR)$(XMLCATALOG) ; \ |
|
78 $(USRBINDIR)/xmlcatalog --noout --add "delegatePublic" \ |
|
79 "ISO 8879:1986" \ |
|
80 "file://$(SGMLXMLCATALOG)" $(PROTO_DIR)$(XMLCATALOG) ; \ |
|
81 $(USRBINDIR)/xmlcatalog --noout --add "delegateSystem" \ |
|
82 "http://www.oasis-open.org/docbook/" \ |
|
83 "file://$(SGMLXMLCATALOG)" $(PROTO_DIR)$(XMLCATALOG) ; \ |
|
84 $(USRBINDIR)/xmlcatalog --noout --add "delegateURI" \ |
|
85 "http://www.oasis-open.org/docbook/" \ |
|
86 "file://$(SGMLXMLCATALOG)" $(PROTO_DIR)$(XMLCATALOG) ; |
|
87 |
|
88 # Also create the common DocBook catalog |
|
89 COMPONENT_POST_INSTALL_ACTION += \ |
|
90 $(USRBINDIR)/xmlcatalog --noout --create \ |
|
91 $(PROTO_DIR)$(SGMLXMLCATALOG) ; |
|
92 |
|
93 # library/libxml2 provides the xmlcatalog command run above |
|
94 REQUIRED_PACKAGES += library/libxml2 |
|
95 REQUIRED_PACKAGES += shell/ksh93 |