21 # Copyright (c) 2011, 2015, 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 TPNO= 8339 |
35 TPNO= 21343 |
36 |
36 |
37 include $(WS_MAKE_RULES)/prep.mk |
37 include $(WS_MAKE_RULES)/prep.mk |
38 include $(WS_MAKE_RULES)/configure.mk |
38 include $(WS_MAKE_RULES)/configure.mk |
39 include $(WS_MAKE_RULES)/ips.mk |
39 include $(WS_MAKE_RULES)/ips.mk |
40 include $(WS_MAKE_RULES)/lint-libraries.mk |
40 include $(WS_MAKE_RULES)/lint-libraries.mk |
47 CFLAGS += $(CPP_LARGEFILES) |
47 CFLAGS += $(CPP_LARGEFILES) |
48 CFLAGS += `pkg-config --cflags libidn` |
48 CFLAGS += `pkg-config --cflags libidn` |
49 CPPFLAGS += `pkg-config --cflags libidn` |
49 CPPFLAGS += `pkg-config --cflags libidn` |
50 |
50 |
51 CONFIGURE_ENV += CFLAGS="$(CFLAGS)" |
51 CONFIGURE_ENV += CFLAGS="$(CFLAGS)" |
52 CONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)" |
52 CONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS) -I/usr/include/openldap" |
53 CONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)" |
53 CONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)" |
54 |
54 |
55 CONFIGURE_OPTIONS += --localstatedir=/var --enable-shared --disable-static |
55 CONFIGURE_OPTIONS += --localstatedir=/var --enable-shared --disable-static |
56 CONFIGURE_OPTIONS += --enable-http --enable-ftp |
56 CONFIGURE_OPTIONS += --enable-http --enable-ftp |
57 CONFIGURE_OPTIONS += --enable-file --enable-dict |
57 CONFIGURE_OPTIONS += --enable-file --enable-dict |
63 CONFIGURE_OPTIONS += --enable-thread --enable-verbose |
63 CONFIGURE_OPTIONS += --enable-thread --enable-verbose |
64 CONFIGURE_OPTIONS += --disable-sspi --enable-crypto-auth |
64 CONFIGURE_OPTIONS += --disable-sspi --enable-crypto-auth |
65 CONFIGURE_OPTIONS += --enable-cookies --disable-hidden-symbols |
65 CONFIGURE_OPTIONS += --enable-cookies --disable-hidden-symbols |
66 CONFIGURE_OPTIONS += --disable-soname-bump |
66 CONFIGURE_OPTIONS += --disable-soname-bump |
67 CONFIGURE_OPTIONS += --enable-ldap --with-random=/dev/urandom |
67 CONFIGURE_OPTIONS += --enable-ldap --with-random=/dev/urandom |
68 CONFIGURE_OPTIONS += --with-ssl --with-ldap-lib=ldap |
68 CONFIGURE_OPTIONS += --with-ssl --with-ldap-lib=ldap_r-2.4 |
69 CONFIGURE_OPTIONS += --with-lber-lib=sldap |
69 CONFIGURE_OPTIONS += --with-lber-lib=lber-2.4 |
70 CONFIGURE_OPTIONS += --with-gssapi-includes=/usr/include/gssapi |
70 CONFIGURE_OPTIONS += --with-gssapi-includes=/usr/include/gssapi |
71 CONFIGURE_OPTIONS += --with-gssapi-libs=$(GSSAPI_LIBDIR_$(BITS)) |
71 CONFIGURE_OPTIONS += --with-gssapi-libs=$(GSSAPI_LIBDIR_$(BITS)) |
72 CONFIGURE_OPTIONS += --with-gssapi=/usr --without-ca-bundle |
72 CONFIGURE_OPTIONS += --with-gssapi=/usr --without-ca-bundle |
73 CONFIGURE_OPTIONS += --with-ca-path=/etc/openssl/certs |
73 CONFIGURE_OPTIONS += --with-ca-path=/etc/openssl/certs |
74 CONFIGURE_OPTIONS += --with-zlib=/usr --with-libidn=/usr |
74 CONFIGURE_OPTIONS += --with-zlib=/usr --with-libidn=/usr |
75 CONFIGURE_OPTIONS += --with-pic |
75 CONFIGURE_OPTIONS += --with-pic |
|
76 CONFIGURE_OPTIONS += --without-libssh2 |
76 CONFIGURE_OPTIONS += "curl_disallow_getifaddrs=yes" |
77 CONFIGURE_OPTIONS += "curl_disallow_getifaddrs=yes" |
77 |
78 |
78 LINT_FLAGS += -I$(SOURCE_DIR)/include |
79 LINT_FLAGS += -I$(SOURCE_DIR)/include |
|
80 |
|
81 # The additional curl specific set of transforms to be applied to the |
|
82 # test results to try to normalize them. |
|
83 COMPONENT_TEST_TRANSFORMS += \ |
|
84 '-e "s|\(^$(CC)\).*|\\$$(CC)|" ' \ |
|
85 '-e "s|\(^/bin/bash ../../libtool\).*|\1|" ' \ |
|
86 '-e "s|\(^libtool: compile:\).*|\1|" ' \ |
|
87 '-e "s|\(^libtool: link:\).*|\1|" ' \ |
|
88 '-e "s|remaining: ..:..|remaining: xx:xx|" ' \ |
|
89 '-e "s|\(^TESTDONE: 964 tests were considered during\).*|\1|" ' \ |
|
90 '-e "s|\(^\* curl $(COMPONENT_VERSION)\).*|\1|" ' \ |
|
91 '-e "s|\(^\* Host:\).*|\1|" ' \ |
|
92 '-e "s|\(^\* System: SunOS\).*|\1|" ' \ |
|
93 '-e "s|\(^Connection from 127.0.0.1 port\).*|\1|" ' \ |
|
94 '-e "s|\(^Failed none for\).*|\1|" ' \ |
|
95 '-e "s|\(^Found matching DSA key:\).*|\1|" ' \ |
|
96 '-e "s|\(^Failed publickey for\).*|\1|" ' \ |
|
97 '-e "/^debug.:/d" ' \ |
|
98 '-e "/^monitor debug.:/d" ' |
|
99 |
|
100 ASLR_MODE = $(ASLR_ENABLE) |
|
101 |
|
102 configure: $(CONFIGURE_32_and_64) |
79 |
103 |
80 build: $(BUILD_32_and_64) |
104 build: $(BUILD_32_and_64) |
81 |
105 |
82 install: $(INSTALL_32_and_64) |
106 install: $(INSTALL_32_and_64) |
83 |
107 |
84 test: $(TEST_32_and_64) |
108 test: $(TEST_32_and_64) |
85 |
109 |
86 |
110 |
87 |
|
88 REQUIRED_PACKAGES += library/libidn |
111 REQUIRED_PACKAGES += library/libidn |
|
112 REQUIRED_PACKAGES += library/libssh2 |
|
113 REQUIRED_PACKAGES += library/openldap |
89 REQUIRED_PACKAGES += library/security/openssl |
114 REQUIRED_PACKAGES += library/security/openssl |
90 REQUIRED_PACKAGES += library/zlib |
115 REQUIRED_PACKAGES += library/zlib |
91 REQUIRED_PACKAGES += shell/ksh93 |
116 REQUIRED_PACKAGES += shell/ksh93 |
92 REQUIRED_PACKAGES += system/library |
117 REQUIRED_PACKAGES += system/library |
93 REQUIRED_PACKAGES += system/library/security/gss |
118 REQUIRED_PACKAGES += system/library/security/gss |