Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add curl library v7.64.1 with SSL support #81

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions curl/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Port Metadata
PORTNAME = curl
PORTVERSION = 7.64.1

MAINTAINER = Damian Parrino <[email protected]>
LICENSE = custom
SHORT_DESC = A library for transferring data with URL syntax.

# This port uses CMake.
PORT_BUILD = cmake

# Provide SSL support library
DEPENDENCIES = zlib polarssl

# What files we need to download, and where from.
DOWNLOAD_SITE = https://curl.haxx.se/download
DOWNLOAD_FILES = ${PORTNAME}-${PORTVERSION}.tar.gz

TARGET = libcurl.a

# attempt to install the headers locally.
HDR_DIRECTORY = include/curl

# cmake build arguments
CMAKE_ARGS = -DCMAKE_USE_POLARSSL=1 -DUSE_UNIX_SOCKETS=0 -DENABLE_IPV6=0 -DENABLE_THREADED_RESOLVER=0 -DBUILD_CURL_EXE=OFF -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTING=OFF

# Add a pre-build target to adjust the source code
PREBUILD = curl_prebuild
curl_prebuild:
cp files/CMakeLists.txt build/${PORTNAME}-${PORTVERSION}
cp files/FindPolarSSL.cmake build/${PORTNAME}-${PORTVERSION}/CMake

# Add a pre-install target to get the built library where we expect it.
# This, copied from opus, might be solvable by
# adding an equivalent to HDR_DIRECTORY for lib
PREINSTALL = curl_preinstall
curl_preinstall:
cp build/${PORTNAME}-${PORTVERSION}/lib/${TARGET} build/${PORTNAME}-${PORTVERSION}

include ${KOS_PORTS}/scripts/kos-ports.mk
2 changes: 2 additions & 0 deletions curl/distinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SHA256 (curl-7.64.1.tar.gz) = 432d3f466644b9416bc5b649d344116a753aeaa520c8beaf024a90cba9d3d35d
SIZE (curl-7.64.1.tar.gz) = 4008103
Loading