[Libreoffice-commits] .: curl/ExternalPackage_curl.mk curl/ExternalProject_curl.mk RepositoryExternal.mk

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Oct 29 14:59:34 PDT 2012


 RepositoryExternal.mk        |    4 ++++
 curl/ExternalPackage_curl.mk |    9 +++++----
 curl/ExternalProject_curl.mk |   17 +++++++++--------
 3 files changed, 18 insertions(+), 12 deletions(-)

New commits:
commit 9f3a3ab69ac8969805724c6c80b755dcb81af079
Author: Matúš Kukan <matus.kukan at gmail.com>
Date:   Mon Oct 29 22:57:34 2012 +0100

    tweak curl gbuildification
    
    Change-Id: I17eae5612b88c3f57842a8ae50b1d062acf94765

diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk
index d58b27b..ab76d7d 100644
--- a/RepositoryExternal.mk
+++ b/RepositoryExternal.mk
@@ -1621,6 +1621,10 @@ $(eval $(call gb_Helper_register_libraries,PLAINLIBS_OOO, \
 ))
 
 define gb_LinkTarget__use_curl
+$(call gb_LinkTarget_set_include,$(1),\
+	-I$(call gb_UnpackedTarball_get_dir,curl/include) \
+	$$(INCLUDE) \
+)
 $(call gb_LinkTarget_use_libraries,$(1),\
 	curl \
 )
diff --git a/curl/ExternalPackage_curl.mk b/curl/ExternalPackage_curl.mk
index c5852f8..e8e7e65 100644
--- a/curl/ExternalPackage_curl.mk
+++ b/curl/ExternalPackage_curl.mk
@@ -25,15 +25,16 @@ else
 $(eval $(call gb_ExternalPackage_add_file,curl,lib/libcurl.so,lib/.libs/libcurl.so.4.2.0))
 endif
 
-else ifeq ($(GUI),WNT)
+else ifeq ($(OS)$(COM),WNTGCC)
 
-ifeq ($(COM),GCC)
 $(eval $(call gb_ExternalPackage_add_file,curl,lib/libcurl.a,.libs/libcurl.a))
 $(eval $(call gb_ExternalPackage_add_file,curl,bin/libcurl.dll,.libs/libcurl.dll))
-else ifeq ($(COM),WNT)
+
+else ifeq ($(COM),MSC)
+
 $(eval $(call gb_ExternalPackage_add_file,curl,lib/libcurl.lib,lib/libcurl.lib))
 $(eval $(call gb_ExternalPackage_add_file,curl,bin/libcurl.dll,lib/libcurl.dll))
-endif
 
 endif
+
 # vim: set noet sw=4 ts=4:
diff --git a/curl/ExternalProject_curl.mk b/curl/ExternalProject_curl.mk
index beee034..1005094 100644
--- a/curl/ExternalProject_curl.mk
+++ b/curl/ExternalProject_curl.mk
@@ -16,6 +16,7 @@ $(eval $(call gb_ExternalProject_register_targets,curl,\
 ))
 
 ifeq ($(GUI),UNX)
+
 $(call gb_ExternalProject_get_state_target,curl,build):
 	cd $(EXTERNAL_WORKDIR) \
 	&& ./configure --with-nss --without-ssl --without-libidn --enable-ftp --enable-ipv6 --enable-http --disable-gopher \
@@ -25,10 +26,11 @@ $(call gb_ExternalProject_get_state_target,curl,build):
 	$(if $(filter TRUE,$(ENABLE_DEBUG)),--enable-debug) \
 	$(if $(SYSBASE),CPPFLAGS="-I$(SYSBASE)/usr/include" LDFLAGS="-L$(SYSBASE)/usr/lib") \
 	&& cd lib \
-	&& $(GNUMAKE) -j$(EXTMAXPROCESS) \
+	&& $(MAKE) \
 	&& touch $@
-else ifeq ($(GUI),WNT)
-ifeq ($(COM),GCC)
+
+else ifeq ($(OS)$(COM),WNTGCC)
+
 $(call gb_ExternalProject_get_state_target,curl,build):
 	cd $(EXTERNAL_WORKDIR) \
 	&& ./configure --with-nss --without-ssl --enable-ftp --enable-ipv6 --disable-http --disable-gopher \
@@ -39,17 +41,16 @@ $(call gb_ExternalProject_get_state_target,curl,build):
 	LDFLAGS="$(patsubst ;, -L,$(ILIB))" \
 	CPPFLAGS="$(INCLUDE)" OBJDUMP="objdump" \
 	&& cd lib \
-	&& $(GNUMAKE) -j$(EXTMAXPROCESS) \
+	&& $(MAKE) \
 	&& touch $@
 
 else ifeq ($(COM),MSC)
+
 $(call gb_ExternalProject_get_state_target,curl,build):
 	cd $(EXTERNAL_WORKDIR)/lib \
-	&& unset MAKEFLAGS \
-	&& export LIB="$(ILIB)" \
-	&& nmake -f Makefile.vc9 cfg=release-dll EXCFLAGS="/EHa /Zc:wchar_t- /D_CRT_SECURE_NO_DEPRECATE $(SOLARINC)" $(if $(filter X86_64,$(CPUNAME)),MACHINE=X64) \
+	&& MAKEFLAGS= && LIB="$(ILIB)" && nmake -f Makefile.vc9 cfg=release-dll \
+		EXCFLAGS="/EHa /Zc:wchar_t- /D_CRT_SECURE_NO_DEPRECATE $(SOLARINC)" $(if $(filter X86_64,$(CPUNAME)),MACHINE=X64) \
 	&& touch $@
-endif
 
 endif
 


More information about the Libreoffice-commits mailing list