7418N/A#
7418N/A# CDDL HEADER START
7418N/A#
7418N/A# The contents of this file are subject to the terms of the
7418N/A# Common Development and Distribution License (the "License").
7418N/A# You may not use this file except in compliance with the License.
7418N/A#
7418N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7418N/A# or http://www.opensolaris.org/os/licensing.
7418N/A# See the License for the specific language governing permissions
7418N/A# and limitations under the License.
7418N/A#
7418N/A# When distributing Covered Code, include this CDDL HEADER in each
7418N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7418N/A# If applicable, add the following below this CDDL HEADER, with the
7418N/A# fields enclosed by brackets "[]" replaced with your own identifying
7418N/A# information: Portions Copyright [yyyy] [name of copyright owner]
7418N/A#
7418N/A# CDDL HEADER END
7418N/A#
7418N/A
7418N/A#
7418N/A# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
7418N/A#
7418N/ABUILD_BITS = 64
7418N/Ainclude ../../make-rules/shared-macros.mk
7418N/A
7418N/ACOMPONENT_NAME = jq
7418N/ACOMPONENT_VERSION = 1.5
7418N/ACOMPONENT_PROJECT_URL = https://github.com/stedolan/jq
7418N/ACOMPONENT_ARCHIVE_HASH = \
7418N/A sha256:c4d2bfec6436341113419debf479d833692cc5cdab7eb0326b5a4d4fbe9f493c
7418N/ACOMPONENT_ARCHIVE_URL = $(COMPONENT_PROJECT_URL)/releases/download/$(COMPONENT_NAME)-$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
7418N/ACOMPONENT_BUGDB = utility/jq
7418N/A
7418N/ATPNO = 27148
7418N/A
7418N/Ainclude $(WS_MAKE_RULES)/common.mk
7418N/A
7418N/ACOMPILER = gcc
7418N/A
7418N/A# noexbss causes onig.test to fail
7418N/ALD_MAP_NOEXBSS.sparc =
7418N/A
7418N/A# delete all this when build servers are installed with oniguruma
7418N/AONIG_PROTO = $(WS_COMPONENTS)/oniguruma/build/prototype/$(MACH)
7418N/AONIG_LIBDIR = $(ONIG_PROTO)$(USRLIBDIR64)
7418N/AONIG_INCDIR = $(ONIG_PROTO)$(USRINCDIR)
7418N/ACONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS) -I$(ONIG_INCDIR)"
7418N/ACONFIGURE_ENV += LDFLAGS="$(LDFLAGS) -L$(ONIG_LIBDIR)"
7418N/ACONFIGURE_OPTIONS += --with-oniguruma=$(ONIG_PROTO)$(USRDIR)
7418N/A
7418N/A# couldn't convince autotools to not include the proto runpath
7418N/ACOMPONENT_POST_INSTALL_ACTION += \
7418N/A ( /usr/bin/elfedit -e 'dyn:delete RPATH' -e 'dyn:delete RUNPATH' \
7418N/A "$(PROTOUSRBINDIR)/jq" )
7418N/A
7418N/AONIG_MANIFEST = manifest-$(MACH)-oniguruma.depend
7418N/ADEPENDED += $(WS_COMPONENTS)/oniguruma/build/$(ONIG_MANIFEST)
7418N/APKG_PROTO_DIRS += $(WS_COMPONENTS)/oniguruma
7418N/A
7418N/ACOMPONENT_TEST_ENV += JQ="$(PROTOUSRBINDIR)/jq"
7418N/ACOMPONENT_TEST_ENV += LD_LIBRARY_PATH_64="$(ONIG_LIBDIR)"
7418N/ACOMPONENT_TEST_TRANSFORMS += \
7418N/A '-n ' \
7418N/A '-e "/TOTAL/p" ' \
7418N/A '-e "/SKIP/p" ' \
7418N/A '-e "/PASS/p" ' \
7418N/A '-e "/XPASS/p" ' \
7418N/A '-e "/FAIL/p" ' \
7418N/A '-e "/XFAIL/p" ' \
7418N/A '-e "/ERROR/p" '
7418N/A
7418N/A# need proto to run tests
7418N/Atest: install
7418N/A
7418N/AREQUIRED_PACKAGES += library/oniguruma
7418N/AREQUIRED_PACKAGES += system/library
7418N/AREQUIRED_PACKAGES += system/library/math