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
21 COMPONENT_SUMMARY
= OpenJade DSSSL-Engine for SGML documents
22 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
23 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
24 COMPONENT_ARCHIVE_HASH
= sha256
:1d2d7996cc94f9b87d0c51cf0e028070ac177c4123ecbfd7ac1cb8d0b7d322d1
25 COMPONENT_ARCHIVE_URL
= https
://sourceforge.net
/projects
/openjade
/files
/openjade
/$(COMPONENT_VERSION
)/$(COMPONENT_ARCHIVE
)
26 COMPONENT_PROJECT_URL
= https
://openjade.sourceforge.net
/
27 COMPONENT_FMRI
= developer
/documentation-tool
/openjade
28 COMPONENT_CLASSIFICATION
= System
/Text Tools
29 COMPONENT_LICENSE
= MIT
30 COMPONENT_LICENSE_FILE
= COPYING
32 # openjade segfaults in libostyle.so when compiled using gcc 10 or later.
33 # This needs to be defined before include common.mk otherwise USERLAND_REQUIRED_PACKAGES won't be correct.
36 include $(WS_MAKE_RULES
)/common.mk
40 COMPONENT_PREP_ACTION
= ( \
41 cp
$(COMPONENT_DIR
)/files
/jade_style-sheet.dtd
$(@D
)/dsssl
&&\
43 rm -f aclocal.m4 missing
&&\
44 cp config
/configure.in .
&&\
45 PATH
="$(PATH)" libtoolize
--force &&\
49 # The linker is too agressive
52 # Missing files in build dir for configure without this.
53 COMPONENT_PRE_CONFIGURE_ACTION
= ( $(CLONEY
) $(SOURCE_DIR
) $(@D
) )
55 CONFIGURE_SCRIPT
= $(@D
)/configure
57 CONFIGURE_OPTIONS
+= --disable-static
58 CONFIGURE_OPTIONS
+= --enable-spincludedir
=$(USRINCDIR
)/OpenSP
59 CONFIGURE_OPTIONS
+= --datadir=$(USRSHAREDIR
)/sgml
/openjade
60 CONFIGURE_OPTIONS
+= --enable-splibdir
=$(USRLIBDIR.
$(BITS
))
61 CONFIGURE_OPTIONS
+= --disable-http
62 CONFIGURE_OPTIONS
+= --enable-mif
63 CONFIGURE_OPTIONS
+= --enable-default-catalog
="CATALOG:/etc/sgml/catalog:$(USRSHAREDIR)/sgml/CATALOG"
64 CONFIGURE_OPTIONS
+= LINKFLAGS
="$(LDFLAGS)"
66 COMPONENT_INSTALL_TARGETS
= install install-man
68 # We need jade symlink
69 COMPONENT_POST_INSTALL_ACTION
+= $(SYMLINK
) openjade
$(PROTOUSRBINDIR
)/jade
;
72 COMPONENT_POST_INSTALL_ACTION
+= \
73 $(INSTALL
) -d
$(PROTOUSRINCDIR
)/openjade
; \
75 $(SOURCE_DIR
)/generic
/*.h
$(SOURCE_DIR
)/grove
/Node.h
$(SOURCE_DIR
)/spgrove
/GroveApp.h \
76 $(SOURCE_DIR
)/spgrove
/GroveBuilder.h
$(SOURCE_DIR
)/style
/FOTBuilder.h
$(SOURCE_DIR
)/style
/GroveManager.h \
77 $(SOURCE_DIR
)/style
/DssslApp.h
$(SOURCE_DIR
)/style
/dsssl_ns.h
; do \
78 $(INSTALL
) $$f $(PROTOUSRINCDIR
)/openjade
; \
82 COMPONENT_POST_INSTALL_ACTION
+= \
83 $(INSTALL
) -d
$(PROTOUSRSHAREDIR
)/sgml
/openjade
; \
84 $(INSTALL
) -d
$(PROTOVARDIR
)/lib
/sgml
; \
85 cd
$(SOURCE_DIR
)/dsssl
&& \
86 $(CP
) catalog dsssl.dtd extensions.dsl fot.dtd style-sheet.dtd \
87 builtins.dsl jade_style-sheet.dtd
$(PROTOUSRSHAREDIR
)/sgml
/openjade
&& \
88 $(GSED
) 's:"\([^"]*\(dtd\|dsl\)\)"$$:"/usr/share/sgml/openjade/\1":' catalog
> $(PROTOVARDIR
)/lib
/sgml
/CATALOG.openjade
; \
89 $(SYMLINK
) CATALOG.openjade
$(PROTOVARDIR
)/lib
/sgml
/CATALOG.jade_dsl
; \
90 $(SYMLINK
) ..
/..
/..
/..
$(VARDIR
)/lib
/sgml
/CATALOG.openjade
$(PROTOUSRSHAREDIR
)/sgml
/CATALOG.openjade
; \
91 $(SYMLINK
) ..
/..
/..
/..
$(VARDIR
)/lib
/sgml
/CATALOG.openjade
$(PROTOUSRSHAREDIR
)/sgml
/CATALOG.jade_dsl
; \
92 $(INSTALL
) -d
$(PROTOUSRSHAREDIR
)/sgml
/James_Clark
/dtd
; \
93 $(INSTALL
) -d
$(PROTOUSRSHAREDIR
)/sgml
/OpenJade
/dtd
; \
94 $(INSTALL
) -d
$(PROTOUSRSHAREDIR
)/sgml
/ISO_IEC_10179
:1996/dtd
; \
95 $(SYMLINK
) ..
/..
/openjade
/jade_style-sheet.dtd
$(PROTOUSRSHAREDIR
)/sgml
/James_Clark
/dtd
/DSSSL_Style_Sheet
; \
96 $(SYMLINK
) ..
/..
/openjade
/fot.dtd
$(PROTOUSRSHAREDIR
)/sgml
/James_Clark
/dtd
/DSSSL_Flow_Object_Tree
; \
97 $(SYMLINK
) ..
/..
/openjade
/style-sheet.dtd
$(PROTOUSRSHAREDIR
)/sgml
/OpenJade
/dtd
/DSSSL_Style_Sheet
; \
98 $(SYMLINK
) ..
/..
/openjade
/dsssl.dtd
$(PROTOUSRSHAREDIR
)/sgml
/ISO_IEC_10179
:1996/dtd
/DSSSL_Architecture
; \
99 cd
$(PROTOUSRSHAREDIR
)/sgml
/openjade
&& \
100 $(SYMLINK
) ..
/opensp
/japan.dcl .
&& \
101 $(SYMLINK
) ..
/opensp
/opensp-implied.dcl sp_implied.dcl
&& \
102 $(SYMLINK
) ..
/opensp
/xml.dcl .
&& \
103 $(SYMLINK
) ..
/opensp
/xml.soc .
&& \
104 for d in
*.dcl
; do \
105 rm -f
$${d
/.dcl
/.decl
} ; \
106 $(SYMLINK
) $$d $${d
/.dcl
/.decl
} ; \
109 # Testing currently fails
110 COMPONENT_TEST_DIR
= $(@D
)/testsuite
111 COMPONENT_TEST_TARGETS
=
113 # Auto-generated dependencies
114 REQUIRED_PACKAGES
+= $(GCC_RUNTIME_PKG
)
115 REQUIRED_PACKAGES
+= $(GXX_RUNTIME_PKG
)
116 REQUIRED_PACKAGES
+= developer
/documentation-tool
/opensp
117 REQUIRED_PACKAGES
+= system
/library
118 REQUIRED_PACKAGES
+= system
/library
/math