Skip to content

Commit

Permalink
Merge pull request #378 from jakirkham/add_curl_certs
Browse files Browse the repository at this point in the history
Curl
  • Loading branch information
jakirkham committed May 19, 2016
2 parents 03d4370 + e6b2377 commit 334bb76
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 0 deletions.
17 changes: 17 additions & 0 deletions recipes/curl/bld.bat
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
26 changes: 26 additions & 0 deletions recipes/curl/build.sh
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"
55 changes: 55 additions & 0 deletions recipes/curl/meta.yaml
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

0 comments on commit 334bb76

Please sign in to comment.