depot: recipes for api/curl and src/curl

This commit is contained in:
Norman Feske 2017-12-05 16:01:32 +01:00 committed by Christian Helmuth
parent 531a4bbb7e
commit a3c217757c
7 changed files with 61 additions and 1 deletions

View File

@ -25,7 +25,7 @@ CC_OPT += -DHAVE_CONFIG_H
LIBS += libc zlib libcrypto libssh libssl
include $(REP_DIR)/lib/import/import-curl.mk
include $(call select_from_repositories,lib/import/import-curl.mk)
SHARED_LIB = yes

View File

@ -0,0 +1,29 @@
MIRROR_FROM_REP_DIR := lib/import/import-curl.mk \
lib/symbols/curl
content: $(MIRROR_FROM_REP_DIR)
$(MIRROR_FROM_REP_DIR):
$(mirror_from_rep_dir)
PORT_DIR := $(call port_dir,$(REP_DIR)/ports/curl)
content: include
include:
mkdir -p $@/curl
cp $(PORT_DIR)/include/curl/* $@/curl
content: src/lib/curl
src/lib/curl:
mkdir -p $@
for spec in 32bit 64bit; do \
mkdir -p $@/spec/$$spec/curl; \
cp $(REP_DIR)/$@/spec/$$spec/curl/curlbuild.h $@/spec/$$spec/curl/; \
done
content: LICENSE
LICENSE:
cp $(PORT_DIR)/src/lib/curl/COPYING $@

View File

@ -0,0 +1 @@
2017-12-05-a 12d0b9e73fba04eac74fa35e3195fb8633c930de

View File

@ -0,0 +1 @@
curl

View File

@ -0,0 +1,22 @@
content: src/lib/curl/target.mk lib/mk LICENSE
PORT_DIR := $(call port_dir,$(REP_DIR)/ports/curl)
src/lib/curl:
mkdir -p $@
cp -r $(REP_DIR)/$@/curl_config.h $@
cp -r $(PORT_DIR)/src/lib/curl/* $@
src/lib/curl/target.mk: src/lib/curl
echo "LIBS += curl" > $@
lib/mk:
mkdir -p $@
cp $(REP_DIR)/lib/mk/curl.inc $@
for spec in 32bit 64bit; do \
mkdir -p $@/spec/$$spec; \
cp $(REP_DIR)/$@/spec/$$spec/curl.mk $@/spec/$$spec/; \
done
LICENSE:
cp $(PORT_DIR)/src/lib/curl/COPYING $@

View File

@ -0,0 +1 @@
2017-12-05-g 5b4752b50f8b582ef4767f17188637e0ff220939

View File

@ -0,0 +1,6 @@
libc
libcrypto
zlib
libssh
libssl
so