p7zip: update to 17.05
[oi-userland.git] / components / docbook / sgml-common / Makefile
blob3952144f20d959bb4348fda2f6c9a3539e3ddbeb
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
5 # 1.0 of the CDDL.
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2014 Alexander Pyhalov. All rights reserved.
16 include ../../../make-rules/shared-macros.mk
18 COMPONENT_NAME= sgml-common
19 COMPONENT_VERSION= 0.6.3
20 COMPONENT_SUMMARY= Common SGML catalog and DTD files
21 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
22 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
23 COMPONENT_ARCHIVE_HASH= \
24 sha256:7dc418c1d361123ffc5e45d61f1b97257940a8eb35d0bfbbc493381cc5b1f959
25 COMPONENT_ARCHIVE_URL= \
26 ftp://sources.redhat.com/pub/docbook-tools/new-trials/SOURCES/$(COMPONENT_ARCHIVE)
28 include $(WS_TOP)/make-rules/prep.mk
29 include $(WS_TOP)/make-rules/configure.mk
30 include $(WS_TOP)/make-rules/ips.mk
32 XMLCATALOG=$(PROTO_DIR)/etc/xml/catalog
34 COMPONENT_PREP_ACTION +=(cd $(@D) && \
35 aclocal && \
36 autoconf &&\
37 automake --add-missing --copy );
39 # Missing files in build dir for configure without this.
40 COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
42 CONFIGURE_OPTIONS+= --sysconfdir=/etc
43 CONFIGURE_OPTIONS+= --with-docdir=$(USRSHAREDOCDIR)
45 build: $(BUILD_32)
47 install: $(INSTALL_32)
48 $(MKDIR) $(PROTO_DIR)/etc/xml $(PROTO_DIR)/usr/share/sgml/docbook
49 # Create an empty XML catalog.
50 /usr/bin/xmlcatalog --noout --create $(XMLCATALOG)
51 # Now put the common DocBook entries in it
52 /usr/bin/xmlcatalog --noout --add "delegatePublic" "-//OASIS//ENTITIES DocBook XML" "file:///usr/share/sgml/docbook/xmlcatalog" $(XMLCATALOG)
53 /usr/bin/xmlcatalog --noout --add "delegatePublic" "-//OASIS//DTD DocBook XML" "file:///usr/share/sgml/docbook/xmlcatalog" $(XMLCATALOG)
54 /usr/bin/xmlcatalog --noout --add "delegatePublic" "ISO 8879:1986" "file:///usr/share/sgml/docbook/xmlcatalog" $(XMLCATALOG)
55 /usr/bin/xmlcatalog --noout --add "delegateSystem" "http://www.oasis-open.org/docbook/" "file:///usr/share/sgml/docbook/xmlcatalog" $(XMLCATALOG)
56 /usr/bin/xmlcatalog --noout --add "delegateURI" "http://www.oasis-open.org/docbook/" "file:///usr/share/sgml/docbook/xmlcatalog" $(XMLCATALOG)
57 # Also create the common DocBook catalog
58 /usr/bin/xmlcatalog --noout --create $(PROTO_DIR)/usr/share/sgml/docbook/xmlcatalog
59 $(TOUCH) $(PROTO_DIR)/etc/sgml/catalog