Enough with that...
peter's gbuildifications caused and ocean of red, that 1/ was not followed up by any attempt by the author to fix 2/ I wasted a good part of the weekend to de-entangle with only partial sucess reverting the whole mess for now... to be resubmited when a bit less borked... This reverts commitc4c160a451
. This reverts commitfaef2e51d0
. This reverts commit057ce1fe29
. This reverts commita7d34af344
. This reverts commitbefae0ceb8
. This reverts commit433b43bcd2
. This reverts commit93e2c4a9d2
.
This commit is contained in:
@@ -105,7 +105,6 @@ jvmaccess\
|
|||||||
jvmfwk\
|
jvmfwk\
|
||||||
l10ntools\
|
l10ntools\
|
||||||
languagetool\
|
languagetool\
|
||||||
lcms2\
|
|
||||||
libcdr\
|
libcdr\
|
||||||
libcmis\
|
libcmis\
|
||||||
libmspub\
|
libmspub\
|
||||||
@@ -119,7 +118,6 @@ libwps\
|
|||||||
lingucomponent\
|
lingucomponent\
|
||||||
linguistic\
|
linguistic\
|
||||||
lotuswordpro\
|
lotuswordpro\
|
||||||
lpsolve\
|
|
||||||
mdds\
|
mdds\
|
||||||
more_fonts\
|
more_fonts\
|
||||||
mythes\
|
mythes\
|
||||||
@@ -233,6 +231,8 @@ liblangtag\
|
|||||||
libxml2\
|
libxml2\
|
||||||
libxmlsec\
|
libxmlsec\
|
||||||
libxslt\
|
libxslt\
|
||||||
|
lcms2\
|
||||||
|
lpsolve\
|
||||||
migrationanalysis\
|
migrationanalysis\
|
||||||
moz\
|
moz\
|
||||||
mysqlc\
|
mysqlc\
|
||||||
|
@@ -94,7 +94,6 @@ $(eval $(call gb_Module_add_moduledirs,tail_end,\
|
|||||||
jvmaccess \
|
jvmaccess \
|
||||||
jvmfwk \
|
jvmfwk \
|
||||||
$(call gb_Helper_optional,LANGUAGETOOL,languagetool) \
|
$(call gb_Helper_optional,LANGUAGETOOL,languagetool) \
|
||||||
$(call gb_Helper_optional,LCMS2,lcms2) \
|
|
||||||
libcdr \
|
libcdr \
|
||||||
libcmis \
|
libcmis \
|
||||||
libmspub \
|
libmspub \
|
||||||
@@ -107,7 +106,6 @@ $(eval $(call gb_Module_add_moduledirs,tail_end,\
|
|||||||
lingucomponent \
|
lingucomponent \
|
||||||
linguistic \
|
linguistic \
|
||||||
lotuswordpro \
|
lotuswordpro \
|
||||||
$(call gb_Helper_optional,LPSOLVE,lpsolve) \
|
|
||||||
$(call gb_Helper_optional,DESKTOP,l10ntools) \
|
$(call gb_Helper_optional,DESKTOP,l10ntools) \
|
||||||
MathMLDTD \
|
MathMLDTD \
|
||||||
mdds \
|
mdds \
|
||||||
|
@@ -878,6 +878,7 @@ gb_LinkTarget__use_graphite :=
|
|||||||
|
|
||||||
endif # SYSTEM_GRAPHITE
|
endif # SYSTEM_GRAPHITE
|
||||||
|
|
||||||
|
|
||||||
ifeq ($(SYSTEM_ICU),YES)
|
ifeq ($(SYSTEM_ICU),YES)
|
||||||
|
|
||||||
define gb_LinkTarget__use_icudata
|
define gb_LinkTarget__use_icudata
|
||||||
@@ -909,7 +910,7 @@ else
|
|||||||
gb_ICU_suffix:=
|
gb_ICU_suffix:=
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# icudata and icui18n is called icudt and icuin when built with MSVC :-/
|
# icudata and icui18n is called icudt and icuin when built with MSVC :-(
|
||||||
ifeq ($(OS)$(COM),WNTMSC)
|
ifeq ($(OS)$(COM),WNTMSC)
|
||||||
$(eval $(call gb_Helper_register_libraries,PLAINLIBS_OOO, \
|
$(eval $(call gb_Helper_register_libraries,PLAINLIBS_OOO, \
|
||||||
icudt \
|
icudt \
|
||||||
@@ -1218,7 +1219,7 @@ ifeq ($(SYSTEM_LCMS2),YES)
|
|||||||
define gb_LinkTarget__use_lcms2
|
define gb_LinkTarget__use_lcms2
|
||||||
$(call gb_LinkTarget_set_include,$(1),\
|
$(call gb_LinkTarget_set_include,$(1),\
|
||||||
$$(INCLUDE) \
|
$$(INCLUDE) \
|
||||||
$(LCMS2_CFLAGS) \
|
$(LCMS2_CFLAGS) \
|
||||||
)
|
)
|
||||||
$(call gb_LinkTarget_add_libs,$(1),$(LCMS2_LIBS))
|
$(call gb_LinkTarget_add_libs,$(1),$(LCMS2_LIBS))
|
||||||
|
|
||||||
@@ -1233,9 +1234,8 @@ $(eval $(call gb_Helper_register_static_libraries,PLAINLIBS, \
|
|||||||
))
|
))
|
||||||
|
|
||||||
define gb_LinkTarget__use_lcms2
|
define gb_LinkTarget__use_lcms2
|
||||||
$(call gb_LinkTarget_use_external_project,$(1),lcms2)
|
|
||||||
$(call gb_LinkTarget_set_include,$(1),\
|
$(call gb_LinkTarget_set_include,$(1),\
|
||||||
-I$(call gb_UnpackedTarball_get_dir,lcms2/include) \
|
-I$(OUTDIR)/inc/lcms2 \
|
||||||
$$(INCLUDE) \
|
$$(INCLUDE) \
|
||||||
)
|
)
|
||||||
$(call gb_LinkTarget_use_static_libraries,$(1),\
|
$(call gb_LinkTarget_use_static_libraries,$(1),\
|
||||||
@@ -1251,17 +1251,13 @@ $(eval $(call gb_Helper_register_libraries,PLAINLIBS_OOO, \
|
|||||||
))
|
))
|
||||||
|
|
||||||
define gb_LinkTarget__use_lcms2
|
define gb_LinkTarget__use_lcms2
|
||||||
$(call gb_LinkTarget_use_external_project,$(1),lcms2)
|
|
||||||
$(call gb_LinkTarget_set_include,$(1),\
|
$(call gb_LinkTarget_set_include,$(1),\
|
||||||
-I$(call gb_UnpackedTarball_get_dir,lcms2/include) \
|
-I$(OUTDIR)/inc/lcms2 \
|
||||||
$$(INCLUDE) \
|
$$(INCLUDE) \
|
||||||
)
|
)
|
||||||
$(call gb_LinkTarget_add_libs,$(1),$(LCMS2_LIBS))
|
$(call gb_LinkTarget_use_libraries,$(1),\
|
||||||
|
lcms2 \
|
||||||
endef
|
)
|
||||||
|
|
||||||
define gb_ExternalProject__use_lcms2
|
|
||||||
$(call gb_ExternalProject_use_package,$(1),lcms2)
|
|
||||||
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
@@ -1271,11 +1267,8 @@ endif # SYSTEM_LCMS2
|
|||||||
|
|
||||||
ifeq ($(SYSTEM_LPSOLVE),YES)
|
ifeq ($(SYSTEM_LPSOLVE),YES)
|
||||||
|
|
||||||
define gb_LinkTarget__use_lpsolve
|
define gb_LinkTarget__use_lpsolve55
|
||||||
$(call gb_LinkTarget_add_libs,$(1),-llpsolve55)
|
$(call gb_LinkTarget_add_libs,$(1),-llpsolve55)
|
||||||
$(call gb_LinkTarget_add_defs,$(1),\
|
|
||||||
-DSYSTEM_LPSOLVE \
|
|
||||||
))
|
|
||||||
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
@@ -1285,14 +1278,10 @@ $(eval $(call gb_Helper_register_libraries,PLAINLIBS_OOO, \
|
|||||||
lpsolve55 \
|
lpsolve55 \
|
||||||
))
|
))
|
||||||
|
|
||||||
define gb_LinkTarget__use_lpsolve
|
define gb_LinkTarget__use_lpsolve55
|
||||||
$(call gb_LinkTarget_use_libraries,$(1),\
|
$(call gb_LinkTarget_use_libraries,$(1),\
|
||||||
lpsolve55 \
|
lpsolve55 \
|
||||||
)
|
)
|
||||||
$(call gb_LinkTarget_set_include,$(1),\
|
|
||||||
-I$(call gb_UnpackedTarball_get_dir,lpsolve) \
|
|
||||||
$$(INCLUDE) \
|
|
||||||
)
|
|
||||||
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
@@ -102,7 +102,6 @@ $(eval $(call gb_Module_add_moduledirs,ooo,\
|
|||||||
jvmfwk \
|
jvmfwk \
|
||||||
$(call gb_Helper_optional,DESKTOP,l10ntools) \
|
$(call gb_Helper_optional,DESKTOP,l10ntools) \
|
||||||
$(call gb_Helper_optional,LANGUAGETOOL,languagetool) \
|
$(call gb_Helper_optional,LANGUAGETOOL,languagetool) \
|
||||||
$(call gb_Helper_optional,LCMS2,lcms2) \
|
|
||||||
libcdr \
|
libcdr \
|
||||||
libcmis \
|
libcmis \
|
||||||
libmspub \
|
libmspub \
|
||||||
@@ -116,7 +115,6 @@ $(eval $(call gb_Module_add_moduledirs,ooo,\
|
|||||||
lingucomponent \
|
lingucomponent \
|
||||||
linguistic \
|
linguistic \
|
||||||
lotuswordpro \
|
lotuswordpro \
|
||||||
$(call gb_Helper_optional,LPSOLVE,lpsolve) \
|
|
||||||
MathMLDTD \
|
MathMLDTD \
|
||||||
mdds \
|
mdds \
|
||||||
Mesa \
|
Mesa \
|
||||||
|
@@ -311,7 +311,6 @@ export LANGUAGETOOL_TARBALL=@LANGUAGETOOL_TARBALL@
|
|||||||
export L10N_MODULE=@L10N_MODULE@
|
export L10N_MODULE=@L10N_MODULE@
|
||||||
export LCMS2_CFLAGS=@LCMS2_CFLAGS@
|
export LCMS2_CFLAGS=@LCMS2_CFLAGS@
|
||||||
export LCMS2_LIBS=@LCMS2_LIBS@
|
export LCMS2_LIBS=@LCMS2_LIBS@
|
||||||
export LCMS2_TARBALL=@LCMS2_TARBALL@
|
|
||||||
ifneq ($(strip @LDFLAGS@),)
|
ifneq ($(strip @LDFLAGS@),)
|
||||||
export LDFLAGS=@LDFLAGS@
|
export LDFLAGS=@LDFLAGS@
|
||||||
endif
|
endif
|
||||||
@@ -341,7 +340,6 @@ export LIBXML_LIBS=@LIBXML_LIBS@
|
|||||||
export LIBXSLT_CFLAGS=@LIBXSLT_CFLAGS@
|
export LIBXSLT_CFLAGS=@LIBXSLT_CFLAGS@
|
||||||
export LIBXSLT_LIBS=@LIBXSLT_LIBS@
|
export LIBXSLT_LIBS=@LIBXSLT_LIBS@
|
||||||
export LINK_X64_BINARY=@LINK_X64_BINARY@
|
export LINK_X64_BINARY=@LINK_X64_BINARY@
|
||||||
export LPSOLVE_TARBALL=@LPSOLVE_TARBALL@
|
|
||||||
@x_Cygwin@ export LS=@WIN_LS@
|
@x_Cygwin@ export LS=@WIN_LS@
|
||||||
export MANDIR=@MANDIR@
|
export MANDIR=@MANDIR@
|
||||||
export MACOSX_DEPLOYMENT_TARGET=@MACOSX_DEPLOYMENT_TARGET@
|
export MACOSX_DEPLOYMENT_TARGET=@MACOSX_DEPLOYMENT_TARGET@
|
||||||
|
@@ -7042,17 +7042,15 @@ if test "$with_system_lcms2" = "yes"; then
|
|||||||
else
|
else
|
||||||
AC_MSG_RESULT([internal])
|
AC_MSG_RESULT([internal])
|
||||||
SYSTEM_LCMS2=NO
|
SYSTEM_LCMS2=NO
|
||||||
|
BUILD_TYPE="$BUILD_TYPE LCMS2"
|
||||||
LCMS2_CFLAGS="-I${OUTDIR}/inc/lcms2"
|
LCMS2_CFLAGS="-I${OUTDIR}/inc/lcms2"
|
||||||
if test $_os = Darwin; then
|
if test $_os = Darwin; then
|
||||||
LCMS2_CFLAGS="$LCMS2_CFLAGS -Wno-long-long"
|
LCMS2_CFLAGS="$LCMS2_CFLAGS -Wno-long-long"
|
||||||
fi
|
fi
|
||||||
LCMS2_LIBS="-L${OUTDIR}/lib -llcms2"
|
LCMS2_LIBS="-L${OUTDIR}/lib -llcms2"
|
||||||
LCMS2_TARBALL="861ef15fa0bc018f9ddc932c4ad8b6dd-lcms2-2.4.tar.gz"
|
|
||||||
BUILD_TYPE="$BUILD_TYPE LCMS2"
|
|
||||||
fi
|
fi
|
||||||
AC_SUBST(SYSTEM_LCMS2)
|
AC_SUBST(SYSTEM_LCMS2)
|
||||||
AC_SUBST(LCMS2_CFLAGS)
|
AC_SUBST(LCMS2_CFLAGS)
|
||||||
AC_SUBST(LCMS2_TARBALL)
|
|
||||||
AC_SUBST(LCMS2_LIBS)
|
AC_SUBST(LCMS2_LIBS)
|
||||||
AC_SUBST([MINGW_LCMS2_DLL])
|
AC_SUBST([MINGW_LCMS2_DLL])
|
||||||
|
|
||||||
@@ -8957,11 +8955,9 @@ if test "$with_system_lpsolve" = "yes"; then
|
|||||||
else
|
else
|
||||||
AC_MSG_RESULT([internal])
|
AC_MSG_RESULT([internal])
|
||||||
SYSTEM_LPSOLVE=NO
|
SYSTEM_LPSOLVE=NO
|
||||||
LPSOLVE_TARBALL="26b3e95ddf3d9c077c480ea45874b3b8-lp_solve_5.5.tar.gz"
|
|
||||||
BUILD_TYPE="$BUILD_TYPE LPSOLVE"
|
BUILD_TYPE="$BUILD_TYPE LPSOLVE"
|
||||||
fi
|
fi
|
||||||
AC_SUBST(SYSTEM_LPSOLVE)
|
AC_SUBST(SYSTEM_LPSOLVE)
|
||||||
AC_SUBST(LPSOLVE_TARBALL)
|
|
||||||
AC_SUBST([MINGW_LPSOLVE_DLL])
|
AC_SUBST([MINGW_LPSOLVE_DLL])
|
||||||
|
|
||||||
dnl ===================================================================
|
dnl ===================================================================
|
||||||
|
@@ -1,32 +0,0 @@
|
|||||||
# -*- 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_ExternalPackage_ExternalPackage,lcms2,lcms2))
|
|
||||||
$(eval $(call gb_ExternalPackage_use_external_project,lcms2,lcms2))
|
|
||||||
|
|
||||||
$(eval $(call gb_ExternalPackage_add_file,lcms2,inc/lcms2/lcms2.h,include/lcms2.h))
|
|
||||||
|
|
||||||
ifeq ($(OS),MACOSX)
|
|
||||||
$(eval $(call gb_ExternalPackage_add_file,lcms2,lib/liblcms2.dylib,src/.libs/liblcms2.2.dylib))
|
|
||||||
else ifeq ($(filter-out IOS ANDROID,$(OS)),)
|
|
||||||
$(eval $(call gb_ExternalPackage_add_file,lcms2,lib/liblcms2.a,src/.libs/liblcms2.a))
|
|
||||||
else ifeq ($(OS),WNT)
|
|
||||||
ifeq ($(COM),GCC)
|
|
||||||
$(eval $(call gb_ExternalPackage_add_file,lcms2,lib/liblcms2.dll.a,src/.libs/liblcms2.dll.a))
|
|
||||||
$(eval $(call gb_ExternalPackage_add_file,lcms2,bin/liblcms2.dll,src/.libs/liblcms2.dll))
|
|
||||||
else ifeq ($(COM),MSC)
|
|
||||||
$(eval $(call gb_ExternalPackage_add_file,lcms2,lib/lcms2.lib,bin/lcms2.lib))
|
|
||||||
$(eval $(call gb_ExternalPackage_add_file,lcms2,bin/lcms2.dll,bin/lcms2.dll))
|
|
||||||
endif
|
|
||||||
else
|
|
||||||
$(eval $(call gb_ExternalPackage_add_file,lcms2,lib/liblcms2.so,src/.libs/liblcms2.so))
|
|
||||||
$(eval $(call gb_ExternalPackage_add_file,lcms2,lib/liblcms2.so.2,src/.libs/liblcms2.so.2))
|
|
||||||
$(eval $(call gb_ExternalPackage_add_file,lcms2,lib/liblcms2.so.2.0.4,src/.libs/liblcms2.so.2.0.4))
|
|
||||||
endif
|
|
||||||
# vim: set noet sw=4 ts=4:
|
|
@@ -1,45 +0,0 @@
|
|||||||
# -*- 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,lcms2))
|
|
||||||
|
|
||||||
$(eval $(call gb_ExternalProject_use_unpacked,lcms2,lcms2))
|
|
||||||
|
|
||||||
$(eval $(call gb_ExternalProject_use_package,lcms2,hunspell))
|
|
||||||
|
|
||||||
$(eval $(call gb_ExternalProject_register_targets,lcms2,\
|
|
||||||
build \
|
|
||||||
))
|
|
||||||
|
|
||||||
ifeq ($(COM),MSC)
|
|
||||||
|
|
||||||
ifeq ($(filter-out 14 13,$(COMEX)),)
|
|
||||||
$(call gb_ExternalProject_get_state_target,lcms2,build):
|
|
||||||
cd $(EXTERNAL_WORKDIR)/Projects/VC2010/lcms2_DLL \
|
|
||||||
&& MSBuild.exe lcms2_DLL.vcxproj /p:Configuration=Release /p:Platform=Win32 /p:TargetName=lcms2 \
|
|
||||||
$(if $(filter 14,$(COMEX)),/p:PlatformToolset=v110) \
|
|
||||||
&& touch $@
|
|
||||||
else
|
|
||||||
$(call gb_ExternalProject_get_state_target,lcms2,build):
|
|
||||||
cd $(EXTERNAL_WORKDIR)/VC2008/lcms2_DLL \
|
|
||||||
&& $(COMPATH)/vcpackages/vcbuild.exe lcms2_DLL.vcproj "Release|Win32" \
|
|
||||||
&& touch $@
|
|
||||||
endif
|
|
||||||
else
|
|
||||||
$(call gb_ExternalProject_get_state_target,lcms2,build):
|
|
||||||
cd $(EXTERNAL_WORKDIR) \
|
|
||||||
&& ./configure --without-jpeg --without-tiff --with-pic \
|
|
||||||
$(if $(filter YES,$(CROSS_COMPILING)),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)) \
|
|
||||||
CPPFLAGS=" $(SOLARINC)" \
|
|
||||||
$(if $(filter IOS ANDROID,$(OS)),--disable-shared, --enable-shared --disable-static) \
|
|
||||||
&& cd src \
|
|
||||||
&& $(MAKE) \
|
|
||||||
&& touch $@
|
|
||||||
endif
|
|
||||||
# vim: set noet sw=4 ts=4:
|
|
@@ -1,7 +0,0 @@
|
|||||||
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
|
||||||
|
|
||||||
module_directory:=$(dir $(realpath $(firstword $(MAKEFILE_LIST))))
|
|
||||||
|
|
||||||
include $(module_directory)/../solenv/gbuild/partial_build.mk
|
|
||||||
|
|
||||||
# vim: set noet sw=4 ts=4:
|
|
@@ -1,20 +0,0 @@
|
|||||||
# -*- 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_Module_Module,lcms2))
|
|
||||||
|
|
||||||
ifeq ($(SYSTEM_LCMS2),NO)
|
|
||||||
$(eval $(call gb_Module_add_targets,lcms2,\
|
|
||||||
UnpackedTarball_lcms2 \
|
|
||||||
ExternalPackage_lcms2 \
|
|
||||||
ExternalProject_lcms2 \
|
|
||||||
))
|
|
||||||
endif
|
|
||||||
|
|
||||||
# vim: set noet sw=4 ts=4:
|
|
@@ -1,20 +0,0 @@
|
|||||||
# -*- 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_UnpackedTarball_UnpackedTarball,lcms2))
|
|
||||||
|
|
||||||
$(eval $(call gb_UnpackedTarball_set_tarball,lcms2,$(LCMS2_TARBALL)))
|
|
||||||
$(eval $(call gb_UnpackedTarball_set_patchlevel,lcms2,3))
|
|
||||||
|
|
||||||
$(eval $(call gb_UnpackedTarball_add_patches,lcms2,\
|
|
||||||
lcms2/lcms2.patch \
|
|
||||||
lcms2/lcms2-2.4-windows.patch \
|
|
||||||
))
|
|
||||||
|
|
||||||
# vim: set noet sw=4 ts=4:
|
|
115
lcms2/makefile.mk
Normal file
115
lcms2/makefile.mk
Normal file
@@ -0,0 +1,115 @@
|
|||||||
|
#*************************************************************************
|
||||||
|
#
|
||||||
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
|
#
|
||||||
|
# Copyright 2000, 2010 Oracle and/or its affiliates.
|
||||||
|
#
|
||||||
|
# OpenOffice.org - a multi-platform office productivity suite
|
||||||
|
#
|
||||||
|
# This file is part of OpenOffice.org.
|
||||||
|
#
|
||||||
|
# OpenOffice.org is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU Lesser General Public License version 3
|
||||||
|
# only, as published by the Free Software Foundation.
|
||||||
|
#
|
||||||
|
# OpenOffice.org is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU Lesser General Public License version 3 for more details
|
||||||
|
# (a copy is included in the LICENSE file that accompanied this code).
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Lesser General Public License
|
||||||
|
# version 3 along with OpenOffice.org. If not, see
|
||||||
|
# <http://www.openoffice.org/license.html>
|
||||||
|
# for a copy of the LGPLv3 License.
|
||||||
|
#
|
||||||
|
#*************************************************************************
|
||||||
|
|
||||||
|
PRJ=.
|
||||||
|
|
||||||
|
PRJNAME=lcms2
|
||||||
|
TARGET=so_lcms2
|
||||||
|
|
||||||
|
# --- Settings -----------------------------------------------------
|
||||||
|
|
||||||
|
.INCLUDE : settings.mk
|
||||||
|
|
||||||
|
# --- Files --------------------------------------------------------
|
||||||
|
|
||||||
|
TARFILE_NAME=lcms2-2.4
|
||||||
|
TARFILE_MD5=861ef15fa0bc018f9ddc932c4ad8b6dd
|
||||||
|
|
||||||
|
PATCH_FILES = lcms2.patch
|
||||||
|
|
||||||
|
.IF "$(SYSTEM_LCMS2)" == "YES"
|
||||||
|
@all:
|
||||||
|
@echo "Using system littlecms2..."
|
||||||
|
.ENDIF
|
||||||
|
|
||||||
|
.IF "$(GUI)$(COM)"=="WNTMSC"
|
||||||
|
|
||||||
|
PATCH_FILES += lcms2-2.4-windows.patch
|
||||||
|
|
||||||
|
CONFIGURE_DIR=.
|
||||||
|
|
||||||
|
CONFIGURE_ACTION =
|
||||||
|
|
||||||
|
.IF "$(CCNUMVER)" >= "001700000000"
|
||||||
|
BUILD_DIR=Projects/VC2010/lcms2_DLL
|
||||||
|
BUILD_ACTION=MSBuild.exe lcms2_DLL.vcxproj /p:Configuration=Release /p:Platform=Win32 /p:TargetName=lcms2 /p:PlatformToolset=v110
|
||||||
|
.ELIF "$(CCNUMVER)" >= "001600000000"
|
||||||
|
BUILD_DIR=Projects/VC2010/lcms2_DLL
|
||||||
|
BUILD_ACTION=MSBuild.exe lcms2_DLL.vcxproj /p:Configuration=Release /p:Platform=Win32 /p:TargetName=lcms2
|
||||||
|
.ELSE
|
||||||
|
BUILD_DIR=Projects/VC2008/lcms2_DLL
|
||||||
|
BUILD_ACTION=$(COMPATH)$/vcpackages$/vcbuild.exe lcms2_DLL.vcproj "Release|Win32"
|
||||||
|
.ENDIF
|
||||||
|
|
||||||
|
.ELSE #"$(GUI)$(COM)"!="WNTMSC"
|
||||||
|
|
||||||
|
CONFIGURE_DIR=.
|
||||||
|
BUILD_DIR=src
|
||||||
|
|
||||||
|
CONFIGURE_ACTION = CPPFLAGS="$(SOLARINC)" ./configure --without-jpeg --without-tiff --with-pic --enable-shared --disable-static
|
||||||
|
|
||||||
|
.IF "$(CROSS_COMPILING)" == "YES"
|
||||||
|
CONFIGURE_ACTION += --build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)
|
||||||
|
.ENDIF
|
||||||
|
|
||||||
|
.IF "$(OS)" == "MACOSX"
|
||||||
|
CONFIGURE_FLAGS += \
|
||||||
|
--prefix=/@.__________________________________________________$(EXTRPATH)
|
||||||
|
.END
|
||||||
|
|
||||||
|
.IF "$(OS)" == "IOS" || "$(OS)" == "ANDROID"
|
||||||
|
CONFIGURE_ACTION += --disable-shared
|
||||||
|
.ENDIF
|
||||||
|
|
||||||
|
BUILD_ACTION = $(GNUMAKE) -j$(PARALLELISM)
|
||||||
|
|
||||||
|
.ENDIF # "$(GUI)$(COM)"=="WNTMSC"
|
||||||
|
|
||||||
|
OUT2INC+=include$/lcms2*.h
|
||||||
|
|
||||||
|
.IF "$(OS)"=="MACOSX"
|
||||||
|
OUT2LIB+=src$/.libs$/liblcms2.*.dylib
|
||||||
|
.ELIF "$(OS)"=="IOS" || "$(OS)" == "ANDROID"
|
||||||
|
OUT2LIB+=src$/.libs$/liblcms2.a
|
||||||
|
.ELIF "$(OS)"=="WNT"
|
||||||
|
.IF "$(COM)"=="GCC"
|
||||||
|
OUT2LIB+=src$/.libs$/liblcms2.dll.a
|
||||||
|
OUT2BIN+=src$/.libs$/*.dll
|
||||||
|
.ELSE
|
||||||
|
OUT2LIB+=bin$/lcms2.lib
|
||||||
|
OUT2BIN+=bin$/lcms2.dll
|
||||||
|
.ENDIF
|
||||||
|
.ELSE
|
||||||
|
OUT2LIB+=src$/.libs$/liblcms2.so*
|
||||||
|
.ENDIF
|
||||||
|
|
||||||
|
# --- Targets ------------------------------------------------------
|
||||||
|
|
||||||
|
.INCLUDE : set_ext.mk
|
||||||
|
.INCLUDE : target.mk
|
||||||
|
.INCLUDE : tg_ext.mk
|
||||||
|
|
@@ -1,2 +1,3 @@
|
|||||||
lcms lcms2 : soltools ZLIB:zlib NULL
|
lcms lcms2 : soltools ZLIB:zlib NULL
|
||||||
lcms lcms2/prj nmake - all lcms_prj NULL
|
lcms lcms2 usr1 - all lcms_mkout NULL
|
||||||
|
lcms lcms2 nmake - all lcms_libwpd NULL
|
||||||
|
@@ -0,0 +1,11 @@
|
|||||||
|
mkdir: %_DEST%\inc\lcms2
|
||||||
|
..\%__SRC%\inc\*.h %_DEST%\inc\lcms2\*.h
|
||||||
|
..\%__SRC%\lib\liblcms2.so.2 %_DEST%\lib\liblcms2.so.2
|
||||||
|
..\%__SRC%\lib\liblcms2.a %_DEST%\lib\liblcms2.a
|
||||||
|
symlink: %_DEST%\lib\liblcms2.so.2 %_DEST%\lib\liblcms2.so
|
||||||
|
..\%__SRC%\lib\liblcms2.2.dylib %_DEST%\lib\liblcms2.2.dylib
|
||||||
|
symlink: %_DEST%\lib\liblcms2.2.dylib %_DEST%\lib\liblcms2.dylib
|
||||||
|
..\%__SRC%\lib\liblcms2.so %_DEST%\lib\liblcms2.so
|
||||||
|
..\%__SRC%\lib\*.lib %_DEST%\lib
|
||||||
|
..\%__SRC%\lib\liblcms2.dll.a %_DEST%\lib\liblcms2.dll.a
|
||||||
|
..\%__SRC%\bin\*.dll %_DEST%\bin
|
||||||
|
0
lcms2/prj/dmake
Normal file
0
lcms2/prj/dmake
Normal file
@@ -16,7 +16,6 @@ $(eval $(call gb_ExternalProject_register_targets,libcdr,\
|
|||||||
))
|
))
|
||||||
|
|
||||||
$(eval $(call gb_ExternalProject_use_externals,libcdr,\
|
$(eval $(call gb_ExternalProject_use_externals,libcdr,\
|
||||||
lcms2 \
|
|
||||||
wpd \
|
wpd \
|
||||||
wpg \
|
wpg \
|
||||||
))
|
))
|
||||||
|
@@ -1,34 +0,0 @@
|
|||||||
# -*- 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_ExternalPackage_ExternalPackage,lpsolve,lpsolve))
|
|
||||||
$(eval $(call gb_ExternalPackage_use_external_project,lpsolve,lpsolve))
|
|
||||||
|
|
||||||
ifeq ($(GUI),WNT)
|
|
||||||
ifeq ($(COM),GCC)
|
|
||||||
ifneq ($(GUI_FOR_BUILD),WNT)
|
|
||||||
$(eval $(call gb_ExternalPackage_add_files,lpsolve,lib,lpsolve55/liblpsolve55.dll.a))
|
|
||||||
endif # $(GUI_FOR_BUILD)
|
|
||||||
else # $(COM)
|
|
||||||
$(eval $(call gb_ExternalPackage_add_files,lpsolve,lib,lpsolve55/lpsolve55.lib))
|
|
||||||
endif # $(COM)
|
|
||||||
$(eval $(call gb_ExternalPackage_add_files,lpsolve,bin,lpsolve55/lpsolve55.dll))
|
|
||||||
else # $(GUI)
|
|
||||||
ifeq ($(OS),MACOSX)
|
|
||||||
$(eval $(call gb_ExternalPackage_add_files,lpsolve,lib,lpsolve55/liblpsolve55.dylib))
|
|
||||||
else # $(OS)
|
|
||||||
ifeq ($(DISABLE_DYNLOADING),TRUE)
|
|
||||||
$(eval $(call gb_ExternalPackage_add_files,lpsolve,lib,lpsolve55/liblpsolve55.a))
|
|
||||||
else # DISABLE_DYNLOADING
|
|
||||||
$(eval $(call gb_ExternalPackage_add_files,lpsolve,lib,lpsolve55/liblpsolve55.so))
|
|
||||||
endif # $(DISABLE_DYNLOADING)
|
|
||||||
endif # $(OS)
|
|
||||||
endif # $(GUI)
|
|
||||||
|
|
||||||
# vim: set noet sw=4 ts=4:
|
|
@@ -1,43 +0,0 @@
|
|||||||
# -*- 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:
|
|
@@ -1,7 +0,0 @@
|
|||||||
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
|
||||||
|
|
||||||
module_directory:=$(dir $(realpath $(firstword $(MAKEFILE_LIST))))
|
|
||||||
|
|
||||||
include $(module_directory)/../solenv/gbuild/partial_build.mk
|
|
||||||
|
|
||||||
# vim: set noet sw=4 ts=4:
|
|
@@ -1,22 +0,0 @@
|
|||||||
# -*- 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_Module_Module,lpsolve))
|
|
||||||
|
|
||||||
ifeq ($(SYSTEM_LPSOLVE),NO)
|
|
||||||
ifneq ($(OS),IOS)
|
|
||||||
$(eval $(call gb_Module_add_targets,lpsolve,\
|
|
||||||
UnpackedTarball_lpsolve \
|
|
||||||
ExternalPackage_lpsolve \
|
|
||||||
ExternalProject_lpsolve \
|
|
||||||
))
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
# vim: set noet sw=4 ts=4:
|
|
@@ -1,36 +0,0 @@
|
|||||||
# -*- 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_UnpackedTarball_UnpackedTarball,lpsolve))
|
|
||||||
|
|
||||||
$(eval $(call gb_UnpackedTarball_set_tarball,lpsolve,$(LPSOLVE_TARBALL)))
|
|
||||||
|
|
||||||
$(eval $(call gb_UnpackedTarball_set_patchlevel,lpsolve,3))
|
|
||||||
|
|
||||||
ifeq ($(GUI_FOR_BUILD),WNT)
|
|
||||||
|
|
||||||
$(eval $(call gb_UnpackedTarball_add_patches,lpsolve,\
|
|
||||||
lpsolve/lp_solve_5.5-windows.patch \
|
|
||||||
))
|
|
||||||
|
|
||||||
else
|
|
||||||
|
|
||||||
$(eval $(call gb_UnpackedTarball_add_patches,lpsolve,\
|
|
||||||
lpsolve/lp_solve-aix.patch \
|
|
||||||
lpsolve/lp_solve-fixed-warn.patch \
|
|
||||||
lpsolve/lp_solve_5.5.patch \
|
|
||||||
))
|
|
||||||
|
|
||||||
$(eval $(call gb_UnpackedTarball_add_file,lpsolve,\
|
|
||||||
lpsolve/lpsolve55/ccc.static,lpsolve/ccc.static))
|
|
||||||
|
|
||||||
endif
|
|
||||||
# vim: set noet sw=4 ts=4:
|
|
||||||
|
|
||||||
|
|
@@ -1,11 +0,0 @@
|
|||||||
+src='../lp_MDO.c ../shared/commonlib.c ../shared/mmio.c ../shared/myblas.c ../ini.c ../fortify.c ../colamd/colamd.c ../lp_rlp.c ../lp_crash.c ../bfp/bfp_LUSOL/lp_LUSOL.c ../bfp/bfp_LUSOL/LUSOL/lusol.c ../lp_Hash.c ../lp_lib.c ../lp_wlp.c ../lp_matrix.c ../lp_mipbb.c ../lp_MPS.c ../lp_params.c ../lp_presolve.c ../lp_price.c ../lp_pricePSE.c ../lp_report.c ../lp_scale.c ../lp_simplex.c ../lp_SOS.c ../lp_utils.c ../yacc_read.c'
|
|
||||||
+obj=`echo $src|sed -e 's/\.c/.o/g' -e 's!\([^ ]*/\)*!!g'`
|
|
||||||
+
|
|
||||||
+opts='-O3'
|
|
||||||
+
|
|
||||||
+def=
|
|
||||||
+
|
|
||||||
+$CC -I.. -I../bfp -I../bfp/bfp_LUSOL -I../bfp/bfp_LUSOL/LUSOL -I../colamd -I../shared $opts $def -DYY_NEVER_INTERACTIVE -DPARSER_LP -DINVERSE_ACTIVE=INVERSE_LUSOL -DRoleIsExternalInvEngine -c $src
|
|
||||||
+ls -l
|
|
||||||
+$AR -r liblpsolve55.a $obj
|
|
||||||
+rm $obj
|
|
@@ -43,10 +43,9 @@
|
|||||||
@@ -14,15 +14,4 @@
|
@@ -14,15 +14,4 @@
|
||||||
set c=cl
|
set c=cl
|
||||||
|
|
||||||
-rc lpsolve.rc
|
rc lpsolve.rc
|
||||||
+rc %SOLARINC% lpsolve.rc
|
|
||||||
-%c% -I.. -I../shared -I../bfp -I../bfp/bfp_LUSOL -I../bfp/bfp_LUSOL/LUSOL -I../colamd /LD /MD /O1 /Zp8 /Gz -D_WINDLL -D_USRDLL -DWIN32 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DYY_NEVER_INTERACTIVE -DPARSER_LP -DINVERSE_ACTIVE=INVERSE_LUSOL -DRoleIsExternalInvEngine %src% lpsolve.res ..\lp_solve.def -o lpsolve55.dll
|
-%c% -I.. -I../shared -I../bfp -I../bfp/bfp_LUSOL -I../bfp/bfp_LUSOL/LUSOL -I../colamd /LD /MD /O1 /Zp8 /Gz -D_WINDLL -D_USRDLL -DWIN32 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DYY_NEVER_INTERACTIVE -DPARSER_LP -DINVERSE_ACTIVE=INVERSE_LUSOL -DRoleIsExternalInvEngine %src% lpsolve.res ..\lp_solve.def -o lpsolve55.dll
|
||||||
+%c% -I.. -I../shared -I../bfp -I../bfp/bfp_LUSOL -I../bfp/bfp_LUSOL/LUSOL -I../colamd %SOLARINC% /LD /MD /O1 /Zp8 /Gz -D_WINDLL -D_USRDLL -DWIN32 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DYY_NEVER_INTERACTIVE -DPARSER_LP -DINVERSE_ACTIVE=INVERSE_LUSOL -DRoleIsExternalInvEngine %src% lpsolve.res ..\lp_solve.def -Felpsolve55.dll
|
+%c% -I.. -I../shared -I../bfp -I../bfp/bfp_LUSOL -I../bfp/bfp_LUSOL/LUSOL -I../colamd /LD /MD /O1 /Zp8 /Gz -D_WINDLL -D_USRDLL -DWIN32 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DYY_NEVER_INTERACTIVE -DPARSER_LP -DINVERSE_ACTIVE=INVERSE_LUSOL -DRoleIsExternalInvEngine %src% lpsolve.res ..\lp_solve.def -Felpsolve55.dll
|
||||||
-rem /link /LINK50COMPAT
|
-rem /link /LINK50COMPAT
|
||||||
-
|
-
|
||||||
-if exist a.obj del a.obj
|
-if exist a.obj del a.obj
|
||||||
|
@@ -98,3 +98,53 @@
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
rm *.o 2>/dev/null
|
rm *.o 2>/dev/null
|
||||||
|
--- misc/build/lp_solve_5.5/lpsolve55/ccc.solaris.orig Sun May 22 11:19:48 2011
|
||||||
|
+++ misc/build/lp_solve_5.5/lpsolve55/ccc.solaris Sun May 22 11:19:48 2011
|
||||||
|
@@ -1 +1,31 @@
|
||||||
|
-dummy
|
||||||
|
+src='../lp_MDO.c ../shared/commonlib.c ../shared/mmio.c ../shared/myblas.c ../ini.c ../fortify.c ../colamd/colamd.c ../lp_rlp.c ../lp_crash.c ../bfp/bfp_LUSOL/lp_LUSOL.c ../bfp/bfp_LUSOL/LUSOL/lusol.c ../lp_Hash.c ../lp_lib.c ../lp_wlp.c ../lp_matrix.c ../lp_mipbb.c ../lp_MPS.c ../lp_params.c ../lp_presolve.c ../lp_price.c ../lp_pricePSE.c ../lp_report.c ../lp_scale.c ../lp_simplex.c ../lp_SOS.c ../lp_utils.c ../yacc_read.c'
|
||||||
|
+c=$CC
|
||||||
|
+
|
||||||
|
+if [ "$CPU" = "U" -o "$CPU" = "X" ]
|
||||||
|
+then
|
||||||
|
+ extra_cflags=-m64
|
||||||
|
+ extra_linkflags=-m64
|
||||||
|
+fi
|
||||||
|
+
|
||||||
|
+def=
|
||||||
|
+so=
|
||||||
|
+if [ "$PLATFORM" = "SCO_UNIX" ]
|
||||||
|
+then def='-dy -K PIC -DNOLONGLONG'
|
||||||
|
+ dl=-lc
|
||||||
|
+else dl=-ldl
|
||||||
|
+ so=y
|
||||||
|
+fi
|
||||||
|
+
|
||||||
|
+opts='-xO3'
|
||||||
|
+
|
||||||
|
+$c $extra_cflags -s -c -I.. -I../shared -I../bfp -I../bfp/bfp_LUSOL -I../bfp/bfp_LUSOL/LUSOL -I../colamd $opts $def -DYY_NEVER_INTERACTIVE -DPARSER_LP -DINVERSE_ACTIVE=INVERSE_LUSOL -DRoleIsExternalInvEngine $src
|
||||||
|
+ar rv liblpsolve55.a `echo $src|sed s/[.]c/.o/g|sed 's/[^ ]*\///g'`
|
||||||
|
+ranlib liblpsolve55.a
|
||||||
|
+
|
||||||
|
+if [ "$so" != "" ]
|
||||||
|
+then
|
||||||
|
+ $c $extra_cflags -K PIC -s -c -I.. -I../shared -I../bfp -I../bfp/bfp_LUSOL -I../bfp/bfp_LUSOL/LUSOL -I../colamd -I. $opts -DYY_NEVER_INTERACTIVE -DPARSER_LP -DINVERSE_ACTIVE=INVERSE_LUSOL -DRoleIsExternalInvEngine $src
|
||||||
|
+ $c $extra_linkflags -G -Bsymbolic -h liblpsolve55.so -o liblpsolve55.so `echo $src|sed s/[.]c/.o/g|sed 's/[^ ]*\///g'` $SOLARLIB -lc -lm -ldl
|
||||||
|
+fi
|
||||||
|
+
|
||||||
|
+rm *.o 2>/dev/null
|
||||||
|
--- misc/build/lp_solve_5.5/lpsolve55/ccc.static
|
||||||
|
+++ misc/build/lp_solve_5.5/lpsolve55/ccc.static
|
||||||
|
@@ -1,1 +1,11 @@
|
||||||
|
-dummy
|
||||||
|
+src='../lp_MDO.c ../shared/commonlib.c ../shared/mmio.c ../shared/myblas.c ../ini.c ../fortify.c ../colamd/colamd.c ../lp_rlp.c ../lp_crash.c ../bfp/bfp_LUSOL/lp_LUSOL.c ../bfp/bfp_LUSOL/LUSOL/lusol.c ../lp_Hash.c ../lp_lib.c ../lp_wlp.c ../lp_matrix.c ../lp_mipbb.c ../lp_MPS.c ../lp_params.c ../lp_presolve.c ../lp_price.c ../lp_pricePSE.c ../lp_report.c ../lp_scale.c ../lp_simplex.c ../lp_SOS.c ../lp_utils.c ../yacc_read.c'
|
||||||
|
+obj=`echo $src|sed -e 's/\.c/.o/g' -e 's!\([^ ]*/\)*!!g'`
|
||||||
|
+
|
||||||
|
+opts='-O3'
|
||||||
|
+
|
||||||
|
+def=
|
||||||
|
+
|
||||||
|
+$CC -I.. -I../bfp -I../bfp/bfp_LUSOL -I../bfp/bfp_LUSOL/LUSOL -I../colamd -I../shared $opts $def -DYY_NEVER_INTERACTIVE -DPARSER_LP -DINVERSE_ACTIVE=INVERSE_LUSOL -DRoleIsExternalInvEngine -c $src
|
||||||
|
+ls -l
|
||||||
|
+$AR -r liblpsolve55.a $obj
|
||||||
|
+rm $obj
|
||||||
|
117
lpsolve/makefile.mk
Normal file
117
lpsolve/makefile.mk
Normal file
@@ -0,0 +1,117 @@
|
|||||||
|
#*************************************************************************
|
||||||
|
#
|
||||||
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
|
#
|
||||||
|
# Copyright 2000, 2010 Oracle and/or its affiliates.
|
||||||
|
#
|
||||||
|
# OpenOffice.org - a multi-platform office productivity suite
|
||||||
|
#
|
||||||
|
# This file is part of OpenOffice.org.
|
||||||
|
#
|
||||||
|
# OpenOffice.org is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU Lesser General Public License version 3
|
||||||
|
# only, as published by the Free Software Foundation.
|
||||||
|
#
|
||||||
|
# OpenOffice.org is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU Lesser General Public License version 3 for more details
|
||||||
|
# (a copy is included in the LICENSE file that accompanied this code).
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Lesser General Public License
|
||||||
|
# version 3 along with OpenOffice.org. If not, see
|
||||||
|
# <http://www.openoffice.org/license.html>
|
||||||
|
# for a copy of the LGPLv3 License.
|
||||||
|
#
|
||||||
|
#*************************************************************************
|
||||||
|
|
||||||
|
PRJ=.
|
||||||
|
|
||||||
|
PRJNAME=lpsolve
|
||||||
|
TARGET=lpsolve
|
||||||
|
|
||||||
|
# --- Settings -----------------------------------------------------
|
||||||
|
|
||||||
|
.INCLUDE : settings.mk
|
||||||
|
|
||||||
|
# --- Files --------------------------------------------------------
|
||||||
|
|
||||||
|
.IF "$(OS)" != "IOS"
|
||||||
|
|
||||||
|
TARFILE_NAME=lp_solve_5.5
|
||||||
|
TARFILE_MD5=26b3e95ddf3d9c077c480ea45874b3b8
|
||||||
|
|
||||||
|
.IF "$(GUI_FOR_BUILD)"=="WNT"
|
||||||
|
PATCH_FILES=lp_solve_5.5-windows.patch
|
||||||
|
.ELSE
|
||||||
|
PATCH_FILES=\
|
||||||
|
lp_solve_5.5.patch \
|
||||||
|
lp_solve-aix.patch \
|
||||||
|
lp_solve-fixed-warn.patch
|
||||||
|
ADDITIONAL_FILES=lpsolve55$/ccc.solaris lpsolve55$/ccc.static
|
||||||
|
.ENDIF
|
||||||
|
|
||||||
|
CONFIGURE_DIR=
|
||||||
|
CONFIGURE_ACTION=
|
||||||
|
CONFIGURE_FLAGS=
|
||||||
|
|
||||||
|
.IF "$(DISABLE_DYNLOADING)" == "TRUE"
|
||||||
|
CONFIGURE_FLAGS+=--enable-static --disable-shared
|
||||||
|
.ENDIF
|
||||||
|
|
||||||
|
BUILD_DIR=lpsolve55
|
||||||
|
.IF "$(GUI)"=="WNT"
|
||||||
|
.IF "$(COM)"=="GCC"
|
||||||
|
.IF "$(MINGW_SHARED_GCCLIB)"=="YES"
|
||||||
|
lpsolve_LDFLAGS=-shared-libgcc
|
||||||
|
.ENDIF
|
||||||
|
.IF "$(MINGW_SHARED_GXXLIB)"=="YES"
|
||||||
|
lpsolve_LIBS=$(MINGW_SHARED_LIBSTDCPP)
|
||||||
|
.ENDIF
|
||||||
|
.IF "$(GUI_FOR_BUILD)"=="WNT"
|
||||||
|
BUILD_ACTION=lpsolve_LDFLAGS=$(lpsolve_LDFLAGS) lpsolve_LIBS=$(lpsolve_LIBS) cmd /c cgcc.bat
|
||||||
|
.ELSE
|
||||||
|
BUILD_ACTION=sh ccc
|
||||||
|
OUT2LIB=$(BUILD_DIR)$/liblpsolve55.dll.a
|
||||||
|
.ENDIF
|
||||||
|
.ELSE
|
||||||
|
BUILD_ACTION=cmd /c cvc6.bat
|
||||||
|
OUT2LIB=$(BUILD_DIR)$/lpsolve55.lib
|
||||||
|
.ENDIF
|
||||||
|
OUT2BIN=$(BUILD_DIR)$/lpsolve55.dll
|
||||||
|
.ELSE
|
||||||
|
.IF "$(OS)"=="MACOSX"
|
||||||
|
.EXPORT: EXTRA_CDEFS EXTRA_LINKFLAGS verbose
|
||||||
|
BUILD_ACTION=sh ccc.osx
|
||||||
|
OUT2LIB=$(BUILD_DIR)$/liblpsolve55.dylib
|
||||||
|
.ELIF "$(DISABLE_DYNLOADING)" == "TRUE"
|
||||||
|
BUILD_ACTION=sh ccc.static
|
||||||
|
OUT2LIB=$(BUILD_DIR)$/liblpsolve55.a
|
||||||
|
.ELSE
|
||||||
|
.IF "$(COMNAME)"=="sunpro5"
|
||||||
|
BUILD_ACTION=sh ccc.solaris
|
||||||
|
.ELIF "$(OS)$(COM)"=="AIXGCC"
|
||||||
|
BUILD_ACTION=lpsolve_LDFLAGS="$(LINKFLAGS) $(LINKFLAGSRUNPATH_OOO)" sh ccc.aix.gcc
|
||||||
|
.ELSE
|
||||||
|
BUILD_ACTION=sh ccc
|
||||||
|
.ENDIF
|
||||||
|
OUT2LIB=$(BUILD_DIR)$/liblpsolve55.so
|
||||||
|
.ENDIF
|
||||||
|
.ENDIF
|
||||||
|
|
||||||
|
OUT2INC=lp_lib.h lp_types.h lp_utils.h lp_Hash.h lp_matrix.h lp_mipbb.h lp_SOS.h
|
||||||
|
|
||||||
|
|
||||||
|
# --- Targets ------------------------------------------------------
|
||||||
|
|
||||||
|
.INCLUDE : set_ext.mk
|
||||||
|
|
||||||
|
.ENDIF
|
||||||
|
|
||||||
|
.INCLUDE : target.mk
|
||||||
|
|
||||||
|
.IF "$(OS)" != "IOS"
|
||||||
|
|
||||||
|
.INCLUDE : tg_ext.mk
|
||||||
|
|
||||||
|
.ENDIF
|
@@ -0,0 +1,11 @@
|
|||||||
|
mkdir: %_DEST%\inc\lpsolve
|
||||||
|
|
||||||
|
..\%__SRC%\inc\lp_*.h %_DEST%\inc\lpsolve\*
|
||||||
|
..\%__SRC%\lib\liblpsolve55.so %_DEST%\lib\liblpsolve55.so
|
||||||
|
..\%__SRC%\lib\liblpsolve55.dylib %_DEST%\lib\liblpsolve55.dylib
|
||||||
|
..\%__SRC%\lib\liblpsolve55.lib %_DEST%\lib\liblpsolve55.lib
|
||||||
|
..\%__SRC%\lib\liblpsolve55.a %_DEST%\lib\liblpsolve55.a
|
||||||
|
..\%__SRC%\lib\liblpsolve55.dll.a %_DEST%\lib\liblpsolve55.dll.a
|
||||||
|
..\%__SRC%\lib\lpsolve55.lib %_DEST%\lib\lpsolve55.lib
|
||||||
|
..\%__SRC%\bin\lpsolve55.dll %_DEST%\bin\lpsolve55.dll
|
||||||
|
|
||||||
|
0
lpsolve/prj/dmake
Normal file
0
lpsolve/prj/dmake
Normal file
@@ -4,6 +4,7 @@ c63f411b3ad147db2bcce1bf262a0e02-pixman-0.24.4.tar.bz2
|
|||||||
6097739c841f671cb21332b9cc593ae7-libexttextcat-3.3.1.tar.bz2
|
6097739c841f671cb21332b9cc593ae7-libexttextcat-3.3.1.tar.bz2
|
||||||
18f577b374d60b3c760a3a3350407632-STLport-4.5.tar.gz
|
18f577b374d60b3c760a3a3350407632-STLport-4.5.tar.gz
|
||||||
1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz
|
1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz
|
||||||
|
26b3e95ddf3d9c077c480ea45874b3b8-lp_solve_5.5.tar.gz
|
||||||
284e768eeda0e2898b0d5bf7e26a016e-raptor-1.4.18.tar.gz
|
284e768eeda0e2898b0d5bf7e26a016e-raptor-1.4.18.tar.gz
|
||||||
35c94d2df8893241173de1d16b6034c0-swingExSrc.zip
|
35c94d2df8893241173de1d16b6034c0-swingExSrc.zip
|
||||||
4a660ce8466c9df01f19036435425c3a-glibc-2.1.3-stub.tar.gz
|
4a660ce8466c9df01f19036435425c3a-glibc-2.1.3-stub.tar.gz
|
||||||
@@ -31,6 +32,7 @@ a7d6c5f2fe2d481149ed3ba807b5c043-gdk-pixbuf-2.23.0.tar.gz
|
|||||||
7c53f83e0327343f4060c0eb83842daf-icu4c-49_1_1-src.tgz
|
7c53f83e0327343f4060c0eb83842daf-icu4c-49_1_1-src.tgz
|
||||||
0f63ee487fda8f21fafa767b3c447ac9-ixion-0.2.0.tar.gz
|
0f63ee487fda8f21fafa767b3c447ac9-ixion-0.2.0.tar.gz
|
||||||
a0a861f539f0e7a91d05e6b9457e4db1-nss-3.13.5-with-nspr-4.9.1.tar.gz
|
a0a861f539f0e7a91d05e6b9457e4db1-nss-3.13.5-with-nspr-4.9.1.tar.gz
|
||||||
|
861ef15fa0bc018f9ddc932c4ad8b6dd-lcms2-2.4.tar.gz
|
||||||
fa6a2f85bd28baab035b2c95e722713f-liblangtag-0.2.tar.bz2
|
fa6a2f85bd28baab035b2c95e722713f-liblangtag-0.2.tar.bz2
|
||||||
@AFMS_TARBALL@
|
@AFMS_TARBALL@
|
||||||
@APACHE_COMMONS_CODEC_TARBALL@
|
@APACHE_COMMONS_CODEC_TARBALL@
|
||||||
@@ -71,9 +73,7 @@ fa6a2f85bd28baab035b2c95e722713f-liblangtag-0.2.tar.bz2
|
|||||||
@JFREEREPORT_SAC_TARBALL@
|
@JFREEREPORT_SAC_TARBALL@
|
||||||
@JPEG_TARBALL@
|
@JPEG_TARBALL@
|
||||||
@LANGUAGETOOL_TARBALL@
|
@LANGUAGETOOL_TARBALL@
|
||||||
@LCMS2_TARBALL@
|
|
||||||
@LIBRSVG_TARBALL@
|
@LIBRSVG_TARBALL@
|
||||||
@LPSOLVE_TARBALL@
|
|
||||||
@MDDS_TARBALL@
|
@MDDS_TARBALL@
|
||||||
@MOZ_TARBALL@
|
@MOZ_TARBALL@
|
||||||
@MSPUB_TARBALL@
|
@MSPUB_TARBALL@
|
||||||
|
@@ -41,7 +41,7 @@ $(eval $(call gb_Library_use_libraries,solver,\
|
|||||||
$(gb_UWINAPI) \
|
$(gb_UWINAPI) \
|
||||||
))
|
))
|
||||||
|
|
||||||
$(eval $(call gb_Library_use_external,solver,lpsolve))
|
$(eval $(call gb_Library_use_external,solver,lpsolve55))
|
||||||
|
|
||||||
$(eval $(call gb_Library_add_exception_objects,solver,\
|
$(eval $(call gb_Library_add_exception_objects,solver,\
|
||||||
sccomp/source/solver/solver \
|
sccomp/source/solver/solver \
|
||||||
|
@@ -30,11 +30,7 @@
|
|||||||
#define WINAPI __stdcall
|
#define WINAPI __stdcall
|
||||||
#define LoadInverseLib FALSE
|
#define LoadInverseLib FALSE
|
||||||
#define LoadLanguageLib FALSE
|
#define LoadLanguageLib FALSE
|
||||||
#ifdef SYSTEM_LPSOLVE
|
|
||||||
#include <lpsolve/lp_lib.h>
|
#include <lpsolve/lp_lib.h>
|
||||||
#else
|
|
||||||
#include <lp_lib.h>
|
|
||||||
#endif
|
|
||||||
#undef LANGUAGE_NONE
|
#undef LANGUAGE_NONE
|
||||||
|
|
||||||
#include "solver.hxx"
|
#include "solver.hxx"
|
||||||
|
@@ -1,2 +1,2 @@
|
|||||||
tb tail_build : BERKELEYDB:berkeleydb BOOST:boost CAIRO:cairo CPPUNIT:cppunit EXPAT:expat GETTEXT:gettext GLIB:glib GDK_PIXBUF:gdk-pixbuf PANGO:pango LIBCROCO:libcroco LIBGSF:libgsf ICU:icu JPEG:jpeg LIBEXTTEXTCAT:libexttextcat LIBLANGTAG:liblangtag LIBXML2:libxml2 libxmlsec LIBXSLT:libxslt MOZ:moz NSS:nss OPENSSL:openssl PYTHON:python REDLAND:redland XPDF:xpdf ZLIB:zlib external solenv soltools NULL
|
tb tail_build : BERKELEYDB:berkeleydb BOOST:boost CAIRO:cairo CPPUNIT:cppunit EXPAT:expat GETTEXT:gettext GLIB:glib GDK_PIXBUF:gdk-pixbuf PANGO:pango LIBCROCO:libcroco LIBGSF:libgsf ICU:icu JPEG:jpeg LCMS2:lcms2 LIBEXTTEXTCAT:libexttextcat LIBLANGTAG:liblangtag LIBXML2:libxml2 libxmlsec LIBXSLT:libxslt LPSOLVE:lpsolve MOZ:moz NSS:nss OPENSSL:openssl PYTHON:python REDLAND:redland XPDF:xpdf ZLIB:zlib external solenv soltools NULL
|
||||||
tb tail_build\prj nmake - all tb_prj NULL
|
tb tail_build\prj nmake - all tb_prj NULL
|
||||||
|
Reference in New Issue
Block a user