Makefile revision 4101
2880N/A#
2880N/A# CDDL HEADER START
2880N/A#
2880N/A# The contents of this file are subject to the terms of the
2880N/A# Common Development and Distribution License (the "License").
2880N/A# You may not use this file except in compliance with the License.
2880N/A#
2880N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2880N/A# or http://www.opensolaris.org/os/licensing.
2880N/A# See the License for the specific language governing permissions
2880N/A# and limitations under the License.
2880N/A#
2880N/A# When distributing Covered Code, include this CDDL HEADER in each
2880N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2880N/A# If applicable, add the following below this CDDL HEADER, with the
2880N/A# fields enclosed by brackets "[]" replaced with your own identifying
2880N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2880N/A#
2880N/A# CDDL HEADER END
2880N/A#
2880N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
2880N/A#
2880N/Ainclude ../../make-rules/shared-macros.mk
2880N/A
2880N/ACOMPONENT_NAME = curl
2880N/ACOMPONENT_VERSION= 7.40.0
2880N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
2880N/ACOMPONENT_PROJECT_URL= http://curl.haxx.se/
2880N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
2880N/ACOMPONENT_ARCHIVE_HASH= \
2880N/A sha256:c2e0705a13e53f8f924d1eaeb2ab94f59a9e162007c489b9ab0c96238bddf84b
2880N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE)
2880N/ACOMPONENT_BUGDB= library/curl
2880N/A
2880N/ATPNO= 21343
2880N/A
3661N/Ainclude $(WS_MAKE_RULES)/prep.mk
3661N/Ainclude $(WS_MAKE_RULES)/configure.mk
3778N/Ainclude $(WS_MAKE_RULES)/ips.mk
3778N/Ainclude $(WS_MAKE_RULES)/lint-libraries.mk
3778N/A
2880N/APATCH_LEVEL = 0
2880N/A
2880N/AGSSAPI_LIBDIR_32 = /usr/lib
2880N/AGSSAPI_LIBDIR_64 = /usr/lib/$(MACH64)
2880N/A
2880N/ACFLAGS += $(CPP_LARGEFILES)
2880N/ACFLAGS += `pkg-config --cflags libidn`
2880N/ACPPFLAGS += `pkg-config --cflags libidn`
2880N/A
2880N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
2880N/ACONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS) -I/usr/include/openldap"
2880N/ACONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
2880N/A
2880N/ACONFIGURE_OPTIONS += --localstatedir=/var --enable-shared --disable-static
2880N/ACONFIGURE_OPTIONS += --enable-http --enable-ftp
2880N/ACONFIGURE_OPTIONS += --enable-file --enable-dict
2880N/ACONFIGURE_OPTIONS += --enable-manual --disable-libgcc
2880N/ACONFIGURE_OPTIONS += --enable-rtsp --enable-proxy
2880N/ACONFIGURE_OPTIONS += --enable-telnet --enable-tftp --enable-pop3
2880N/ACONFIGURE_OPTIONS += --enable-imap --enable-smtp
2880N/ACONFIGURE_OPTIONS += --enable-ipv6 --enable-nonblocking
2880N/ACONFIGURE_OPTIONS += --enable-thread --enable-verbose
2880N/ACONFIGURE_OPTIONS += --disable-sspi --enable-crypto-auth
CONFIGURE_OPTIONS += --enable-cookies --disable-hidden-symbols
CONFIGURE_OPTIONS += --disable-soname-bump
CONFIGURE_OPTIONS += --enable-ldap --with-random=/dev/urandom
CONFIGURE_OPTIONS += --with-ssl --with-ldap-lib=ldap_r-2.4
CONFIGURE_OPTIONS += --with-lber-lib=lber-2.4
CONFIGURE_OPTIONS += --with-gssapi-includes=/usr/include/gssapi
CONFIGURE_OPTIONS += --with-gssapi-libs=$(GSSAPI_LIBDIR_$(BITS))
CONFIGURE_OPTIONS += --with-gssapi=/usr --without-ca-bundle
CONFIGURE_OPTIONS += --with-ca-path=/etc/openssl/certs
CONFIGURE_OPTIONS += --with-zlib=/usr --with-libidn=/usr
CONFIGURE_OPTIONS += --with-pic
CONFIGURE_OPTIONS += --without-libssh2
CONFIGURE_OPTIONS += "curl_disallow_getifaddrs=yes"
LINT_FLAGS += -I$(SOURCE_DIR)/include
# The additional curl specific set of transforms to be applied to the
# test results to try to normalize them.
COMPONENT_TEST_TRANSFORMS += \
'-e "s|\(^$(CC)\).*|\\$$(CC)|" ' \
'-e "s|\(^/bin/bash ../../libtool\).*|\1|" ' \
'-e "s|\(^libtool: compile:\).*|\1|" ' \
'-e "s|\(^libtool: link:\).*|\1|" ' \
'-e "s|remaining: ..:..|remaining: xx:xx|" ' \
'-e "s|\(^TESTDONE: 964 tests were considered during\).*|\1|" ' \
'-e "s|\(^\* curl $(COMPONENT_VERSION)\).*|\1|" ' \
'-e "s|\(^\* Host:\).*|\1|" ' \
'-e "s|\(^\* System: SunOS\).*|\1|" ' \
'-e "s|\(^Connection from 127.0.0.1 port\).*|\1|" ' \
'-e "s|\(^Failed none for\).*|\1|" ' \
'-e "s|\(^Found matching DSA key:\).*|\1|" ' \
'-e "s|\(^Failed publickey for\).*|\1|" ' \
'-e "/^debug.:/d" ' \
'-e "/^monitor debug.:/d" '
ASLR_MODE = $(ASLR_ENABLE)
configure: $(CONFIGURE_32_and_64)
build: $(BUILD_32_and_64)
install: $(INSTALL_32_and_64)
test: $(TEST_32_and_64)
REQUIRED_PACKAGES += library/libidn
REQUIRED_PACKAGES += library/libssh2
REQUIRED_PACKAGES += library/openldap
REQUIRED_PACKAGES += library/security/openssl
REQUIRED_PACKAGES += library/zlib
REQUIRED_PACKAGES += shell/ksh93
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += system/library/security/gss