174N/A#
174N/A# CDDL HEADER START
174N/A#
174N/A# The contents of this file are subject to the terms of the
174N/A# Common Development and Distribution License (the "License").
174N/A# You may not use this file except in compliance with the License.
174N/A#
174N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
174N/A# or http://www.opensolaris.org/os/licensing.
174N/A# See the License for the specific language governing permissions
174N/A# and limitations under the License.
174N/A#
174N/A# When distributing Covered Code, include this CDDL HEADER in each
174N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
174N/A# If applicable, add the following below this CDDL HEADER, with the
174N/A# fields enclosed by brackets "[]" replaced with your own identifying
174N/A# information: Portions Copyright [yyyy] [name of copyright owner]
174N/A#
174N/A# CDDL HEADER END
174N/A#
5680N/A
5680N/A#
5331N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
174N/A#
5680N/ABUILD_BITS= 64_and_32
174N/Ainclude ../../make-rules/shared-macros.mk
174N/A
174N/ACOMPONENT_NAME = curl
5162N/ACOMPONENT_VERSION= 7.45.0
174N/ACOMPONENT_PROJECT_URL= http://curl.haxx.se/
844N/ACOMPONENT_ARCHIVE_HASH= \
5162N/A sha256:02c78c8060d587422e2826f622c729189b56084bba365140f13af3d402b6cb6b
618N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE)
1258N/ACOMPONENT_BUGDB= library/curl
174N/A
5162N/ATPNO= 25724
2899N/A
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
174N/A
174N/APATCH_LEVEL = 0
174N/A
206N/ACFLAGS += $(CPP_LARGEFILES)
694N/ACFLAGS += `pkg-config --cflags libidn`
694N/ACPPFLAGS += `pkg-config --cflags libidn`
5680N/ACPPFLAGS += "-I/usr/include/openldap"
174N/A
7243N/A# Enable adiheap and adistack security extensions
7243N/AADIHEAP_MODE = $(ADIHEAP_ENABLE)
7243N/AADISTACK_MODE = $(ADISTACK_ENABLE)
7243N/A
5680N/ACONFIGURE_OPTIONS += --localstatedir=$(VARDIR) --enable-shared --disable-static
174N/ACONFIGURE_OPTIONS += --enable-http --enable-ftp
174N/ACONFIGURE_OPTIONS += --enable-file --enable-dict
174N/ACONFIGURE_OPTIONS += --enable-manual --disable-libgcc
174N/ACONFIGURE_OPTIONS += --enable-rtsp --enable-proxy
174N/ACONFIGURE_OPTIONS += --enable-telnet --enable-tftp --enable-pop3
174N/ACONFIGURE_OPTIONS += --enable-imap --enable-smtp
174N/ACONFIGURE_OPTIONS += --enable-ipv6 --enable-nonblocking
174N/ACONFIGURE_OPTIONS += --enable-thread --enable-verbose
174N/ACONFIGURE_OPTIONS += --disable-sspi --enable-crypto-auth
174N/ACONFIGURE_OPTIONS += --enable-cookies --disable-hidden-symbols
174N/ACONFIGURE_OPTIONS += --disable-soname-bump
174N/ACONFIGURE_OPTIONS += --enable-ldap --with-random=/dev/urandom
2379N/ACONFIGURE_OPTIONS += --with-ssl --with-ldap-lib=ldap_r-2.4
2379N/ACONFIGURE_OPTIONS += --with-lber-lib=lber-2.4
5680N/ACONFIGURE_OPTIONS += --with-gssapi-includes=$(USRINCDIR)/gssapi
5680N/ACONFIGURE_OPTIONS += --with-gssapi-libs=$(USRLIB)
5680N/ACONFIGURE_OPTIONS += --with-gssapi=$(USRDIR) --without-ca-bundle
5680N/ACONFIGURE_OPTIONS += --with-ca-path=$(ETCDIR)/openssl/certs
5680N/ACONFIGURE_OPTIONS += --with-zlib=$(USRDIR) --with-libidn=$(USRDIR)
174N/ACONFIGURE_OPTIONS += --with-pic
2022N/ACONFIGURE_OPTIONS += --with-libssh2
7155N/ACONFIGURE_OPTIONS += --with-nghttp2
174N/ACONFIGURE_OPTIONS += "curl_disallow_getifaddrs=yes"
174N/A
206N/ALINT_FLAGS += -I$(SOURCE_DIR)/include
174N/A
3726N/A# The additional curl specific set of transforms to be applied to the
3726N/A# test results to try to normalize them.
3726N/ACOMPONENT_TEST_TRANSFORMS += \
3854N/A '-e "s|^.*$(CC).*$$|XXX_CC_XXX|g" ' \
3854N/A '-e "s|^.*source=.*libtool=no.*$$|XXX_CC_XXX|g" ' \
3854N/A '-e "s|^.*DEPDIR=.deps.*$$|XXX_CC_XXX|g" ' \
5354N/A '-e "s|^make.*: Leaving directory.*$$|XXX_CC_XXX|g" ' \
5354N/A '-e "s|^make.*: Entering directory.*$$|XXX_CC_XXX|g" ' \
5354N/A '-e "s|^make.*: Nothing to be done for.*$$|XXX_CC_XXX|g" ' \
3854N/A '-e "/^XXX_CC_XXX$$/d" ' \
3726N/A '-e "s|\(^/bin/bash ../../libtool\).*|\1|" ' \
3726N/A '-e "s|\(^libtool: link:\).*|\1|" ' \
3726N/A '-e "s|remaining: ..:..|remaining: xx:xx|" ' \
5162N/A '-e "s|\(^TESTDONE: 994 tests were considered during\).*|\1|" ' \
3726N/A '-e "s|\(^\* curl $(COMPONENT_VERSION)\).*|\1|" ' \
3726N/A '-e "s|\(^\* Host:\).*|\1|" ' \
3726N/A '-e "s|\(^\* System: SunOS\).*|\1|" ' \
3726N/A '-e "s|\(^Connection from 127.0.0.1 port\).*|\1|" ' \
3726N/A '-e "s|\(^Failed none for\).*|\1|" ' \
3726N/A '-e "s|\(^Found matching DSA key:\).*|\1|" ' \
3726N/A '-e "s|\(^Failed publickey for\).*|\1|" ' \
3726N/A '-e "/^debug.:/d" ' \
3726N/A '-e "/^monitor debug.:/d" '
3726N/A
3817N/AREQUIRED_PACKAGES += library/libidn
3817N/AREQUIRED_PACKAGES += library/libssh2
7155N/AREQUIRED_PACKAGES += library/nghttp2
3817N/AREQUIRED_PACKAGES += library/openldap
3817N/AREQUIRED_PACKAGES += library/security/openssl
3817N/AREQUIRED_PACKAGES += library/zlib
6063N/AREQUIRED_PACKAGES += security/kerberos-5
3817N/AREQUIRED_PACKAGES += shell/ksh93
7277N/Aifeq ($(OS_VERSION),5.11)
7277N/AREQUIRED_PACKAGES += system/library/security/gss
7277N/Aendif
6021N/AREQUIRED_PACKAGES += system/network/ldap/openldap