--- /dev/null
+default :
+{
+ name : "FMILibrary"
+ build_source : "cmake"
+ cmake_options : " -DFMILIB_GENERATE_DOXYGEN_DOC=OFF"
+ get_source : "archive"
+ environ :
+ {
+ env_script : $name + ".py"
+ }
+ depend : ['Python', 'lapack', 'hdf5', 'tbb', 'nlopt', 'libxml2', 'eigen', 'matplotlib']
+ build_depend : ["cmake", "swig"]
+ opt_depend : ['openmpi']
+ patches : []
+ source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name
+ build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name
+ install_dir : 'base'
+ properties :
+ {
+ single_install_dir : "no"
+ incremental : "yes"
+ }
+}
+
+default_win :
+{
+ compil_script : 'pip_install' + $VARS.scriptExtension
+ properties :
+ {
+ single_install_dir : "yes"
+ incremental : "yes"
+ pip : "yes"
+ }
+ depend : ['Python', 'lapack', 'hdf5', 'tbb', 'nlopt', 'libxml2', 'eigen', 'pthreads']
+ opt_depend : []
+}
+
+version_2_0_3 :
+{
+ patches : ['FMILibrary-2.0.3-installdir.patch']
+}
\ No newline at end of file
--- /dev/null
+default :
+{
+ name : "PyFMI"
+ build_source : "script"
+ compil_script : "pip_install" + $VARS.scriptExtension
+ get_source : "archive"
+ system_info :
+ {
+ rpm : []
+ rpm_dev : []
+ apt : []
+ apt_dev : []
+ }
+ environ :
+ {
+ env_script : $name + ".py"
+ }
+ depend : ["Python", "setuptools", "FMILibrary"]
+ source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name
+ build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name
+ install_dir : 'base'
+ properties:
+ {
+ incremental : "yes"
+ pip : "yes"
+ }
+}
--- /dev/null
+#!/usr/bin/env python
+import os.path
+
+def set_env(env, prereq_dir, version):
+ env.set('FMILIBRARY_ROOT_DIR', prereq_dir)
+ env.set('FMIL_HOME',prereq_dir)
+ env.prepend('PATH', os.path.join(prereq_dir,'bin'))
+ env.prepend('LD_LIBRARY_PATH',os.path.join(prereq_dir, 'lib'))
+
+def set_nativ_env(env):
+ pass
--- /dev/null
+#!/usr/bin/env python
+#-*- coding:utf-8 -*-
+
+import os.path
+import platform
+
+def set_env(env, prereq_dir, version):
+ env.set('PYFMI_ROOT_DIR', prereq_dir)
+
+def set_nativ_env(env):
+ pass
--- /dev/null
+diff -Naur FMILibrary-2.0.3_ref/CMakeLists.txt FMILibrary-2.0.3_new/CMakeLists.txt
+--- FMILibrary-2.0.3_ref/CMakeLists.txt 2017-09-13 08:13:54.000000000 +0200
++++ FMILibrary-2.0.3_new/CMakeLists.txt 2021-08-30 14:32:32.100995247 +0200
+@@ -26,7 +26,7 @@
+ set(FMILIBRARYBUILD ${FMILibrary_BINARY_DIR})
+
+ # User configuration options and parameters
+-SET(FMILIB_INSTALL_PREFIX ${FMILibrary_BINARY_DIR}/../install CACHE PATH "Prefix prepended to install directories")
++SET(FMILIB_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX} CACHE PATH "Prefix prepended to install directories")
+ set(FMILIB_THIRDPARTYLIBS ${FMILibrary_SOURCE_DIR}/ThirdParty CACHE PATH "Path to the ThirdParty library dir" )
+ set(FMILIB_FMI_STANDARD_HEADERS ${FMILIB_THIRDPARTYLIBS}/FMI/default CACHE PATH "Path to the FMI standard headers dir" )
+