21 |
21 |
22 # |
22 # |
23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
24 # |
24 # |
25 BUILD_BITS= 64_and_32 |
25 BUILD_BITS= 64_and_32 |
|
26 COMPILER= gcc |
26 include ../../make-rules/shared-macros.mk |
27 include ../../make-rules/shared-macros.mk |
27 |
28 |
28 COMPONENT_NAME= tidy |
29 COMPONENT_NAME= tidy |
29 COMPONENT_VERSION= 1.0.0 |
30 COMPONENT_VERSION= 5.2.0 |
30 COMPONENT_PROJECT_URL= http://tidy.sourceforge.net/ |
31 COMPONENT_PROJECT_URL= http://www.html-tidy.org/ |
|
32 COMPONENT_SRC_NAME= tidy-html5 |
31 COMPONENT_ARCHIVE_HASH= \ |
33 COMPONENT_ARCHIVE_HASH= \ |
32 sha256:074023e48ed151db743d194af1028e4a17fa72a18e4069b4f18d4683db4bb9cf |
34 sha256:80533415acf11ac55f24b874ab39448e390ffec3c2b93df4b857d15602fc7c4d |
33 COMPONENT_ARCHIVE_URL= $(EXTERNAL_ARCHIVE_MIRROR)/$(SOURCE_ARCHIVE) |
35 COMPONENT_ARCHIVE_URL= https://github.com/htacg/tidy-html5/archive/$(COMPONENT_VERSION).tar.gz |
34 COMPONENT_BUGDB= library/tidy |
36 COMPONENT_BUGDB= library/tidy |
35 |
37 |
36 TPNO= 9098 |
38 TPNO= 30761 |
37 |
39 |
|
40 BUILD_STYLE= cmake |
38 SYSTEM_TEST_TARGET= $(SYSTEM_TEST_32_and_64) |
41 SYSTEM_TEST_TARGET= $(SYSTEM_TEST_32_and_64) |
39 include $(WS_MAKE_RULES)/common.mk |
42 include $(WS_MAKE_RULES)/common.mk |
40 |
43 |
41 #tree.js, treeview.js, tidyenum_8h.html are installed |
44 CMAKE_OPTIONS += -DBUILD_TAB2SPACE=ON |
42 #from files directory manually as doxygen didn't generate them. |
|
43 #This needs to be fixed later. |
|
44 |
45 |
45 COMPONENT_PREP_ACTION = \ |
46 # Needed for the 64-bit tab2space executable. |
46 (cd $(SOURCE_DIR); doxygen htmldoc/doxygen.cfg) |
47 PKG_PROTO_DIRS += $(BUILD_DIR_64) |
47 |
|
48 CONFIGURE_OPTIONS += --disable-static |
|
49 CONFIGURE_OPTIONS += --enable-access |
|
50 CONFIGURE_OPTIONS += --enable-utf16 |
|
51 CONFIGURE_OPTIONS += --enable-asian |
|
52 |
|
53 COMPONENT_PRE_CONFIGURE_ACTION = \ |
|
54 ($(CP) -r $(SOURCE_DIR)/test $(@D)) |
|
55 |
|
56 PROTODOCDIR=$(PROTOUSRSHAREDOCDIR)/tidy |
|
57 |
|
58 COMPONENT_TEST_DIR = $(@D)/test |
|
59 COMPONENT_TEST_CMD = ./testall.sh |
|
60 COMPONENT_TEST_TARGETS = |
|
61 |
|
62 # Master test results are the same for both 32-bit and 64-bit, so override |
|
63 # here, rather than create multiple identical master files. |
|
64 COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master |
|
65 |
|
66 COMPONENT_SYSTEM_TEST_ENV = TIDY_BIN=/usr/bin/tidy |
|
67 COMPONENT_SYSTEM_TEST_DIR = $(SOURCE_DIR)/test |
|
68 COMPONENT_SYSTEM_TEST_CMD = ./testall.sh |
|
69 COMPONENT_SYSTEM_TEST_TARGETS = |
|
70 |
|
71 COMPONENT_POST_INSTALL_ACTION += \ |
|
72 ($(MKDIR) $(PROTODOCDIR); \ |
|
73 $(CP) -r $(SOURCE_DIR)/htmldoc/api $(PROTODOCDIR)) |
|
74 |
|
75 REQUIRED_PACKAGES += developer/documentation-tool/doxygen |
|