-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #378 from jakirkham/add_curl_certs
Curl
- Loading branch information
Showing
3 changed files
with
98 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
cd winbuild | ||
|
||
if %ARCH% == 32 ( | ||
set ARCH_STRING=x86 | ||
) else ( | ||
set ARCH_STRING=x64 | ||
) | ||
|
||
REM This is implicitly using WinSSL. See Makefile.vc for more info. | ||
nmake /f Makefile.vc mode=dll VC=%VS_MAJOR:"=% WITH_DEVEL=%LIBRARY_PREFIX% ^ | ||
WITH_ZLIB=dll DEBUG=no ENABLE_IDN=no MACHINE=%ARCH_STRING% | ||
if %ERRORLEVEL% EQU 1 exit 1 | ||
|
||
robocopy ..\builds\libcurl-vc%VS_MAJOR:"=%-%ARCH_STRING%-release-dll-zlib-dll-ipv6-sspi-winssl\ %LIBRARY_PREFIX% *.* /E | ||
if %ERRORLEVEL% GEQ 8 exit 1 | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
|
||
export PKG_CONFIG_PATH="${PREFIX}/lib/pkgconfig" | ||
export C_INCLUDE_PATH="${PREFIX}/include" | ||
|
||
if [[ `uname` == "Darwin" ]] | ||
then | ||
export DYLD_FALLBACK_LIBRARY_PATH="${PREFIX}/lib" | ||
export CC=clang | ||
export CXX=clang++ | ||
fi | ||
|
||
./configure \ | ||
--disable-ldap \ | ||
--prefix=${PREFIX} \ | ||
--with-ca-bundle=${PREFIX}/ssl/cacert.pem \ | ||
--with-ssl=${PREFIX} \ | ||
--with-zlib=${PREFIX} \ | ||
|| cat config.log | ||
|
||
make | ||
make test | ||
make install | ||
|
||
# Includes man pages and other miscellaneous. | ||
rm -rf "${PREFIX}/share" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{% set version = "7.48.0" %} | ||
|
||
package: | ||
name: curl | ||
version: {{ version }} | ||
|
||
source: | ||
fn: curl-{{ version }}.tar.bz2 | ||
url: http://curl.haxx.se/download/curl-{{ version }}.tar.bz2 | ||
sha256: 864e7819210b586d42c674a1fdd577ce75a78b3dda64c63565abe5aefd72c753 | ||
|
||
build: | ||
number: 0 | ||
features: | ||
- vc9 # [win and py27] | ||
- vc10 # [win and py34] | ||
- vc14 # [win and py35] | ||
|
||
requirements: | ||
build: | ||
# python is a build requirement on Windows to resolve features. | ||
- python # [win] | ||
- pkg-config # [unix] | ||
- openssl # [unix] | ||
- certifi # [unix] | ||
- zlib | ||
run: | ||
- openssl # [unix] | ||
- certifi # [unix] | ||
- zlib | ||
|
||
test: | ||
requires: | ||
- python 2.7.* # [win and py27] | ||
- python 3.4.* # [win and py34] | ||
- python 3.5.* # [win and py35] | ||
|
||
commands: | ||
# curl help commands on Windows have non-zero status codes. Need other test. | ||
- curl --help | ||
- curl-config --features # [not win] | ||
- curl-config --protocols # [not win] | ||
|
||
about: | ||
home: http://curl.haxx.se/ | ||
license: MIT/X derivate (http://curl.haxx.se/docs/copyright.html) | ||
license_family: MIT | ||
license_file: COPYING | ||
summary: tool and library for transferring data with URL syntax | ||
|
||
extra: | ||
recipe-maintainers: | ||
- msarahan | ||
- jakirkham | ||
- ocefpaf |