Alexander Pyhalov
2017-01-13 efc6e91b59461ffa02b671e7417cf1e83bcdbb52
commit | author | age
7e5460 1 #
ST 2 # CDDL HEADER START
3 #
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
fffb6d 21 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
7e5460 22 #
0f0996 23 include ../../../make-rules/shared-macros.mk
7e5460 24
ST 25 COMPONENT_NAME =        curl
efc6e9 26 COMPONENT_VERSION=      7.52.1
7e5460 27 COMPONENT_SRC=          $(COMPONENT_NAME)-$(COMPONENT_VERSION)
ST 28 COMPONENT_PROJECT_URL=  http://curl.haxx.se/
29 COMPONENT_ARCHIVE=      $(COMPONENT_SRC).tar.gz
35e110 30 COMPONENT_ARCHIVE_HASH= \
efc6e9 31     sha256:a8984e8b20880b621f61a62d95ff3c0763a3152093a9f9ce4287cfd614add6ae
60e6e0 32 COMPONENT_ARCHIVE_URL=  $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE)
e27bbc 33 COMPONENT_SIG_URL=      $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE).asc
3b89c9 34 COMPONENT_BUGDB=    library/curl
7e5460 35
0f0996 36 include $(WS_TOP)/make-rules/prep.mk
AS 37 include $(WS_TOP)/make-rules/configure.mk
38 include $(WS_TOP)/make-rules/ips.mk
7e5460 39
ST 40 PATCH_LEVEL = 0
41
42 GSSAPI_LIBDIR_32 = /usr/lib
43 GSSAPI_LIBDIR_64 = /usr/lib/$(MACH64)
44
3cec7d 45 CFLAGS += $(CPP_LARGEFILES)
2610f4 46 CFLAGS += `pkg-config --cflags libidn`
RB 47 CPPFLAGS += `pkg-config --cflags libidn`
7e5460 48
fffb6d 49 CONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS) -I/usr/include/openldap"
7e5460 50
ST 51 CONFIGURE_OPTIONS += --localstatedir=/var --enable-shared --disable-static
52 CONFIGURE_OPTIONS += --enable-http --enable-ftp
53 CONFIGURE_OPTIONS += --enable-file --enable-dict
54 CONFIGURE_OPTIONS += --enable-manual --disable-libgcc
55 CONFIGURE_OPTIONS += --enable-rtsp --enable-proxy
56 CONFIGURE_OPTIONS += --enable-telnet --enable-tftp --enable-pop3
57 CONFIGURE_OPTIONS += --enable-imap --enable-smtp
58 CONFIGURE_OPTIONS += --enable-ipv6 --enable-nonblocking
59 CONFIGURE_OPTIONS += --enable-thread --enable-verbose
60 CONFIGURE_OPTIONS += --disable-sspi --enable-crypto-auth
61 CONFIGURE_OPTIONS += --enable-cookies --disable-hidden-symbols
62 CONFIGURE_OPTIONS += --disable-soname-bump
63 CONFIGURE_OPTIONS += --enable-ldap --with-random=/dev/urandom
fffb6d 64 CONFIGURE_OPTIONS += --with-ssl --with-ldap-lib=ldap_r-2.4
AP 65 CONFIGURE_OPTIONS += --with-lber-lib=lber-2.4
7e5460 66 CONFIGURE_OPTIONS += --with-gssapi-includes=/usr/include/gssapi
ST 67 CONFIGURE_OPTIONS += --with-gssapi-libs=$(GSSAPI_LIBDIR_$(BITS))
68 CONFIGURE_OPTIONS += --with-gssapi=/usr --without-ca-bundle
69 CONFIGURE_OPTIONS += --with-ca-path=/etc/openssl/certs
70 CONFIGURE_OPTIONS += --with-zlib=/usr --with-libidn=/usr
71 CONFIGURE_OPTIONS += --with-pic
fffb6d 72 CONFIGURE_OPTIONS += --with-libssh2
36604c 73 CONFIGURE_OPTIONS += --without-librtmp
7e5460 74 CONFIGURE_OPTIONS += "curl_disallow_getifaddrs=yes"
ST 75
3cec7d 76 LINT_FLAGS += -I$(SOURCE_DIR)/include
7e5460 77
b41dcc 78 ASLR_MODE = $(ASLR_ENABLE)
RB 79
ef430a 80 ENV = /usr/bin/env -i
AP 81 COMPONENT_TEST_ENV += USER=`id -un`
82
7e5460 83 build: $(BUILD_32_and_64)
ST 84
85 install: $(INSTALL_32_and_64)
86
4158c0 87 test: $(TEST_32_and_64)
7e5460 88
c627d5 89 REQUIRED_PACKAGES += SUNWcs
AP 90 REQUIRED_PACKAGES += library/libidn
91 REQUIRED_PACKAGES += library/libssh2
92 REQUIRED_PACKAGES += library/nghttp2
93 REQUIRED_PACKAGES += library/openldap
94 REQUIRED_PACKAGES += library/security/openssl
95 REQUIRED_PACKAGES += library/zlib
96 REQUIRED_PACKAGES += system/library
97 REQUIRED_PACKAGES += system/library/security/gss