components/opensp/Makefile
author John Beck <John.Beck@Oracle.COM>
Tue, 04 Apr 2017 16:12:22 -0700
changeset 7829 2de4f4ace09c
parent 7687 1093e2a9adbd
permissions -rw-r--r--
25766761 prepare Userland for 11.4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4876
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     1
#
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     2
# CDDL HEADER START
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     3
#
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     7
#
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    11
# and limitations under the License.
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    12
#
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    18
#
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    19
# CDDL HEADER END
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    20
#
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    21
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    22
#
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 6933
diff changeset
    23
# Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
4876
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    24
#
6933
e1fa2aa7bad7 24691894 Adjust opensp for upcoming libtool 2.4.6 changes
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
    25
COMPILER= gcc
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5366
diff changeset
    26
BUILD_BITS= 64_and_32
4876
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    27
include ../../make-rules/shared-macros.mk
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    28
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    29
COMPONENT_NAME=		opensp
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    30
COMPONENT_VERSION=	1.5.1
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    31
COMPONENT_PROJECT_URL=	http://openjade.sourceforge.net/
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    32
COMPONENT_SRC=		OpenSP-$(COMPONENT_VERSION)
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    33
COMPONENT_ARCHIVE_HASH=	\
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    34
    sha256:3f0649840dc3d6ec432e3c8d933b178208f3feccb6db111d22c8995ad07c736b
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    35
COMPONENT_ARCHIVE_URL=	http://prdownloads.sourceforge.net/openjade/$(COMPONENT_ARCHIVE)
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 6933
diff changeset
    36
COMPONENT_ANITYA_ID=	13231
4876
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    37
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    38
TPNO=			9621
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    39
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5366
diff changeset
    40
include $(WS_MAKE_RULES)/common.mk
4876
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    41
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    42
# Needed to find the man pages at install time.
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    43
COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    44
5366
6eaed9347ba1 22619740 opensp should be 64-bit
Rich Burridge <rich.burridge@oracle.com>
parents: 4962
diff changeset
    45
CONFIGURE_OPTIONS +=	--bindir=/usr/bin
4876
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    46
CONFIGURE_OPTIONS +=	--disable-http
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    47
CONFIGURE_OPTIONS +=	--disable-nls
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    48
CONFIGURE_OPTIONS +=	--enable-default-catalog="CATALOG:/etc/sgml/catalog:/usr/share/sgml/CATALOG"
7829
2de4f4ace09c 25766761 prepare Userland for 11.4
John Beck <John.Beck@Oracle.COM>
parents: 7687
diff changeset
    49
EXTRA_LIBRARIES =	$(LIBSOCKET) $(LIBNSL)
4962
835e12fc1552 21956065 libsocket tweak needed for opensp
John Beck <John.Beck@Oracle.COM>
parents: 4876
diff changeset
    50
CONFIGURE_OPTIONS +=	LDFLAGS="$(LDFLAGS) $(EXTRA_LIBRARIES)"
4876
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    51
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    52
# 21786575 for gmake test failures
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    53
COMPONENT_TEST_DIR =	$(BUILD_DIR)/$(MACH$(BITS))/tests 
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    54
COMPONENT_TEST_ARGS = 	-k -i
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    55
COMPONENT_TEST_TRANSFORMS += \
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    56
        '-n ' \
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    57
	'-e "/result_count/d" ' \
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    58
        '-e "/TOTAL:/p" ' \
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    59
        '-e "/SKIP:/p" ' \
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    60
        '-e "/PASS:/p" ' \
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    61
        '-e "/FAIL:/p" ' \
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    62
        '-e "/ERROR:/p" '
bd07b8aacc8a 21766761 Move opensp from desktop to userland
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    63
6933
e1fa2aa7bad7 24691894 Adjust opensp for upcoming libtool 2.4.6 changes
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
    64
REQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime
e1fa2aa7bad7 24691894 Adjust opensp for upcoming libtool 2.4.6 changes
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
    65
REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime