diff options
author | Peter Foley <pefoley2@verizon.net> | 2012-11-03 19:19:30 -0400 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-11-07 22:33:48 +0000 |
commit | 085346f80da394ad5008f40679a0d3519f7a82a3 (patch) | |
tree | 2bce02d30a8fca7679e92bca7d6a8cc94a31dee6 /lpsolve/ExternalProject_lpsolve.mk | |
parent | integrate librelogo to the build (diff) | |
download | core-085346f80da394ad5008f40679a0d3519f7a82a3.tar.gz core-085346f80da394ad5008f40679a0d3519f7a82a3.zip |
convert lpsolve to gbuild
Change-Id: I0038b21a1b3bde4d8d3f5dd0092d15d858336680
Reviewed-on: https://gerrit.libreoffice.org/1002
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'lpsolve/ExternalProject_lpsolve.mk')
-rw-r--r-- | lpsolve/ExternalProject_lpsolve.mk | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/lpsolve/ExternalProject_lpsolve.mk b/lpsolve/ExternalProject_lpsolve.mk new file mode 100644 index 000000000000..a398e7c294b3 --- /dev/null +++ b/lpsolve/ExternalProject_lpsolve.mk @@ -0,0 +1,44 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- +# +# This file is part of the LibreOffice project. +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# + +$(eval $(call gb_ExternalProject_ExternalProject,lpsolve)) + +$(eval $(call gb_ExternalProject_use_unpacked,lpsolve,lpsolve)) + +$(eval $(call gb_ExternalProject_use_package,lpsolve,hunspell)) + +$(eval $(call gb_ExternalProject_register_targets,lpsolve,\ + build \ +)) + +ifeq ($(GUI),WNT) +ifeq ($(COM),GCC) +$(call gb_ExternalProject_get_state_target,lpsolve,build): + cd $(EXTERNAL_WORKDIR)/lpsolve55 \ + && $(if $(filter WNT,$(GUI_FOR_BUILD)), \ + $(if $(filter YES,$(MINGW_SHARED_GCCLIB)) lpsolve_LDFLAGS="-shared-libgcc") \ + $(if $(filter YES,$(MINGW_SHARED_GXXLIB)) lpsolve_LIBS="$(MINGW_SHARED_LIBSTDCPP)") \ + cmd /c cgcc.bat, sh ccc) \ + && touch $@ +else # $(COM)!=GCC +$(call gb_ExternalProject_get_state_target,lpsolve,build): + cd $(EXTERNAL_WORKDIR)/lpsolve55 \ + && LIB="$(ILIB)" cmd /c cvc6.bat \ + && touch $@ +endif # $(COM) +else # $(GUI)!=WNT +$(call gb_ExternalProject_get_state_target,lpsolve,build): + cd $(EXTERNAL_WORKDIR)/lpsolve55 \ + && sh $(if $(filter MACOSX,$(OS)),ccc.osx, \ + $(if $(filter TRUE,$(DISABLE_DYNLOADING)),ccc.static, \ + $(if $(filter AIXGCC,$(OS)$(COM)),ccc.aix.gcc, \ + ccc))) \ + && touch $@ +endif # $(GUI) +# vim: set noet sw=4 ts=4: |