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#
5313N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
174N/A#
174N/Ainclude ../../make-rules/shared-macros.mk
174N/A
174N/ACOMPONENT_NAME = curl
5313N/ACOMPONENT_VERSION= 7.45.0
174N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
174N/ACOMPONENT_PROJECT_URL= http://curl.haxx.se/
174N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
844N/ACOMPONENT_ARCHIVE_HASH= \
5313N/A sha256:02c78c8060d587422e2826f622c729189b56084bba365140f13af3d402b6cb6b
618N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE)
1273N/ACOMPONENT_BUGDB= library/curl
174N/A
5313N/ATPNO= 25724
3661N/A
3996N/Ainclude $(WS_MAKE_RULES)/prep.mk
3996N/Ainclude $(WS_MAKE_RULES)/configure.mk
3996N/Ainclude $(WS_MAKE_RULES)/ips.mk
3996N/Ainclude $(WS_MAKE_RULES)/lint-libraries.mk
174N/A
174N/APATCH_LEVEL = 0
174N/A
174N/AGSSAPI_LIBDIR_32 = /usr/lib
174N/AGSSAPI_LIBDIR_64 = /usr/lib/$(MACH64)
174N/A
206N/ACFLAGS += $(CPP_LARGEFILES)
694N/ACFLAGS += `pkg-config --cflags libidn`
694N/ACPPFLAGS += `pkg-config --cflags libidn`
174N/A
174N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
4101N/ACONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS) -I/usr/include/openldap"
206N/ACONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
174N/A
174N/ACONFIGURE_OPTIONS += --localstatedir=/var --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
4101N/ACONFIGURE_OPTIONS += --with-ssl --with-ldap-lib=ldap_r-2.4
4101N/ACONFIGURE_OPTIONS += --with-lber-lib=lber-2.4
174N/ACONFIGURE_OPTIONS += --with-gssapi-includes=/usr/include/gssapi
174N/ACONFIGURE_OPTIONS += --with-gssapi-libs=$(GSSAPI_LIBDIR_$(BITS))
174N/ACONFIGURE_OPTIONS += --with-gssapi=/usr --without-ca-bundle
174N/ACONFIGURE_OPTIONS += --with-ca-path=/etc/openssl/certs
174N/ACONFIGURE_OPTIONS += --with-zlib=/usr --with-libidn=/usr
174N/ACONFIGURE_OPTIONS += --with-pic
5313N/ACONFIGURE_OPTIONS += --with-libssh2
174N/ACONFIGURE_OPTIONS += "curl_disallow_getifaddrs=yes"
174N/A
206N/ALINT_FLAGS += -I$(SOURCE_DIR)/include
174N/A
4101N/A# The additional curl specific set of transforms to be applied to the
4101N/A# test results to try to normalize them.
4101N/ACOMPONENT_TEST_TRANSFORMS += \
5313N/A '-e "s|^.*$(CC).*$$|XXX_CC_XXX|g" ' \
5313N/A '-e "s|^.*source=.*libtool=no.*$$|XXX_CC_XXX|g" ' \
5313N/A '-e "s|^.*DEPDIR=.deps.*$$|XXX_CC_XXX|g" ' \
7031N/A '-e "s|^make.*: Leaving directory.*$$|XXX_CC_XXX|g" ' \
7031N/A '-e "s|^make.*: Entering directory.*$$|XXX_CC_XXX|g" ' \
7031N/A '-e "s|^make.*: Nothing to be done for.*$$|XXX_CC_XXX|g" ' \
5313N/A '-e "/^XXX_CC_XXX$$/d" ' \
4101N/A '-e "s|\(^/bin/bash ../../libtool\).*|\1|" ' \
4101N/A '-e "s|\(^libtool: link:\).*|\1|" ' \
4101N/A '-e "s|remaining: ..:..|remaining: xx:xx|" ' \
5313N/A '-e "s|\(^TESTDONE: 994 tests were considered during\).*|\1|" ' \
4101N/A '-e "s|\(^\* curl $(COMPONENT_VERSION)\).*|\1|" ' \
4101N/A '-e "s|\(^\* Host:\).*|\1|" ' \
4101N/A '-e "s|\(^\* System: SunOS\).*|\1|" ' \
4101N/A '-e "s|\(^Connection from 127.0.0.1 port\).*|\1|" ' \
4101N/A '-e "s|\(^Failed none for\).*|\1|" ' \
4101N/A '-e "s|\(^Found matching DSA key:\).*|\1|" ' \
4101N/A '-e "s|\(^Failed publickey for\).*|\1|" ' \
4101N/A '-e "/^debug.:/d" ' \
4101N/A '-e "/^monitor debug.:/d" '
4101N/A
4101N/AASLR_MODE = $(ASLR_ENABLE)
4101N/A
4101N/Aconfigure: $(CONFIGURE_32_and_64)
4101N/A
174N/Abuild: $(BUILD_32_and_64)
174N/A
181N/Ainstall: $(INSTALL_32_and_64)
174N/A
181N/Atest: $(TEST_32_and_64)
174N/A
3996N/A
3996N/AREQUIRED_PACKAGES += library/libidn
5313N/AREQUIRED_PACKAGES += library/libssh2
4101N/AREQUIRED_PACKAGES += library/openldap
3996N/AREQUIRED_PACKAGES += library/security/openssl
3996N/AREQUIRED_PACKAGES += library/zlib
3996N/AREQUIRED_PACKAGES += shell/ksh93
3996N/AREQUIRED_PACKAGES += system/library
3996N/AREQUIRED_PACKAGES += system/library/security/gss