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
= \
25 sha256
:1d2d7996cc94f9b87d0c51cf0e028070ac177c4123ecbfd7ac1cb8d0b7d322d1
26 COMPONENT_ARCHIVE_URL
= \
27 http
://sourceforge.net
/projects
/openjade
/files
/openjade
/$(COMPONENT_VERSION
)/$(COMPONENT_ARCHIVE
)
28 COMPONENT_PROJECT_URL
= http
://openjade.sourceforge.net
/
29 COMPONENT_FMRI
= developer
/documentation-tool
/openjade
30 COMPONENT_CLASSIFICATION
= System
/Text Tools
31 COMPONENT_LICENSE
= MIT-like
32 COMPONENT_LICENSE_FILE
= COPYING
34 include $(WS_MAKE_RULES
)/prep.mk
35 include $(WS_MAKE_RULES
)/configure.mk
36 include $(WS_MAKE_RULES
)/ips.mk
40 COMPONENT_PREP_ACTION
= ( cp
$(COMPONENT_DIR
)/files
/jade_style-sheet.dtd
$(@D
)/dsssl
&&\
42 rm -f aclocal.m4 missing
&&\
43 cp config
/configure.in .
&&\
44 libtoolize
--force &&\
48 # The linker is too agressive
51 # Missing files in build dir for configure without this.
52 COMPONENT_PRE_CONFIGURE_ACTION
= ($(CLONEY
) $(SOURCE_DIR
) $(@D
))
54 CONFIGURE_SCRIPT
= $(@D
)/configure
56 CONFIGURE_OPTIONS
+= --disable-static
57 CONFIGURE_OPTIONS
+= --enable-spincludedir
=/usr
/include/OpenSP
58 CONFIGURE_OPTIONS
+= --datadir=/usr
/share
/sgml
/openjade
59 CONFIGURE_OPTIONS
+= --enable-splibdir
=/usr
/lib
60 CONFIGURE_OPTIONS
+= --disable-http
61 CONFIGURE_OPTIONS
+= --enable-mif
62 CONFIGURE_OPTIONS
+= --enable-default-catalog
="CATALOG:/etc/sgml/catalog:/usr/share/sgml/CATALOG"
63 CONFIGURE_OPTIONS
+= LINKFLAGS
="$(LDFLAGS)"
65 COMPONENT_INSTALL_TARGETS
= install install-man
67 INSTALL_HEADERS
= $(BUILD_DIR
)/.install_headers
68 INSTALL_SGML
= $(BUILD_DIR
)/.install_sgml
70 $(INSTALL_HEADERS
): $(INSTALL_32
)
71 [ -d
$(PROTO_DIR
)/usr
/include/openjade
] ||
$(MKDIR
) $(PROTO_DIR
)/usr
/include/openjade
72 cp
$(SOURCE_DIR
)/generic
/*.h
$(SOURCE_DIR
)/grove
/Node.h
$(SOURCE_DIR
)/spgrove
/GroveApp.h
$(PROTO_DIR
)/usr
/include/openjade
73 cp
$(SOURCE_DIR
)/spgrove
/GroveBuilder.h
$(SOURCE_DIR
)/style
/FOTBuilder.h
$(SOURCE_DIR
)/style
/GroveManager.h
$(PROTO_DIR
)/usr
/include/openjade
74 cp
$(SOURCE_DIR
)/style
/DssslApp.h
$(SOURCE_DIR
)/style
/dsssl_ns.h
$(PROTO_DIR
)/usr
/include/openjade
77 $(INSTALL_SGML
): $(INSTALL_32
)
78 install -d
$(PROTO_DIR
)/usr
/share
/sgml
/openjade
79 pushd
$(SOURCE_DIR
)/dsssl
&&\
80 cp catalog dsssl.dtd extensions.dsl fot.dtd style-sheet.dtd \
81 builtins.dsl jade_style-sheet.dtd
$(PROTO_DIR
)/usr
/share
/sgml
/openjade
&&\
82 install -d
$(PROTO_DIR
)/var
/lib
/sgml
&&\
83 sed
's:"\([^"]*\(dtd\|dsl\)\)"$$:"/usr/share/sgml/openjade/\1":' catalog
> $(PROTO_DIR
)/var
/lib
/sgml
/CATALOG.openjade
&&\
84 ln
-sf CATALOG.openjade
$(PROTO_DIR
)/var
/lib
/sgml
/CATALOG.jade_dsl
&&\
85 cd
$(PROTO_DIR
)/usr
/share
/sgml
&&\
86 ln
-sf ..
/..
/..
/..
/var
/lib
/sgml
/CATALOG.openjade CATALOG.openjade
&&\
87 ln
-sf ..
/..
/..
/..
/var
/lib
/sgml
/CATALOG.openjade CATALOG.jade_dsl
&&\
89 install -d
$(PROTO_DIR
)/usr
/share
/sgml
/James_Clark
/dtd
90 install -d
$(PROTO_DIR
)/usr
/share
/sgml
/OpenJade
/dtd
91 install -d
$(PROTO_DIR
)/usr
/share
/sgml
/ISO_IEC_10179
:1996/dtd
92 cd
$(PROTO_DIR
)/usr
/share
/sgml
/James_Clark
/dtd
&&\
93 ln
-sf ..
/..
/openjade
/jade_style-sheet.dtd DSSSL_Style_Sheet
&&\
94 ln
-sf ..
/..
/openjade
/fot.dtd DSSSL_Flow_Object_Tree
95 cd
$(PROTO_DIR
)/usr
/share
/sgml
/OpenJade
/dtd
&&\
96 ln
-sf ..
/..
/openjade
/style-sheet.dtd DSSSL_Style_Sheet
97 cd
$(PROTO_DIR
)/usr
/share
/sgml
/ISO_IEC_10179
:1996/dtd
&&\
98 ln
-sf ..
/..
/openjade
/dsssl.dtd DSSSL_Architecture
99 pushd
$(PROTO_DIR
)/usr
/share
/sgml
/openjade
&&\
100 ln
-sf ..
/opensp
/japan.dcl .
&&\
101 ln
-sf ..
/opensp
/opensp-implied.dcl sp_implied.dcl
&&\
102 ln
-sf ..
/opensp
/xml.dcl .
&&\
103 ln
-sf ..
/opensp
/xml.soc .
&&\
105 rm -f
$${d
/.dcl
/.decl
};\
106 ln
-sf
$$d $${d
/.dcl
/.decl
} ; \
113 install: $(INSTALL_32
) $(INSTALL_HEADERS
) $(INSTALL_SGML
)
115 # Auto-generated dependencies
116 REQUIRED_PACKAGES
+= developer
/documentation-tool
/opensp
117 REQUIRED_PACKAGES
+= system
/library
118 REQUIRED_PACKAGES
+= $(GXX_RUNTIME_PKG
)
119 REQUIRED_PACKAGES
+= $(GCC_RUNTIME_PKG
)
120 REQUIRED_PACKAGES
+= system
/library
/math