Makefile revision 4885
2441N/A#
2441N/A# CDDL HEADER START
2441N/A#
2441N/A# The contents of this file are subject to the terms of the
2441N/A# Common Development and Distribution License (the "License").
2441N/A# You may not use this file except in compliance with the License.
2441N/A#
2441N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2441N/A# or http://www.opensolaris.org/os/licensing.
2441N/A# See the License for the specific language governing permissions
2441N/A# and limitations under the License.
2441N/A#
2441N/A# When distributing Covered Code, include this CDDL HEADER in each
2441N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2441N/A# If applicable, add the following below this CDDL HEADER, with the
2441N/A# fields enclosed by brackets "[]" replaced with your own identifying
2441N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2441N/A#
2441N/A# CDDL HEADER END
2441N/A#
2441N/A
2441N/A#
3817N/A# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
2441N/A#
2441N/A
2441N/Ainclude ../../make-rules/shared-macros.mk
2441N/A
2441N/ACOMPONENT_NAME= xmlto
4081N/ACOMPONENT_VERSION= 0.0.26
2441N/ACOMPONENT_PROJECT_URL= https://fedorahosted.org/xmlto/
2441N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
2441N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
2441N/ACOMPONENT_ARCHIVE_HASH= \
4081N/A sha256:cfd8d2a26077be1d5566dfe22dd66099ae4f4600dea97d6e113a2cc5b8708977
2441N/ACOMPONENT_ARCHIVE_URL= https://fedorahosted.org/releases/x/m/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
2441N/ACOMPONENT_BUGDB= utility/xmlto
2441N/A
4081N/ATPNO= 22220
2899N/A
3817N/Ainclude $(WS_MAKE_RULES)/prep.mk
3817N/Ainclude $(WS_MAKE_RULES)/configure.mk
3817N/Ainclude $(WS_MAKE_RULES)/ips.mk
2441N/A
2441N/A# These will be used by the xmlto script.
2441N/ACONFIGURE_ENV += FIND="/usr/gnu/bin/find"
2441N/ACONFIGURE_ENV += GETOPT="/usr/gnu/bin/getopt"
2441N/ACONFIGURE_ENV += GREP="/usr/gnu/bin/grep"
2441N/ACONFIGURE_ENV += TAIL="/usr/gnu/bin/tail"
2441N/A
2441N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
2441N/A
4557N/A# Strip compilation lines from test output
4557N/ACOMPONENT_TEST_TRANSFORMS += \
4557N/A '-e "s|^.*$(CC).*$$|XXX_CC_XXX|g" ' \
4557N/A '-e "s|^.*source=.*libtool=no.*$$|XXX_CC_XXX|g" ' \
4557N/A '-e "s|^.*DEPDIR=.deps.*$$|XXX_CC_XXX|g" ' \
4557N/A '-e "s|^.*xmlif.l.*$$|XXX_CC_XXX|g" ' \
4557N/A '-e "s|^make.*: Leaving directory.*$$|XXX_CC_XXX|g" ' \
4557N/A '-e "s|^make.*: Entering directory.*$$|XXX_CC_XXX|g" ' \
4557N/A '-e "/^XXX_CC_XXX$$/d" '
4557N/A
4557N/ACOMPONENT_SYSTEM_TEST_ENV += top_srcdir=$(SOURCE_DIR)
4557N/ACOMPONENT_SYSTEM_TEST_ENV += top_builddir=$(BUILD_DIR)
4557N/ACOMPONENT_PRE_SYSTEM_TEST_ACTION += \
4557N/A $(GSED) -i -e "s|^XMLIF=.*$$|XMLIF=/usr/bin/xmlif|" \
4557N/A $(SOURCE_DIR)/xmlif/test/run-test
4557N/A
2441N/AASLR_MODE = $(ASLR_ENABLE)
2441N/A
3477N/Aconfigure: $(CONFIGURE_64)
3477N/A
2441N/Abuild: $(BUILD_64)
2441N/A
2441N/Ainstall: $(INSTALL_64)
2441N/A
2441N/Atest: $(TEST_64)
2441N/A
4557N/Asystem-test: configure $(SYSTEM_TEST_64)
4337N/A
2441N/A
3817N/AREQUIRED_PACKAGES += file/gnu-coreutils
3817N/AREQUIRED_PACKAGES += file/gnu-findutils
3817N/AREQUIRED_PACKAGES += library/libxml2
3817N/AREQUIRED_PACKAGES += library/libxslt
3817N/AREQUIRED_PACKAGES += shell/bash
3817N/AREQUIRED_PACKAGES += shell/gnu-getopt
3817N/AREQUIRED_PACKAGES += system/library
3817N/AREQUIRED_PACKAGES += text/gnu-grep
4885N/AREQUIRED_PACKAGES += web/browser/lynx