16 # fields enclosed by brackets "[]" replaced with your own identifying |
16 # fields enclosed by brackets "[]" replaced with your own identifying |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
18 # |
18 # |
19 # CDDL HEADER END |
19 # CDDL HEADER END |
20 # |
20 # |
21 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
21 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. |
22 # |
22 # |
23 include ../../make-rules/shared-macros.mk |
23 include ../../make-rules/shared-macros.mk |
24 |
24 |
25 COMPONENT_NAME = curl |
25 COMPONENT_NAME = curl |
26 COMPONENT_VERSION= 7.21.2 |
26 COMPONENT_VERSION= 7.40.0 |
27 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
27 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
28 COMPONENT_PROJECT_URL= http://curl.haxx.se/ |
28 COMPONENT_PROJECT_URL= http://curl.haxx.se/ |
29 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
29 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
30 COMPONENT_ARCHIVE_HASH= \ |
30 COMPONENT_ARCHIVE_HASH= \ |
31 sha256:d8e0ce964b75b99efa2e6c58e6523027fe2fa56305cc180ecacda6ced636e2bf |
31 sha256:c2e0705a13e53f8f924d1eaeb2ab94f59a9e162007c489b9ab0c96238bddf84b |
32 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE) |
32 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE) |
33 COMPONENT_BUGDB= library/curl |
33 COMPONENT_BUGDB= library/curl |
34 |
34 |
35 include ../../make-rules/prep.mk |
35 TPNO= 21343 |
36 include ../../make-rules/configure.mk |
36 |
37 include ../../make-rules/ips.mk |
37 include $(WS_MAKE_RULES)/prep.mk |
38 include ../../make-rules/lint-libraries.mk |
38 include $(WS_MAKE_RULES)/configure.mk |
|
39 include $(WS_MAKE_RULES)/ips.mk |
|
40 include $(WS_MAKE_RULES)/lint-libraries.mk |
39 |
41 |
40 PATCH_LEVEL = 0 |
42 PATCH_LEVEL = 0 |
41 |
43 |
42 GSSAPI_LIBDIR_32 = /usr/lib |
44 GSSAPI_LIBDIR_32 = /usr/lib |
43 GSSAPI_LIBDIR_64 = /usr/lib/$(MACH64) |
45 GSSAPI_LIBDIR_64 = /usr/lib/$(MACH64) |
45 CFLAGS += $(CPP_LARGEFILES) |
47 CFLAGS += $(CPP_LARGEFILES) |
46 CFLAGS += `pkg-config --cflags libidn` |
48 CFLAGS += `pkg-config --cflags libidn` |
47 CPPFLAGS += `pkg-config --cflags libidn` |
49 CPPFLAGS += `pkg-config --cflags libidn` |
48 |
50 |
49 CONFIGURE_ENV += CFLAGS="$(CFLAGS)" |
51 CONFIGURE_ENV += CFLAGS="$(CFLAGS)" |
50 CONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)" |
52 CONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS) -I/usr/include/openldap" |
51 CONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)" |
53 CONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)" |
52 |
54 |
53 CONFIGURE_OPTIONS += --localstatedir=/var --enable-shared --disable-static |
55 CONFIGURE_OPTIONS += --localstatedir=/var --enable-shared --disable-static |
54 CONFIGURE_OPTIONS += --enable-http --enable-ftp |
56 CONFIGURE_OPTIONS += --enable-http --enable-ftp |
55 CONFIGURE_OPTIONS += --enable-file --enable-dict |
57 CONFIGURE_OPTIONS += --enable-file --enable-dict |
61 CONFIGURE_OPTIONS += --enable-thread --enable-verbose |
63 CONFIGURE_OPTIONS += --enable-thread --enable-verbose |
62 CONFIGURE_OPTIONS += --disable-sspi --enable-crypto-auth |
64 CONFIGURE_OPTIONS += --disable-sspi --enable-crypto-auth |
63 CONFIGURE_OPTIONS += --enable-cookies --disable-hidden-symbols |
65 CONFIGURE_OPTIONS += --enable-cookies --disable-hidden-symbols |
64 CONFIGURE_OPTIONS += --disable-soname-bump |
66 CONFIGURE_OPTIONS += --disable-soname-bump |
65 CONFIGURE_OPTIONS += --enable-ldap --with-random=/dev/urandom |
67 CONFIGURE_OPTIONS += --enable-ldap --with-random=/dev/urandom |
66 CONFIGURE_OPTIONS += --with-ssl --with-ldap-lib=ldap |
68 CONFIGURE_OPTIONS += --with-ssl --with-ldap-lib=ldap_r-2.4 |
67 CONFIGURE_OPTIONS += --with-lber-lib=sldap |
69 CONFIGURE_OPTIONS += --with-lber-lib=lber-2.4 |
68 CONFIGURE_OPTIONS += --with-gssapi-includes=/usr/include/gssapi |
70 CONFIGURE_OPTIONS += --with-gssapi-includes=/usr/include/gssapi |
69 CONFIGURE_OPTIONS += --with-gssapi-libs=$(GSSAPI_LIBDIR_$(BITS)) |
71 CONFIGURE_OPTIONS += --with-gssapi-libs=$(GSSAPI_LIBDIR_$(BITS)) |
70 CONFIGURE_OPTIONS += --with-gssapi=/usr --without-ca-bundle |
72 CONFIGURE_OPTIONS += --with-gssapi=/usr --without-ca-bundle |
71 CONFIGURE_OPTIONS += --with-ca-path=/etc/openssl/certs |
73 CONFIGURE_OPTIONS += --with-ca-path=/etc/openssl/certs |
72 CONFIGURE_OPTIONS += --with-zlib=/usr --with-libidn=/usr |
74 CONFIGURE_OPTIONS += --with-zlib=/usr --with-libidn=/usr |
73 CONFIGURE_OPTIONS += --with-pic |
75 CONFIGURE_OPTIONS += --with-pic |
|
76 # curl will find and use libssh2 if it's installed but libssh2 isn't |
|
77 # yet in resolve.deps at that time, which will break the curl build. |
|
78 # This option prevents curl using libssh2 immediately when it appears. |
|
79 CONFIGURE_OPTIONS += --without-libssh2 |
74 CONFIGURE_OPTIONS += "curl_disallow_getifaddrs=yes" |
80 CONFIGURE_OPTIONS += "curl_disallow_getifaddrs=yes" |
75 |
81 |
76 LINT_FLAGS += -I$(SOURCE_DIR)/include |
82 LINT_FLAGS += -I$(SOURCE_DIR)/include |
|
83 |
|
84 ASLR_MODE = $(ASLR_ENABLE) |
77 |
85 |
78 build: $(BUILD_32_and_64) |
86 build: $(BUILD_32_and_64) |
79 |
87 |
80 install: $(INSTALL_32_and_64) |
88 install: $(INSTALL_32_and_64) |
81 |
89 |
82 test: $(TEST_32_and_64) |
90 test: $(TEST_32_and_64) |
83 |
91 |
84 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
|
85 |
|
86 include ../../make-rules/depend.mk |
|
87 |
|