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 |
|
22 # |
21 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
22 # |
24 # |
|
25 BUILD_BITS= 64_and_32 |
23 include ../../make-rules/shared-macros.mk |
26 include ../../make-rules/shared-macros.mk |
24 |
27 |
25 COMPONENT_NAME = curl |
28 COMPONENT_NAME = curl |
26 COMPONENT_VERSION= 7.45.0 |
29 COMPONENT_VERSION= 7.45.0 |
27 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
28 COMPONENT_PROJECT_URL= http://curl.haxx.se/ |
30 COMPONENT_PROJECT_URL= http://curl.haxx.se/ |
29 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
|
30 COMPONENT_ARCHIVE_HASH= \ |
31 COMPONENT_ARCHIVE_HASH= \ |
31 sha256:02c78c8060d587422e2826f622c729189b56084bba365140f13af3d402b6cb6b |
32 sha256:02c78c8060d587422e2826f622c729189b56084bba365140f13af3d402b6cb6b |
32 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE) |
33 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE) |
33 COMPONENT_BUGDB= library/curl |
34 COMPONENT_BUGDB= library/curl |
34 |
35 |
35 TPNO= 25724 |
36 TPNO= 25724 |
36 |
37 |
37 include $(WS_MAKE_RULES)/prep.mk |
38 include $(WS_MAKE_RULES)/common.mk |
38 include $(WS_MAKE_RULES)/configure.mk |
|
39 include $(WS_MAKE_RULES)/ips.mk |
|
40 include $(WS_MAKE_RULES)/lint-libraries.mk |
|
41 |
39 |
42 PATCH_LEVEL = 0 |
40 PATCH_LEVEL = 0 |
43 |
|
44 GSSAPI_LIBDIR_32 = /usr/lib |
|
45 GSSAPI_LIBDIR_64 = /usr/lib/$(MACH64) |
|
46 |
41 |
47 CFLAGS += $(CPP_LARGEFILES) |
42 CFLAGS += $(CPP_LARGEFILES) |
48 CFLAGS += `pkg-config --cflags libidn` |
43 CFLAGS += `pkg-config --cflags libidn` |
49 CPPFLAGS += `pkg-config --cflags libidn` |
44 CPPFLAGS += `pkg-config --cflags libidn` |
|
45 CPPFLAGS += "-I/usr/include/openldap" |
50 |
46 |
51 CONFIGURE_ENV += CFLAGS="$(CFLAGS)" |
47 CONFIGURE_OPTIONS += --localstatedir=$(VARDIR) --enable-shared --disable-static |
52 CONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS) -I/usr/include/openldap" |
|
53 |
|
54 CONFIGURE_OPTIONS += --localstatedir=/var --enable-shared --disable-static |
|
55 CONFIGURE_OPTIONS += --enable-http --enable-ftp |
48 CONFIGURE_OPTIONS += --enable-http --enable-ftp |
56 CONFIGURE_OPTIONS += --enable-file --enable-dict |
49 CONFIGURE_OPTIONS += --enable-file --enable-dict |
57 CONFIGURE_OPTIONS += --enable-manual --disable-libgcc |
50 CONFIGURE_OPTIONS += --enable-manual --disable-libgcc |
58 CONFIGURE_OPTIONS += --enable-rtsp --enable-proxy |
51 CONFIGURE_OPTIONS += --enable-rtsp --enable-proxy |
59 CONFIGURE_OPTIONS += --enable-telnet --enable-tftp --enable-pop3 |
52 CONFIGURE_OPTIONS += --enable-telnet --enable-tftp --enable-pop3 |
64 CONFIGURE_OPTIONS += --enable-cookies --disable-hidden-symbols |
57 CONFIGURE_OPTIONS += --enable-cookies --disable-hidden-symbols |
65 CONFIGURE_OPTIONS += --disable-soname-bump |
58 CONFIGURE_OPTIONS += --disable-soname-bump |
66 CONFIGURE_OPTIONS += --enable-ldap --with-random=/dev/urandom |
59 CONFIGURE_OPTIONS += --enable-ldap --with-random=/dev/urandom |
67 CONFIGURE_OPTIONS += --with-ssl --with-ldap-lib=ldap_r-2.4 |
60 CONFIGURE_OPTIONS += --with-ssl --with-ldap-lib=ldap_r-2.4 |
68 CONFIGURE_OPTIONS += --with-lber-lib=lber-2.4 |
61 CONFIGURE_OPTIONS += --with-lber-lib=lber-2.4 |
69 CONFIGURE_OPTIONS += --with-gssapi-includes=/usr/include/gssapi |
62 CONFIGURE_OPTIONS += --with-gssapi-includes=$(USRINCDIR)/gssapi |
70 CONFIGURE_OPTIONS += --with-gssapi-libs=$(GSSAPI_LIBDIR_$(BITS)) |
63 CONFIGURE_OPTIONS += --with-gssapi-libs=$(USRLIB) |
71 CONFIGURE_OPTIONS += --with-gssapi=/usr --without-ca-bundle |
64 CONFIGURE_OPTIONS += --with-gssapi=$(USRDIR) --without-ca-bundle |
72 CONFIGURE_OPTIONS += --with-ca-path=/etc/openssl/certs |
65 CONFIGURE_OPTIONS += --with-ca-path=$(ETCDIR)/openssl/certs |
73 CONFIGURE_OPTIONS += --with-zlib=/usr --with-libidn=/usr |
66 CONFIGURE_OPTIONS += --with-zlib=$(USRDIR) --with-libidn=$(USRDIR) |
74 CONFIGURE_OPTIONS += --with-pic |
67 CONFIGURE_OPTIONS += --with-pic |
75 CONFIGURE_OPTIONS += --with-libssh2 |
68 CONFIGURE_OPTIONS += --with-libssh2 |
76 CONFIGURE_OPTIONS += --without-nghttp2 |
69 CONFIGURE_OPTIONS += --without-nghttp2 |
77 CONFIGURE_OPTIONS += "curl_disallow_getifaddrs=yes" |
70 CONFIGURE_OPTIONS += "curl_disallow_getifaddrs=yes" |
78 |
71 |
102 '-e "/^debug.:/d" ' \ |
95 '-e "/^debug.:/d" ' \ |
103 '-e "/^monitor debug.:/d" ' |
96 '-e "/^monitor debug.:/d" ' |
104 |
97 |
105 ASLR_MODE = $(ASLR_ENABLE) |
98 ASLR_MODE = $(ASLR_ENABLE) |
106 |
99 |
107 configure: $(CONFIGURE_32_and_64) |
|
108 |
|
109 build: $(BUILD_32_and_64) |
|
110 |
|
111 install: $(INSTALL_32_and_64) |
|
112 |
|
113 test: $(TEST_32_and_64) |
|
114 |
|
115 system-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED) |
|
116 |
|
117 |
|
118 REQUIRED_PACKAGES += library/libidn |
100 REQUIRED_PACKAGES += library/libidn |
119 REQUIRED_PACKAGES += library/libssh2 |
101 REQUIRED_PACKAGES += library/libssh2 |
120 REQUIRED_PACKAGES += library/openldap |
102 REQUIRED_PACKAGES += library/openldap |
121 REQUIRED_PACKAGES += library/security/openssl |
103 REQUIRED_PACKAGES += library/security/openssl |
122 REQUIRED_PACKAGES += library/zlib |
104 REQUIRED_PACKAGES += library/zlib |
123 REQUIRED_PACKAGES += shell/ksh93 |
105 REQUIRED_PACKAGES += shell/ksh93 |
124 REQUIRED_PACKAGES += system/library |
|
125 REQUIRED_PACKAGES += system/library/security/gss |
106 REQUIRED_PACKAGES += system/library/security/gss |