1 DESCRIPTION = "A utility for getting files from remote servers (FTP, HTTP, and others)"
2 HOMEPAGE = "http://curl.haxx.se/"
3 SECTION = "Base/Utilities"
14 RPROVIDES_libcurl += "libcurl"
18 RPROVIDES_curl += "curl"
19 # the PROVIDES rules is ignore "webclient "
20 PROVIDES += "webclient"
21 RPROVIDES_curl += "webclient"
23 #PROVIDES by libcurl-devel
24 PROVIDES += "libcurl-devel"
25 RPROVIDES_libcurl-devel += "libcurl-devel"
26 RPROVIDES_libcurl-devel += "libcurl-dev"
27 # the PROVIDES rules is ignore "curl-devel = 7.32.0"
28 PROVIDES += "curl-devel"
29 RPROVIDES_libcurl-devel += "curl-devel"
30 RPROVIDES_libcurl-devel += "curl-dev"
33 #RDEPENDS of libcurl-devel (lib${PN}-devel)
34 RDEPENDS_lib${PN}-devel += "libcurl"
35 RDEPENDS_lib${PN}-devel += "libidn-dev"
40 DEPENDS += "pkgconfig(libidn)"
41 DEPENDS += "pkgconfig(nss)"
43 DEPENDS += "zlib-devel"
44 DEPENDS += "pkgconfig(openssl)"
47 chmod -Rf a+rX,u+w,g-w,o-w ${S}
49 cp ${S}/packaging/curl.manifest .
61 CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ;
62 CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
63 FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ;
64 LD_AS_NEEDED=1; export LD_AS_NEEDED ;
66 export CPPFLAGS="$(pkg-config --cflags nss) -DHAVE_PK11_CREATEGENERICOBJECT"
69 CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ;
70 CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
71 FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ;
72 autotools_do_configure --build=${TARGET_SYS} --host=${HOST_SYS} \
73 --target=x86_64-tizen-linux \
80 --datadir=/usr/share \
81 --includedir=/usr/include \
83 --libexecdir=/usr/libexec \
84 --localstatedir=/var \
85 --sharedstatedir=/usr/com \
86 --mandir=/usr/share/man \
87 --infodir=/usr/share/info --without-nss \
91 --with-ca-path=/etc/ssl/certs \
93 --with-lber-lib=lber \
95 --enable-versioned-symbols \
101 sed -i -e 's,-L/usr/lib ,,g;s,-L/usr/lib64 ,,g;s,-L/usr/lib$,,g;s,-L/usr/lib64$,,g' \
106 -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
107 -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
116 echo export RPM_BUILD_ROOT=${D}
123 make DESTDIR=${D} INSTALL="install -p" install
125 rm -f ${D}/usr/lib/libcurl.la
126 install -d ${D}//usr/share/aclocal
127 install -m 644 docs/libcurl/libcurl.m4 ${D}//usr/share/aclocal
129 # don't need curl's copy of the certs; use openssl's
130 find ${D} -name ca-bundle.crt -exec rm -f '{}' \;
131 rm -rf ${D}/usr/share/man
137 PACKAGES += "libcurl"
139 PACKAGES += "libcurl-devel"
142 libcurl_files += "curl.manifest"
143 libcurl_files += "/usr/lib/libcurl.so.*"
146 curl_files += "curl.manifest"
147 curl_files += "/usr/bin/curl"
149 libcurl-devel_files = ""
150 libcurl-devel_files += "curl.manifest"
151 libcurl-devel_files += "/usr/bin/curl-config*"
152 libcurl-devel_files += "/usr/include/curl"
153 libcurl-devel_files += "/usr/lib/*.so"
154 libcurl-devel_files += "/usr/lib/pkgconfig/*.pc"
155 libcurl-devel_files += "/usr/share/aclocal/libcurl.m4"
157 FILES_lib${PN} = "${libcurl_files}"
158 FILES_${PN} = "${curl_files}"
159 FILES_lib${PN}-devel = "${libcurl-devel_files}"
161 PKG_libcurl= "libcurl"
163 PKG_libcurl-devel= "libcurl-devel"
165 require curl-extraconf.inc