components/gnupth/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Thu, 13 Apr 2017 13:20:29 -0700
changeset 7864 f11e8d81786a
parent 7687 1093e2a9adbd
permissions -rw-r--r--
PSARC 2017/057 pcre2 25783625 Add pcre2 10.23 to Userland because vte 0.47.90 requires it
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
250
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     1
#
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     3
#
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     7
#
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    12
#
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    18
#
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    20
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5125
diff changeset
    21
250
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    22
#
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
    23
# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5125
diff changeset
    24
#
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5125
diff changeset
    25
# gnupth only delivers scripts that embed paths, so prefer 32-bit.
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5125
diff changeset
    26
BUILD_BITS= 32_and_64
250
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    27
include ../../make-rules/shared-macros.mk
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    28
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    29
COMPONENT_NAME=		pth
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    30
COMPONENT_VERSION=	2.0.7
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 609
diff changeset
    31
COMPONENT_ARCHIVE_HASH=	\
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 609
diff changeset
    32
    sha256:72353660c5a2caafd601b20e12e75d865fd88f6cf1a088b306a3963f0bc77232
1058
34d7aaa03423 15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents: 800
diff changeset
    33
COMPONENT_BUGDB=	library/pth
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
    34
COMPONENT_ANITYA_ID=	3724
250
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    35
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1434
diff changeset
    36
TPNO=			8899
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1434
diff changeset
    37
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5125
diff changeset
    38
include $(WS_MAKE_RULES)/gnu-component.mk
250
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    39
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    40
PATCH_LEVEL = 0
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    41
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    42
# Enable C99 mode + -Xc for its additional warnings.
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    43
studio_C99MODE = -Xc $(studio_C99_ENABLE)
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    44
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    45
# -xinline=%auto -- we like inlining where appropriate
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    46
CFLAGS += -xinline=%auto
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    47
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    48
# -xbuiltin=%none -- builtins have been known to be buggy
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    49
CFLAGS += -xbuiltin=%none
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    50
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    51
CFLAGS += $(CPP_LARGEFILES)
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    52
CFLAGS += $(XPG6MODE)
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    53
CFLAGS += $(CPP_POSIX)
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    54
CFLAGS += $(studio_PIC)
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    55
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    56
CPPFLAGS += $(CPP_LARGEFILES) $(CPP_POSIX)
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    57
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    58
LDFLAGS =	-lpthread -lposix4 -lrt
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    59
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5125
diff changeset
    60
CONFIGURE_OPTIONS  +=	--localstatedir=$(VARDIR)
250
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    61
CONFIGURE_OPTIONS  +=	--with-pic
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    62
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5125
diff changeset
    63
CONFIGURE_ENV += LD="$(CC) $(CFLAGS) $(LDFLAGS)"
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5125
diff changeset
    64
CONFIGURE_ENV += CPP="$(CC) $(CPPFLAGS) $(CFLAGS) -E"
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5125
diff changeset
    65
CONFIGURE_ENV += INSTALL="$(INSTALL)"
250
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    66
5054
91b97df27c58 22136498 GNU which really doesn't have any tests
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    67
COMPONENT_TEST_MASTER =	$(COMPONENT_TEST_RESULTS_DIR)/results-all.master
91b97df27c58 22136498 GNU which really doesn't have any tests
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    68
COMPONENT_TEST_TRANSFORMS += \
91b97df27c58 22136498 GNU which really doesn't have any tests
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    69
	'-e "s|\(^Pth:\).*|\1|" '
91b97df27c58 22136498 GNU which really doesn't have any tests
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    70
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    71
REQUIRED_PACKAGES += shell/ksh93