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
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 2015 Alexander Pyhalov
16 include ..
/..
/make-rules
/shared-macros.mk
18 COMPONENT_NAME
= openjade
19 COMPONENT_VERSION
= 1.3.2
20 COMPONENT_SUMMARY
= OpenJade DSSSL-Engine for SGML documents
21 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
22 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
23 COMPONENT_ARCHIVE_HASH
= \
24 sha256
:1d2d7996cc94f9b87d0c51cf0e028070ac177c4123ecbfd7ac1cb8d0b7d322d1
25 COMPONENT_ARCHIVE_URL
= \
26 http
://sourceforge.net
/projects
/openjade
/files
/openjade
/$(COMPONENT_VERSION
)/$(COMPONENT_ARCHIVE
)
27 COMPONENT_PROJECT_URL
= http
://openjade.sourceforge.net
/
28 COMPONENT_FMRI
= developer
/documentation-tool
/openjade
29 COMPONENT_CLASSIFICATION
= System
/Text Tools
30 COMPONENT_LICENSE
= MIT-like
31 COMPONENT_LICENSE_FILE
= COPYING
33 include ..
/..
/make-rules
/prep.mk
34 include ..
/..
/make-rules
/configure.mk
35 include ..
/..
/make-rules
/ips.mk
37 PATH
=/usr
/gnu
/bin
:/usr
/bin
39 COMPONENT_PREP_ACTION
= ( cp
$(COMPONENT_DIR
)/files
/jade_style-sheet.dtd
$(@D
)/dsssl
&&\
41 rm -f aclocal.m4 missing
&&\
42 cp config
/configure.in .
&&\
43 libtoolize
--force &&\
47 # Missing files in build dir for configure without this.
48 COMPONENT_PRE_CONFIGURE_ACTION
= ($(CLONEY
) $(SOURCE_DIR
) $(@D
))
50 CONFIGURE_SCRIPT
= $(@D
)/configure
52 CONFIGURE_OPTIONS
+= --enable-spincludedir
=/usr
/include/OpenSP
53 CONFIGURE_OPTIONS
+= --datadir=/usr
/share
/sgml
/openjade
54 CONFIGURE_OPTIONS
+= --enable-splibdir
=/usr
/lib
55 CONFIGURE_OPTIONS
+= --disable-http
56 CONFIGURE_OPTIONS
+= --enable-mif
57 CONFIGURE_OPTIONS
+= --enable-default-catalog
="CATALOG:/etc/sgml/catalog:/usr/share/sgml/CATALOG"
59 COMPONENT_INSTALL_TARGETS
= install install-man
61 INSTALL_HEADERS
= $(BUILD_DIR
)/.install_headers
62 INSTALL_SGML
= $(BUILD_DIR
)/.install_sgml
64 $(INSTALL_HEADERS
): $(INSTALL_32
)
65 [ -d
$(PROTO_DIR
)/usr
/include/openjade
] ||
$(MKDIR
) $(PROTO_DIR
)/usr
/include/openjade
66 cp
$(SOURCE_DIR
)/generic
/*.h
$(SOURCE_DIR
)/grove
/Node.h
$(SOURCE_DIR
)/spgrove
/GroveApp.h
$(PROTO_DIR
)/usr
/include/openjade
67 cp
$(SOURCE_DIR
)/spgrove
/GroveBuilder.h
$(SOURCE_DIR
)/style
/FOTBuilder.h
$(SOURCE_DIR
)/style
/GroveManager.h
$(PROTO_DIR
)/usr
/include/openjade
68 cp
$(SOURCE_DIR
)/style
/DssslApp.h
$(SOURCE_DIR
)/style
/dsssl_ns.h
$(PROTO_DIR
)/usr
/include/openjade
71 $(INSTALL_SGML
): $(INSTALL_32
)
72 install -d
$(PROTO_DIR
)/usr
/share
/sgml
/openjade
73 pushd
$(SOURCE_DIR
)/dsssl
&&\
74 cp catalog dsssl.dtd extensions.dsl fot.dtd style-sheet.dtd \
75 builtins.dsl jade_style-sheet.dtd
$(PROTO_DIR
)/usr
/share
/sgml
/openjade
&&\
76 install -d
$(PROTO_DIR
)/var
/lib
/sgml
&&\
77 sed
's:"\([^"]*\(dtd\|dsl\)\)"$$:"/usr/share/sgml/openjade/\1":' catalog
> $(PROTO_DIR
)/var
/lib
/sgml
/CATALOG.openjade
&&\
78 ln
-sf CATALOG.openjade
$(PROTO_DIR
)/var
/lib
/sgml
/CATALOG.jade_dsl
&&\
79 cd
$(PROTO_DIR
)/usr
/share
/sgml
&&\
80 ln
-sf ..
/..
/..
/..
/var
/lib
/sgml
/CATALOG.openjade CATALOG.openjade
&&\
81 ln
-sf ..
/..
/..
/..
/var
/lib
/sgml
/CATALOG.openjade CATALOG.jade_dsl
&&\
83 install -d
$(PROTO_DIR
)/usr
/share
/sgml
/James_Clark
/dtd
84 install -d
$(PROTO_DIR
)/usr
/share
/sgml
/OpenJade
/dtd
85 install -d
$(PROTO_DIR
)/usr
/share
/sgml
/ISO_IEC_10179
:1996/dtd
86 cd
$(PROTO_DIR
)/usr
/share
/sgml
/James_Clark
/dtd
&&\
87 ln
-sf ..
/..
/openjade
/jade_style-sheet.dtd DSSSL_Style_Sheet
&&\
88 ln
-sf ..
/..
/openjade
/fot.dtd DSSSL_Flow_Object_Tree
89 cd
$(PROTO_DIR
)/usr
/share
/sgml
/OpenJade
/dtd
&&\
90 ln
-sf ..
/..
/openjade
/style-sheet.dtd DSSSL_Style_Sheet
91 cd
$(PROTO_DIR
)/usr
/share
/sgml
/ISO_IEC_10179
:1996/dtd
&&\
92 ln
-sf ..
/..
/openjade
/dsssl.dtd DSSSL_Architecture
93 pushd
$(PROTO_DIR
)/usr
/share
/sgml
/openjade
&&\
94 ln
-s ..
/opensp
/japan.dcl .
&&\
95 ln
-s ..
/opensp
/opensp-implied.dcl sp_implied.dcl
&&\
96 ln
-s ..
/opensp
/xml.dcl .
&&\
97 ln
-s ..
/opensp
/xml.soc .
&&\
99 rm -f
$${d
/.dcl
/.decl
};\
100 ln
-sf
$$d $${d
/.dcl
/.decl
} ; \
107 install: $(INSTALL_32
) $(INSTALL_HEADERS
) $(INSTALL_SGML
)