components/serf/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Tue, 18 Apr 2017 09:10:22 -0700
changeset 7898 b6036d22c840
parent 7829 2de4f4ace09c
child 7902 9e02778b84cd
permissions -rw-r--r--
25757790 Update squid to version 3.5.24
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5243
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     1
#
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
#
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     7
#
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
#
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    18
#
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@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: 5251
diff changeset
    21
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5251
diff changeset
    22
#
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 7527
diff changeset
    23
# Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
5243
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    24
#
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    25
include ../../make-rules/shared-macros.mk
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    26
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    27
COMPONENT_NAME=		serf
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    28
COMPONENT_VERSION=	1.3.8
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    29
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    30
COMPONENT_PROJECT_URL=	http://serf.googlecode.com/
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    31
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.bz2
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE_HASH=	\
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    33
    sha256:e0500be065dbbce490449837bb2ab624e46d64fc0b090474d9acaa87c82b2590
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    34
COMPONENT_ARCHIVE_URL=	$(COMPONENT_PROJECT_URL)svn/src_releases/$(COMPONENT_ARCHIVE)
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    35
COMPONENT_BUGDB=	library/libserf
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 7527
diff changeset
    36
COMPONENT_ANITYA_ID=	1720
5243
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    37
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    38
TPNO=			22208
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    39
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    40
include $(WS_MAKE_RULES)/prep.mk
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    41
# Needed by the test: target. We override build and install.
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    42
include $(WS_MAKE_RULES)/justmake.mk
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    43
include $(WS_MAKE_RULES)/ips.mk
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    44
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    45
USED_APR =		/usr/apr/1.5
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    46
USED_APU =		/usr/apr-util/1.5
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    47
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    48
APR_32 =		$(USED_APR)/bin/apr-1-config
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    49
APR_64 =		$(USED_APR)/bin/$(MACH64)/apr-1-config
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    50
APU_32 =		$(USED_APU)/bin/apu-1-config
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    51
APU_64 =		$(USED_APU)/bin/$(MACH64)/apu-1-config
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    52
SERFLIBPATH_32 =	-R$(USED_APR)/lib -R$(USED_APU)/lib
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    53
SERFLIBPATH_64 =	-R$(USED_APR)/lib/64 -R$(USED_APU)/lib/64
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    54
SERFLIBDIR_32 =		/usr/lib
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    55
SERFLIBDIR_64 =		/usr/lib/64
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    56
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    57
# We have to roll our own as serf is built with scons.
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    58
SCONS =			/usr/bin/scons
5251
884af3874810 22519481 libserf needs to be told what compiler to use
Rich Burridge <rich.burridge@oracle.com>
parents: 5243
diff changeset
    59
COMPONENT_BUILD_ARGS += CC="$(CC)"
5243
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    60
COMPONENT_BUILD_ARGS +=	CPPFLAGS=-D__EXTENSIONS__
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    61
COMPONENT_BUILD_ARGS +=	CFLAGS=$(CC_BITS)
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    62
COMPONENT_BUILD_ARGS +=	LINKFLAGS="$(CC_BITS) $(SERFLIBPATH_$(BITS))"
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    63
COMPONENT_BUILD_ARGS += APR=$(APR_$(BITS))
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    64
COMPONENT_BUILD_ARGS += APU=$(APU_$(BITS))
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    65
COMPONENT_BUILD_ARGS += PREFIX=/usr
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    66
COMPONENT_BUILD_ARGS += LIBDIR=$(SERFLIBDIR_$(BITS))
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    67
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    68
COMPONENT_TEST_CMD =	$(SCONS)
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    69
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    70
COMPONENT_TEST_TRANSFORMS += \
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    71
	'-e "/^cc /d" ' \
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    72
	'-e "/warning:/d"' \
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    73
	'-e "/prototype:/d"' \
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    74
	'-e "/argument/d"'
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    75
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    76
$(BUILD_DIR)/%/.built:  $(SOURCE_DIR)/.prep
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    77
	$(RM) -r $(@D) ; $(MKDIR) $(@D)
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    78
	$(CLONEY) $(SOURCE_DIR) $(@D)
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    79
	(cd $(@D) ; $(SCONS) $(COMPONENT_BUILD_ARGS))
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    80
ifeq   ($(strip $(PARFAIT_BUILD)),yes)
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    81
	-$(PARFAIT) $(@D)
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    82
endif
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    83
	$(TOUCH) $@
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    84
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    85
configure:	$(CONFIGURE_32_and_64)
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    86
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    87
build:		$(BUILD_32_and_64)
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    88
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    89
# As there aren't many files, just get them out of the build directory.
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    90
install:	build
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    91
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    92
test:		$(TEST_32_and_64)
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    93
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    94
system-test:	$(SYSTEM_TESTS_NOT_IMPLEMENTED)
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    95
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    96
REQUIRED_PACKAGES += developer/build/scons-27
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    97
REQUIRED_PACKAGES += library/apr-15
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    98
REQUIRED_PACKAGES += library/apr-util-15
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    99
REQUIRED_PACKAGES += library/expat
7829
2de4f4ace09c 25766761 prepare Userland for 11.4
John Beck <John.Beck@Oracle.COM>
parents: 7687
diff changeset
   100
$(SOLARIS_11_3_ONLY)REQUIRED_PACKAGES += library/openldap
5243
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   101
REQUIRED_PACKAGES += library/security/openssl
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   102
REQUIRED_PACKAGES += library/zlib
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   103
REQUIRED_PACKAGES += system/library
cb29cf94919d PSARC 2015/152 serf - High-performance asynchronous HTTP client library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   104
REQUIRED_PACKAGES += system/library/math
6023
1285c8b9e736 23284011 openldap upgrade breaks userland build
zihao.zhu@oracle.com <zihao.zhu@oracle.com>
parents: 5682
diff changeset
   105
REQUIRED_PACKAGES += system/network/ldap/openldap