From 92ba06d58475fd4ab07d8e3b1efa6993f1f02340 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Fri, 3 Oct 2014 17:58:36 +0200 Subject: added an experimental curl fetcher --- makefiles/gmake/help.mk | 1 + makefiles/gmake/platform.mk | 56 ++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 56 insertions(+), 1 deletion(-) (limited to 'makefiles') diff --git a/makefiles/gmake/help.mk b/makefiles/gmake/help.mk index c8d855e..db834a1 100644 --- a/makefiles/gmake/help.mk +++ b/makefiles/gmake/help.mk @@ -45,6 +45,7 @@ WITH_ICU=1 enable ICU support for URL parsing in Google URL scripting support: WITH_LUA=1 use Lua for configuration and scripting +WITH_CURL=1 use libcurl and libcurlpp and generate a Curl fetcher Some more obscure options: diff --git a/makefiles/gmake/platform.mk b/makefiles/gmake/platform.mk index ad29eb9..8cafc3d 100644 --- a/makefiles/gmake/platform.mk +++ b/makefiles/gmake/platform.mk @@ -102,7 +102,7 @@ EXE = endif # extensions for shared libraries -# (TOOD: HP/Unix has .shlib, Mac/X has .lib, but we can't test it currently) +# (TOOD: HP/Unix has .shlib, Mac/X has .dylib, but we can't test it currently) SO = .so # name if the installation program @@ -304,3 +304,57 @@ endif endif endif + +# curl and curlpp +################# + +ifeq ($(WITH_CURL),1) + +ifeq "$(PLATFORM)" "LINUX" + +CURL_INCLUDES ?= +CURL_LDFLAGS ?= +CURL_LIBS ?= -lcurl -lcurlpp + +endif + +ifeq "$(PLATFORM)" "SUNOS" +ifeq "$(OS_MAJOR_VERSION)" "5" +ifeq "$(OS_MINOR_VERSION)" "10" +CURL_INCLUDES ?= -I/opt/csw/include +CURL_LDFLAGS ?= -L/opt/csw/lib +CURL_LIBS ?= -lcurl -lcurlpp +endif +endif +endif + +ifeq "$(PLATFORM)" "FREEBSD" +ifeq "$(OS_MAJOR_VERSION)" "8" +CURL_INCLUDES ?= -I/usr/local/include +CURL_LDFLAGS ?= -L/usr/local/lib +CURL_LIBS ?= -lcurl -lcurlpp +endif +ifeq "$(OS_MAJOR_VERSION)" "9" +CURL_INCLUDES ?= -I/usr/local/include +CURL_LDFLAGS ?= -L/usr/local/lib +CURL_LIBS ?= -lcurl -lcurlpp +endif +endif + +ifeq "$(PLATFORM)" "OPENBSD" +ifeq "$(OS_MAJOR_VERSION)" "5" +CURL_INCLUDES ?= -I/usr/local/include +CURL_LDFLAGS ?= -L/usr/local/lib +CURL_LIBS ?= -lcurl -lcurlpp +endif +endif + +ifeq "$(PLATFORM)" "NETBSD" +ifeq "$(OS_MAJOR_VERSION)" "5" +CURL_INCLUDES ?= -I/usr/pkg/include +CURL_LDFLAGS ?= -L/usr/pkg/lib +CURL_LIBS ?= -lcurl -lcurlpp +endif +endif + +endif -- cgit v1.2.3-54-g00ecf