components/oniguruma/Makefile
author Artem Kachitchkine <artem.kachitchkine@oracle.com>
Wed, 30 Nov 2016 19:29:35 -0800
changeset 7420 a5a56b02087b
child 7687 1093e2a9adbd
permissions -rw-r--r--
24710228 add jq and oniguruma to userland
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7420
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
     1
#
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
     3
#
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
     7
#
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    12
#
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    18
#
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    20
#
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    21
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    22
#
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    23
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    24
#
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    25
BUILD_BITS = 64
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    27
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME =	onig
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    29
COMPONENT_VERSION =	6.1.1
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    30
COMPONENT_PROJECT_URL =	https://github.com/kkos/oniguruma
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    31
COMPONENT_ARCHIVE_HASH =	\
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    32
    sha256:b9cf2eefef5105820c97f94a2ccd12ed8aa274a576ccdaaed3c632a2aa0d0f04
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    33
COMPONENT_ARCHIVE_URL =	$(COMPONENT_PROJECT_URL)/releases/download/v$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    34
COMPONENT_BUGDB =	library/oniguruma
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    35
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    36
TPNO =			31774
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    37
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    38
include $(WS_MAKE_RULES)/common.mk
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    39
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    40
COMPILER =		gcc
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    41
CONFIGURE_OPTIONS +=	--enable-static=no
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    42
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    43
COMPONENT_TEST_ARGS +=	CFLAGS+=-I$(PROTOUSRINCDIR)
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    44
COMPONENT_TEST_ENV +=	libtool_install_magic='%%%MAGIC variable%%%'
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    45
COMPONENT_TEST_ENV +=	libtool_execute_magic='%%%MAGIC variable%%%'
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    46
COMPONENT_TEST_TRANSFORMS += \
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    47
	'-n ' \
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    48
	'-e "/TOTAL/p" ' \
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    49
	'-e "/SKIP/p" ' \
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    50
	'-e "/PASS/p" ' \
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    51
	'-e "/XPASS/p" ' \
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    52
	'-e "/FAIL/p" ' \
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    53
	'-e "/XFAIL/p" ' \
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    54
	'-e "/ERROR/p" '
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    55
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    56
# need proto to run tests
a5a56b02087b 24710228 add jq and oniguruma to userland
Artem Kachitchkine <artem.kachitchkine@oracle.com>
parents:
diff changeset
    57
test:	install