Makefile revision 2899
2073N/A#
2073N/A# CDDL HEADER START
2073N/A#
2073N/A# The contents of this file are subject to the terms of the
2073N/A# Common Development and Distribution License (the "License").
2073N/A# You may not use this file except in compliance with the License.
2073N/A#
2073N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2073N/A# or http://www.opensolaris.org/os/licensing.
2073N/A# See the License for the specific language governing permissions
2073N/A# and limitations under the License.
2073N/A#
2073N/A# When distributing Covered Code, include this CDDL HEADER in each
2073N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2073N/A# If applicable, add the following below this CDDL HEADER, with the
2073N/A# fields enclosed by brackets "[]" replaced with your own identifying
2073N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2073N/A#
2073N/A# CDDL HEADER END
2073N/A#
2073N/A
2073N/A#
2899N/A# Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
2073N/A#
2073N/A
2073N/Ainclude ../../make-rules/shared-macros.mk
2073N/A
2073N/ACOMPONENT_NAME= asciidoc
2073N/ACOMPONENT_VERSION= 8.6.8
2073N/ACOMPONENT_PROJECT_URL= http://www.methods.co.nz/asciidoc/
2073N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
2073N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
2073N/ACOMPONENT_ARCHIVE_HASH= \
2073N/A sha256:ffb67f59dccaf6f15db72fcd04fdf21a2f9b703d31f94fcd0c49a424a9fcfbc4
2073N/ACOMPONENT_ARCHIVE_URL= http://downloads.sourceforge.net/project/$(COMPONENT_NAME)/$(COMPONENT_NAME)/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
2073N/ACOMPONENT_BUGDB= utility/asciidoc
2073N/A
2899N/ATPNO= 14505
2899N/A
2073N/Ainclude ../../make-rules/prep.mk
2073N/Ainclude ../../make-rules/configure.mk
2073N/Ainclude ../../make-rules/ips.mk
2073N/A
2073N/A# AsciiDoc configuration and data files belong in /usr/share, not /etc based
2073N/A# on discussion from ARC pre-review.
2073N/A#
2073N/ACONFIGURE_OPTIONS += --sysconfdir=/usr/share
2073N/A
2073N/A# pkgdepend doesn't like the first line of a Python script to be:
2073N/A# '#!/usr/bin/env python' so turn it into '#!/usr/bin/python$(PYTHON_VERSION)'
2073N/A#
2073N/ACOMPONENT_POST_INSTALL_ACTION += \
2073N/A $(GSED) -i -e 's?env python?python$(PYTHON_VERSION)?' \
2073N/A $(PROTOUSRBINDIR64)/asciidoc.py;
2073N/ACOMPONENT_POST_INSTALL_ACTION += \
2073N/A $(GSED) -i -e 's?env python?python$(PYTHON_VERSION)?' \
2073N/A $(PROTOUSRBINDIR64)/a2x.py;
2073N/A
2073N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
2073N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
2073N/A
2073N/AASLR_MODE = $(ASLR_ENABLE)
2073N/A
2073N/A# common targets
2073N/Abuild: $(BUILD_64)
2073N/A
2073N/Ainstall: $(INSTALL_64)
2073N/A
2073N/A# Tests require image/graphviz to be installed. Some tests also want to run
2073N/A# programs named latex, lilypad, abc2ly and source-highlight which are not
2073N/A# available on Solaris, so these tests fail.
2073N/A#
2073N/ACOMPONENT_PRE_TEST_ACTION = \
2073N/A (cd $(@D); \
2073N/A ln -s asciidoc.py asciidoc; \
2073N/A export PATH=$(@D):$$PATH; \
2073N/A cd tests; \
2073N/A python$(PYTHON_VERSION) ./asciidocapi.py; \
2073N/A if [ $$? -eq 0 ] ; \
2073N/A then print "asciidocapi test passed"; else print "asciidocapi test failed"; \
2073N/A fi; \
2073N/A python$(PYTHON_VERSION) ./testasciidoc.py update; \
2073N/A python$(PYTHON_VERSION) ./testasciidoc.py run; )
2073N/A
2073N/Atest: $(TEST_64)
2073N/A
2073N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
2073N/A
2073N/Ainclude ../../make-rules/depend.mk