4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
23 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
26 include ..
/..
/make-rules
/shared-macros.mk
29 COMPONENT_VERSION
= 1.0.0
30 COMPONENT_PROJECT_URL
= http
://tidy.sourceforge.net
/
31 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
32 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
33 COMPONENT_ARCHIVE_HASH
= \
34 sha256
:074023e48ed151db743d194af1028e4a17fa72a18e4069b4f18d4683db4bb9cf
35 COMPONENT_ARCHIVE_URL
= http
://dlc.openindiana.org
/oi-build
/source-archives
/$(COMPONENT_ARCHIVE
)
36 COMPONENT_BUGDB
= library
/tidy
38 include ..
/..
/make-rules
/prep.mk
39 include ..
/..
/make-rules
/configure.mk
40 include ..
/..
/make-rules
/ips.mk
42 #tree.js, treeview.js, tidyenum_8h.html are installed
43 #from files directory manually as doxygen didn't generate them.
44 #This needs to be fixed later.
46 COMPONENT_PREP_ACTION
= \
47 (cd
$(SOURCE_DIR
); doxygen htmldoc
/doxygen.cfg
)
49 CONFIGURE_OPTIONS
+= --disable-static
50 CONFIGURE_OPTIONS
+= --enable-access
51 CONFIGURE_OPTIONS
+= --enable-utf16
52 CONFIGURE_OPTIONS
+= --enable-asian
54 COMPONENT_PRE_CONFIGURE_ACTION
= \
55 ($(CP
) -r
$(SOURCE_DIR
)/test $(@D
))
57 PROTODOCDIR
=$(PROTOUSRSHAREDIR
)/doc
/tidy
62 # ASLR_MODE = $(ASLR_ENABLE)
64 COMPONENT_TEST_DIR
= $(@D
)/test
65 COMPONENT_TEST_CMD
= .
/testall.sh
66 COMPONENT_TEST_TARGETS
=
68 # Master test results are the same for both 32-bit and 64-bit, so override
69 # here, rather than create multiple identical master files.
70 COMPONENT_TEST_MASTER
= $(COMPONENT_TEST_RESULTS_DIR
)/results-all.master
73 build
: $(BUILD_32_and_64
)
75 install: $(INSTALL_32_and_64
) $(PROTODOCDIR
)
76 $(CP
) -r
$(SOURCE_DIR
)/htmldoc
/api
$(PROTODOCDIR
)
78 test: $(TEST_32_and_64
)
80 BUILD_PKG_DEPENDENCIES
= $(BUILD_TOOLS
)
82 include ..
/..
/make-rules
/depend.mk