Makefile revision 2899
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# CDDL HEADER START
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# The contents of this file are subject to the terms of the
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# Common Development and Distribution License (the "License").
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# You may not use this file except in compliance with the License.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# or http://www.opensolaris.org/os/licensing.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# See the License for the specific language governing permissions
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# and limitations under the License.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# When distributing Covered Code, include this CDDL HEADER in each
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# If applicable, add the following below this CDDL HEADER, with the
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# fields enclosed by brackets "[]" replaced with your own identifying
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# information: Portions Copyright [yyyy] [name of copyright owner]
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# CDDL HEADER END
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwinclude ../../make-rules/shared-macros.mk
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPONENT_NAME= tidy
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPONENT_VERSION= 1.0.0
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPONENT_PROJECT_URL= http://tidy.sourceforge.net/
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPONENT_ARCHIVE_HASH= \
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw sha256:074023e48ed151db743d194af1028e4a17fa72a18e4069b4f18d4683db4bb9cf
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPONENT_ARCHIVE_URL= $(EXTERNAL_ARCHIVE_MIRROR)/$(SOURCE_ARCHIVE)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPONENT_BUGDB= library/tidy
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwTPNO= 9098
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwinclude ../../make-rules/prep.mk
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwinclude ../../make-rules/configure.mk
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwinclude ../../make-rules/ips.mk
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwinclude ../../make-rules/lint-libraries.mk
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#tree.js, treeview.js, tidyenum_8h.html are installed
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#from files directory manually as doxygen didn't generate them.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#This needs to be fixed later.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCOMPONENT_PREP_ACTION = \
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw (cd $(SOURCE_DIR); doxygen htmldoc/doxygen.cfg)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
CONFIGURE_OPTIONS += --disable-static
CONFIGURE_OPTIONS += --enable-access
CONFIGURE_OPTIONS += --enable-utf16
CONFIGURE_OPTIONS += --enable-asian
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
COMPONENT_PRE_CONFIGURE_ACTION = \
($(CP) -r $(SOURCE_DIR)/test $(@D))
PROTODOCDIR=$(PROTOUSRSHAREDIR)/doc/tidy
$(PROTODOCDIR):
$(MKDIR) $@
ASLR_MODE = $(ASLR_ENABLE)
# common targets
build: $(BUILD_32_and_64)
install: $(INSTALL_32_and_64) $(PROTODOCDIR)
$(CP) -r $(SOURCE_DIR)/htmldoc/api $(PROTODOCDIR)
test: $(TEST_32_and_64)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk