From: Nabil Ghodbane Date: Tue, 7 Jun 2022 07:33:13 +0000 (+0200) Subject: prepare ALAMOS master native Fedora 34 X-Git-Tag: V9_11_0~362 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3df177859bb4d46ca6de9ed7bdec26457513b515;p=tools%2Fsat_salome.git prepare ALAMOS master native Fedora 34 --- diff --git a/products/compil_scripts/freeimage-3.18.0.sh b/products/compil_scripts/freeimage-3.18.0.sh new file mode 100755 index 0000000..5d7a424 --- /dev/null +++ b/products/compil_scripts/freeimage-3.18.0.sh @@ -0,0 +1,79 @@ +#!/bin/bash + +echo "###############################################" +echo "freeimage" $VERSION +echo "###############################################" + +rm -rf $BUILD_DIR +mkdir $BUILD_DIR +cd $BUILD_DIR +cp -r $SOURCE_DIR/* . + +echo -n ".. Patching freeimage sources: fix build procedure..." && \ + sed -i "s%DESTDIR ?= /%DESTDIR ?= /usr%g;s%INCDIR ?= \$(DESTDIR)/usr/include%INCDIR ?= \$(DESTDIR)/include%g;s%INSTALLDIR ?= \$(DESTDIR)/usr/lib%INSTALLDIR ?= \$(DESTDIR)/lib%g;s%-o root -g root %%g" Makefile.gnu >& /dev/null && \ + sed -i "s%DESTDIR ?= /%DESTDIR ?= /usr%g;s%INCDIR ?= \$(DESTDIR)/usr/include%INCDIR ?= \$(DESTDIR)/include%g;s%INSTALLDIR ?= \$(DESTDIR)/usr/lib%INSTALLDIR ?= \$(DESTDIR)/lib%g;s%-o root -g root %%g" Makefile.fip >& /dev/null && \ + sed -i "s/CXXFLAGS += -D__ANSI__/CXXFLAGS += -D__ANSI__ -std=c++11/g" Makefile.gnu >& /dev/null + if [ "$?" != "0" ] ; then + echo + echo "Error: problem patching freeimage sources" + echo + return 1 + fi + echo "OK" + + echo -n ".. Patching freeimage sources: gcc 4.7 compatibility..." && \ + sed -i 's%\(#include "OpenEXRConfig.h"\)%\1\n#include %g' Source/OpenEXR/IlmImf/ImfAutoArray.h + if [ "$?" != "0" ] ; then + echo + echo "Error: problem patching freeimage sources" + echo + fi + echo "OK" + +echo +echo "*** FreeImage: make" $MAKE_OPTIONS +make -f Makefile.gnu +if [ $? -ne 0 ] +then + echo "ERROR on make" + exit 2 +fi + +echo +echo "*** FreeImage: make install" +make -f Makefile.gnu DESTDIR=$PRODUCT_INSTALL install +if [ $? -ne 0 ] +then + echo "ERROR on make install" + exit 3 +fi + +echo +echo "*** FreeImage: make clean" +make -f Makefile.gnu clean + +echo +echo "*** FreeImagePlus: make" $MAKE_OPTIONS +make -f Makefile.fip +if [ $? -ne 0 ] +then + echo "ERROR on make" + exit 2 +fi + +echo +echo "*** FreeImagePlus: make install" +make -f Makefile.fip DESTDIR=$PRODUCT_INSTALL install +if [ $? -ne 0 ] +then + echo "ERROR on make install" + exit 3 +fi + +echo +echo "*** FreeImagePlus: make clean" +make -f Makefile.fip clean + +echo +echo "########## END" + diff --git a/products/freeimage.pyconf b/products/freeimage.pyconf index d5e5671..f5c512b 100644 --- a/products/freeimage.pyconf +++ b/products/freeimage.pyconf @@ -41,6 +41,7 @@ version_3_16_0 : # NOTE: do not delete this section, it was added in order to be able to overload it for Windows version_3_18_0: { + compil_script : "freeimage-3.18.0.sh" patches : [] } diff --git a/products/matplotlib.pyconf b/products/matplotlib.pyconf index 779131a..442e9fa 100755 --- a/products/matplotlib.pyconf +++ b/products/matplotlib.pyconf @@ -16,7 +16,8 @@ default : env_script : $name + ".py" } # OP distribute is not useful anymore - depend : ['Python', 'setuptools', 'PyQt', 'numpy', 'freetype', 'six', 'pytz', 'pyparsing', 'dateutil', 'cycler', 'kiwisolver'] + depend : ['Python', 'setuptools', 'PyQt', 'numpy', 'freetype', 'six', 'pytz', 'pyparsing', 'dateutil', 'cycler'] + opt_depend : ['kiwisolver'] source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name install_dir : 'base' @@ -31,7 +32,8 @@ default_win : { compil_script : 'pip_install_whl' + $VARS.scriptExtension archive_info : {archive_name : "matplotlib-" + $APPLICATION.products.matplotlib + "_windows.tar.gz"} - depend : ['Python', 'PyQt', 'numpy', 'freetype', 'six', 'pytz', 'pyparsing', 'dateutil', 'setuptools', 'cycler', 'kiwisolver'] + depend : ['Python', 'PyQt', 'numpy', 'freetype', 'six', 'pytz', 'pyparsing', 'dateutil', 'setuptools', 'cycler'] + opt_depend : ['kiwisolver'] properties: { incremental : "yes"