diff options
author | Matúš Kukan <matus.kukan@gmail.com> | 2012-11-22 11:21:58 +0100 |
---|---|---|
committer | Matúš Kukan <matus.kukan@gmail.com> | 2012-11-27 22:40:23 +0100 |
commit | 6d69a50e769ebee5d0cd75a27fd1a5cdfaace284 (patch) | |
tree | a00ab59ddadd659fc1ca5bbb1403b2858c84ce03 /Makefile.fetch | |
parent | 16aa073855da37d75d0f48e7fbdf92d14ef8c264 (diff) |
add fetch_Optional to have conditions for download in makefile
This is prepare commit for --with-all-tarballs.
We probably don't want to define the tarball names conditionally in configure.
Change-Id: Id41f73dd7094b3384ce43caf62018f53b3d86a81
Diffstat (limited to 'Makefile.fetch')
-rw-r--r-- | Makefile.fetch | 178 |
1 files changed, 91 insertions, 87 deletions
diff --git a/Makefile.fetch b/Makefile.fetch index bf2a6720c93b..8b50739a7b60 100644 --- a/Makefile.fetch +++ b/Makefile.fetch @@ -45,100 +45,104 @@ $(call fetch_Download__checksum_command,$2,$(firstword $(subst -, ,$2))) \ endef +define fetch_Optional +$(if $(filter $1,$(BUILD_TYPE)),$2) +endef + fetch : $(foreach item, \ - $(BUILD_TARBALLS) \ + $(if $(filter YES,$(CROSS_COMPILING)),$(BUILD_TARBALLS)) \ 18f577b374d60b3c760a3a3350407632-STLport-4.5.tar.gz \ 7376930b0d3f3d77a685d94c4a3acda8-STLport-4.5-0119.tar.gz \ c441926f3a552ed3e5b274b62e86af16-STLport-4.0.tar.gz \ 4a660ce8466c9df01f19036435425c3a-glibc-2.1.3-stub.tar.gz \ - $(AFMS_TARBALL) \ - $(APACHE_COMMONS_CODEC_TARBALL) \ - $(APACHE_COMMONS_HTTPCLIENT_TARBALL) \ - $(APACHE_COMMONS_LANG_TARBALL) \ - $(APACHE_COMMONS_LOGGING_TARBALL) \ - $(BOOST_TARBALL) \ - $(BSH_TARBALL) \ - $(CAIRO_TARBALL) \ - $(CDR_TARBALL) \ - $(CLUCENE_TARBALL) \ - $(CMIS_TARBALL) \ - $(CPPUNIT_TARBALL) \ - $(CT2N_TARBALL) \ - $(CURL_TARBALL) \ - $(EPM_TARBALL) \ - $(EXPAT_TARBALL) \ - $(FONT_DEJAVU_TARBALL) \ - $(FONT_GENTIUM_TARBALL) \ - $(FONT_LIBERATION_NARROW_TARBALL) \ - $(FONT_LIBERATION_TARBALL) \ - $(FONT_LINLIBERTINEG_TARBALL) \ - $(FONT_PTSERIF_TARBALL) \ - $(FONT_OPENSANS_TARBALL) \ - $(FONT_SOURCESANS_TARBALL) \ - $(FONT_SOURCECODE_TARBALL) \ - $(FONTCONFIG_TARBALL) \ - $(FREETYPE_TARBALL) \ + $(call fetch_Optional,AFMS,$(AFMS_TARBALL)) \ + $(call fetch_Optional,APACHE_COMMONS,$(APACHE_COMMONS_CODEC_TARBALL)) \ + $(call fetch_Optional,APACHE_COMMONS,$(APACHE_COMMONS_HTTPCLIENT_TARBALL)) \ + $(call fetch_Optional,APACHE_COMMONS,$(APACHE_COMMONS_LANG_TARBALL)) \ + $(call fetch_Optional,APACHE_COMMONS,$(APACHE_COMMONS_LOGGING_TARBALL)) \ + $(call fetch_Optional,BOOST,$(BOOST_TARBALL)) \ + $(call fetch_Optional,BSH,$(BSH_TARBALL)) \ + $(call fetch_Optional,CAIRO,$(CAIRO_TARBALL)) \ + $(call fetch_Optional,CDR,$(CDR_TARBALL)) \ + $(call fetch_Optional,CLUCENE,$(CLUCENE_TARBALL)) \ + $(call fetch_Optional,CMIS,$(CMIS_TARBALL)) \ + $(call fetch_Optional,CPPUNIT,$(CPPUNIT_TARBALL)) \ + $(call fetch_Optional,CT2N,$(CT2N_TARBALL)) \ + $(call fetch_Optional,CURL,$(CURL_TARBALL)) \ + $(call fetch_Optional,EPM,$(EPM_TARBALL)) \ + $(call fetch_Optional,EXPAT,$(EXPAT_TARBALL)) \ + $(call fetch_Optional,MORE_FONTS,$(FONT_DEJAVU_TARBALL)) \ + $(call fetch_Optional,MORE_FONTS,$(FONT_GENTIUM_TARBALL)) \ + $(call fetch_Optional,MORE_FONTS,$(FONT_LIBERATION_NARROW_TARBALL)) \ + $(call fetch_Optional,MORE_FONTS,$(FONT_LIBERATION_TARBALL)) \ + $(call fetch_Optional,MORE_FONTS,$(FONT_LINLIBERTINEG_TARBALL)) \ + $(call fetch_Optional,MORE_FONTS,$(FONT_PTSERIF_TARBALL)) \ + $(call fetch_Optional,MORE_FONTS,$(FONT_OPENSANS_TARBALL)) \ + $(call fetch_Optional,MORE_FONTS,$(FONT_SOURCESANS_TARBALL)) \ + $(call fetch_Optional,MORE_FONTS,$(FONT_SOURCECODE_TARBALL)) \ + $(call fetch_Optional,FONTCONFIG,$(FONTCONFIG_TARBALL)) \ + $(call fetch_Optional,FREETYPE,$(FREETYPE_TARBALL)) \ $(GOOGLE_DOCS_EXTENSION_PACK) \ - $(GRAPHITE_TARBALL) \ - $(HSQLDB_TARBALL) \ - $(HUNSPELL_TARBALL) \ - $(HYPHEN_TARBALL) \ - $(ICU_TARBALL) \ - $(ICU_DATA_SUBSET_ZIP) \ - $(JFREEREPORT_FLOW_ENGINE_TARBALL) \ - $(JFREEREPORT_FLUTE_TARBALL) \ - $(JFREEREPORT_LIBBASE_TARBALL) \ - $(JFREEREPORT_LIBFONTS_TARBALL) \ - $(JFREEREPORT_LIBFORMULA_TARBALL) \ - $(JFREEREPORT_LIBLAYOUT_TARBALL) \ - $(JFREEREPORT_LIBLOADER_TARBALL) \ - $(JFREEREPORT_LIBREPOSITORY_TARBALL) \ - $(JFREEREPORT_LIBSERIALIZER_TARBALL) \ - $(JFREEREPORT_LIBXML_TARBALL) \ - $(JFREEREPORT_SAC_TARBALL) \ - $(JPEG_TARBALL) \ - $(LANGUAGETOOL_TARBALL) \ - $(LCMS2_TARBALL) \ - $(LIBEXTTEXTCAT_TARBALL) \ - $(LIBLANGTAG_TARBALL) \ - $(LIBXML_TARBALL) \ + $(call fetch_Optional,GRAPHITE,$(GRAPHITE_TARBALL)) \ + $(call fetch_Optional,HSQLDB,$(HSQLDB_TARBALL)) \ + $(call fetch_Optional,HUNSPELL,$(HUNSPELL_TARBALL)) \ + $(call fetch_Optional,HYPHEN,$(HYPHEN_TARBALL)) \ + $(call fetch_Optional,ICU,$(ICU_TARBALL)) \ + $(call fetch_Optional,ICU,$(ICU_DATA_SUBSET_ZIP)) \ + $(call fetch_Optional,JFREEREPORT,$(JFREEREPORT_FLOW_ENGINE_TARBALL)) \ + $(call fetch_Optional,JFREEREPORT,$(JFREEREPORT_FLUTE_TARBALL)) \ + $(call fetch_Optional,JFREEREPORT,$(JFREEREPORT_LIBBASE_TARBALL)) \ + $(call fetch_Optional,JFREEREPORT,$(JFREEREPORT_LIBFONTS_TARBALL)) \ + $(call fetch_Optional,JFREEREPORT,$(JFREEREPORT_LIBFORMULA_TARBALL)) \ + $(call fetch_Optional,JFREEREPORT,$(JFREEREPORT_LIBLAYOUT_TARBALL)) \ + $(call fetch_Optional,JFREEREPORT,$(JFREEREPORT_LIBLOADER_TARBALL)) \ + $(call fetch_Optional,JFREEREPORT,$(JFREEREPORT_LIBREPOSITORY_TARBALL)) \ + $(call fetch_Optional,JFREEREPORT,$(JFREEREPORT_LIBSERIALIZER_TARBALL)) \ + $(call fetch_Optional,JFREEREPORT,$(JFREEREPORT_LIBXML_TARBALL)) \ + $(call fetch_Optional,JFREEREPORT,$(JFREEREPORT_SAC_TARBALL)) \ + $(call fetch_Optional,JPEG,$(JPEG_TARBALL)) \ + $(call fetch_Optional,LANGUAGETOOL,$(LANGUAGETOOL_TARBALL)) \ + $(call fetch_Optional,LCMS2,$(LCMS2_TARBALL)) \ + $(call fetch_Optional,LIBEXTTEXTCAT,$(LIBEXTTEXTCAT_TARBALL)) \ + $(call fetch_Optional,LIBLANGTAG,$(LIBLANGTAG_TARBALL)) \ + $(call fetch_Optional,LIBXML2,$(LIBXML_TARBALL)) \ $(LIBXMLSEC_TARBALL) \ - $(LIBXSLT_TARBALL) \ - $(LPSOLVE_TARBALL) \ - $(MDDS_TARBALL) \ - $(MOZ_TARBALL) \ - $(MSPUB_TARBALL) \ - $(MYSQLCPPCONN_TARBALL) \ - $(MYTHES_TARBALL) \ - $(NEON_TARBALL) \ - $(NSS_TARBALL) \ - $(OPENLDAP_TARBALL) \ - $(OPENSSL_TARBALL) \ - $(ORCUS_TARBALL) \ - $(PIXMAN_TARBALL) \ - $(PNG_TARBALL) \ - $(POSTGRESQL_TARBALL) \ - $(PYTHON_TARBALL) \ - $(RAPTOR_TARBALL) \ - $(RASQAL_TARBALL) \ - $(REDLAND_TARBALL) \ - $(RHINO_TARBALL) \ - $(SWING_TARBALL) \ - $(TOMCAT_TARBALL) \ - $(UCPP_TARBALL) \ - $(VIGRA_TARBALL) \ - $(VISIO_TARBALL) \ - $(WPD_TARBALL) \ - $(WPG_TARBALL) \ - $(WPS_TARBALL) \ - $(XPDF_TARBALL) \ - $(XSLTML_TARBALL) \ - $(ZLIB_TARBALL) \ + $(call fetch_Optional,LIBXSLT,$(LIBXSLT_TARBALL)) \ + $(call fetch_Optional,LPSOLVE,$(LPSOLVE_TARBALL)) \ + $(call fetch_Optional,MDDS,$(MDDS_TARBALL)) \ + $(call fetch_Optional,MOZ,$(MOZ_TARBALL)) \ + $(call fetch_Optional,MSPUB,$(MSPUB_TARBALL)) \ + $(call fetch_Optional,MYSQLCPPCONN,$(MYSQLCPPCONN_TARBALL)) \ + $(call fetch_Optional,MYTHES,$(MYTHES_TARBALL)) \ + $(call fetch_Optional,NEON,$(NEON_TARBALL)) \ + $(call fetch_Optional,NSS,$(NSS_TARBALL)) \ + $(call fetch_Optional,OPENLDAP,$(OPENLDAP_TARBALL)) \ + $(call fetch_Optional,OPENSSL,$(OPENSSL_TARBALL)) \ + $(call fetch_Optional,ORCUS,$(ORCUS_TARBALL)) \ + $(call fetch_Optional,CAIRO,$(PIXMAN_TARBALL)) \ + $(call fetch_Optional,LIBPNG,$(PNG_TARBALL)) \ + $(call fetch_Optional,POSTGRESQL,$(POSTGRESQL_TARBALL)) \ + $(call fetch_Optional,PYTHON,$(PYTHON_TARBALL)) \ + $(call fetch_Optional,REDLAND,$(RAPTOR_TARBALL)) \ + $(call fetch_Optional,REDLAND,$(RASQAL_TARBALL)) \ + $(call fetch_Optional,REDLAND,$(REDLAND_TARBALL)) \ + $(call fetch_Optional,RHINO,$(RHINO_TARBALL)) \ + $(call fetch_Optional,RHINO,$(SWING_TARBALL)) \ + $(call fetch_Optional,TOMCAT,$(TOMCAT_TARBALL)) \ + $(call fetch_Optional,UCPP,$(UCPP_TARBALL)) \ + $(call fetch_Optional,VIGRA,$(VIGRA_TARBALL)) \ + $(call fetch_Optional,VISIO,$(VISIO_TARBALL)) \ + $(call fetch_Optional,WPD,$(WPD_TARBALL)) \ + $(call fetch_Optional,WPG,$(WPG_TARBALL)) \ + $(call fetch_Optional,WPS,$(WPS_TARBALL)) \ + $(call fetch_Optional,XPDF,$(XPDF_TARBALL)) \ + $(call fetch_Optional,XSLTML,$(XSLTML_TARBALL)) \ + $(call fetch_Optional,ZLIB,$(ZLIB_TARBALL)) \ ,$(call fetch_Download_item,http://dev-www.libreoffice.org/src,$(item))) $(foreach item, \ - $(DBGHELP_DLL) \ - $(UNOWINREG_DLL) \ + $(if $(filter WNT,$(OS)),$(DBGHELP_DLL)) \ + $(call fetch_Optional,ODK,$(UNOWINREG_DLL)) \ ,$(call fetch_Download_item,http://dev-www.libreoffice.org/extern,$(item))) $(foreach item, \ $(BARCODE_EXTENSION_PACK) \ @@ -162,9 +166,9 @@ fetch : $(WATCH_WINDOW_EXTENSION_PACK) \ ,$(call fetch_Download_item,http://ooo.itc.hu/oxygenoffice/download/libreoffice,$(item))) $(foreach item, \ - $(MOZ_ZIP_INC) \ - $(MOZ_ZIP_LIB) \ - $(MOZ_ZIP_RUNTIME) \ + $(call fetch_Optional,MOZ,$(MOZ_ZIP_INC)) \ + $(call fetch_Optional,MOZ,$(MOZ_ZIP_LIB)) \ + $(call fetch_Optional,MOZ,$(MOZ_ZIP_RUNTIME)) \ ,$(call fetch_Download_item,http://dev-www.libreoffice.org/mozilla,$(item))) # vim: set noet sw=4 ts=4: |