diff --git a/science/misc/opencascade/actions.py b/science/misc/opencascade/actions.py new file mode 100644 index 0000000000..6b412b1b0b --- /dev/null +++ b/science/misc/opencascade/actions.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import get +from pisi.actionsapi import pisitools +from pisi.actionsapi import shelltools +from pisi.actionsapi import cmaketools + +def setup(): + options_cfg = ''.join([ + '-DUSE_TBB=ON ', + '-DUSE_VTK=OFF ', + '-DUSE_GL2PS=ON ', + '-DUSE_FFMPEG=ON ', + '-DUSE_FREEIMAGE=OFF ', + 'BUILD_TYPE=Release ', + '-DCMAKE_INSTALL_PREFIX=/usr', + ]) + shelltools.makedirs("build") + shelltools.cd("build") + cmaketools.configure("%s" % options_cfg, sourceDir="..") + +def build(): + shelltools.cd("build") + cmaketools.make() + +def install(): + shelltools.cd("build") + cmaketools.rawInstall("DESTDIR=%s" % get.installDIR()) + + shelltools.cd("..") + + pisitools.dodoc("LICENSE*", "OCCT_LGPL*") diff --git a/science/misc/opencascade/files/cmake-fix-variable.patch b/science/misc/opencascade/files/cmake-fix-variable.patch new file mode 100644 index 0000000000..a59741f3d2 --- /dev/null +++ b/science/misc/opencascade/files/cmake-fix-variable.patch @@ -0,0 +1,12 @@ +diff -Naur occt-V7_3_0/adm/templates/OpenCASCADEConfig.cmake.in occt-V7_3_0_new/adm/templates/OpenCASCADEConfig.cmake.in +--- occt-V7_3_0/adm/templates/OpenCASCADEConfig.cmake.in 2018-05-29 12:14:02.000000000 +0200 ++++ occt-V7_3_0.new/adm/templates/OpenCASCADEConfig.cmake.in 2018-05-29 12:14:02.000000000 +0200 +@@ -26,7 +26,7 @@ + if (OpenCASCADE_INSTALL_PREFIX MATCHES "/cmake$") + get_filename_component (OpenCASCADE_INSTALL_PREFIX "${OpenCASCADE_INSTALL_PREFIX}" PATH) + endif() +-if (OpenCASCADE_INSTALL_PREFIX MATCHES "/lib$") ++if (OpenCASCADE_INSTALL_PREFIX MATCHES "/lib(64)?$") + get_filename_component (OpenCASCADE_INSTALL_PREFIX "${OpenCASCADE_INSTALL_PREFIX}" PATH) + endif() + diff --git a/science/misc/opencascade/files/fix-install-dir-references.patch b/science/misc/opencascade/files/fix-install-dir-references.patch new file mode 100644 index 0000000000..0d3c8c8330 --- /dev/null +++ b/science/misc/opencascade/files/fix-install-dir-references.patch @@ -0,0 +1,24 @@ +diff -aur occt-V7_1_0/CMakeLists.txt occt-V7_1_0.new/CMakeLists.txt +--- occt-V7_1_0/CMakeLists.txt 2016-11-25 11:50:18.000000000 +0100 ++++ occt-V7_1_0.new/CMakeLists.txt 2017-03-18 08:44:10.406668714 +0100 +@@ -906,7 +906,7 @@ + endforeach() + # install OpenCASCADE config file with compile definitions and C/C++ flags ONLY for current configuration + install (CODE "string (TOLOWER \"\${CMAKE_INSTALL_CONFIG_NAME}\" CMAKE_INSTALL_CONFIG_NAME_LOWER)") +-install (CODE "configure_file(\"${CMAKE_BINARY_DIR}/OpenCASCADECompileDefinitionsAndFlags-\${CMAKE_INSTALL_CONFIG_NAME_LOWER}.cmake\" \"${INSTALL_DIR}/${INSTALL_DIR_CMAKE}/OpenCASCADECompileDefinitionsAndFlags-\${CMAKE_INSTALL_CONFIG_NAME_LOWER}.cmake\" COPYONLY)") ++install (CODE "configure_file(\"${CMAKE_BINARY_DIR}/OpenCASCADECompileDefinitionsAndFlags-\${CMAKE_INSTALL_CONFIG_NAME_LOWER}.cmake\" \"\$ENV{DESTDIR}${INSTALL_DIR}/${INSTALL_DIR_CMAKE}/OpenCASCADECompileDefinitionsAndFlags-\${CMAKE_INSTALL_CONFIG_NAME_LOWER}.cmake\" COPYONLY)") + + foreach (OCCT_MODULE ${OCCT_MODULES}) + if (BUILD_MODULE_${OCCT_MODULE}) +diff -aur occt-V7_1_0/adm/cmake/occt_macros.cmake occt-V7_1_0.new/adm/cmake/occt_macros.cmake +--- occt-V7_1_0/adm/cmake/occt_macros.cmake 2016-11-25 11:50:18.000000000 +0100 ++++ occt-V7_1_0.new/adm/cmake/occt_macros.cmake 2017-03-18 08:44:10.406668714 +0100 +@@ -558,7 +558,7 @@ + "cmake_policy(PUSH) + cmake_policy(SET CMP0007 NEW) + string (TOLOWER \"\${CMAKE_INSTALL_CONFIG_NAME}\" CMAKE_INSTALL_CONFIG_NAME_LOWERCASE) +- file (GLOB ALL_OCCT_TARGET_FILES \"${INSTALL_DIR}/${INSTALL_DIR_CMAKE}/OpenCASCADE*Targets-\${CMAKE_INSTALL_CONFIG_NAME_LOWERCASE}.cmake\") ++ file (GLOB ALL_OCCT_TARGET_FILES \"\$ENV{DESTDIR}${INSTALL_DIR}/${INSTALL_DIR_CMAKE}/OpenCASCADE*Targets-\${CMAKE_INSTALL_CONFIG_NAME_LOWERCASE}.cmake\") + foreach(TARGET_FILENAME \${ALL_OCCT_TARGET_FILES}) + file (STRINGS \"\${TARGET_FILENAME}\" TARGET_FILE_CONTENT) + file (REMOVE \"\${TARGET_FILENAME}\") diff --git a/science/misc/opencascade/pspec.xml b/science/misc/opencascade/pspec.xml new file mode 100644 index 0000000000..3b8f54d152 --- /dev/null +++ b/science/misc/opencascade/pspec.xml @@ -0,0 +1,81 @@ + + + + + opencascade + https://www.opencascade.com/ + + Blue Devil + bluedevil@sctzine.com + + science.misc + LGPLv2.1 + app:console + library + Open CASCADE Technology, 3D modeling and numerical simulation. + Open CASCADE Technology (OCCT) is an object-oriented C++ class library designed for rapid production of sophisticated domain-specific CAD/CAM/CAE applications.. + https://github.com/tpaviot/oce/releases/download/official-upstream-packages/opencascade-7.4.0p1.snapshot.tar.gz + + + cmake + tcltk-devel + ffmpeg-devel + libXmu-devel + freetype-devel + qt5-base-devel + intel-tbb-devel + fontconfig-devel + + + fix-install-dir-references.patch + cmake-fix-variable.patch + + + + + opencascade + Open CASCADE Technology, 3D modeling and numerical simulation. + + tcl + tcltk + ffmpeg + libXmu + freetype + libglvnd + qt5-base + intel-tbb + fontconfig + + + /usr/lib + /usr/share/doc + /usr/bin + /etc/profile.d + /usr/share/opencascade + + + + + opencascade-devel + Development files for opencascade + + opencascade + + + /usr/include + /usr/lib/pkgconfig + + + + + + 2020-09-28 + 7.4.0 + First Pisi Release + Blue Devil + bluedevil@sctzine.com + + + \ No newline at end of file diff --git a/science/misc/opencascade/translations.xml b/science/misc/opencascade/translations.xml new file mode 100644 index 0000000000..08c340430d --- /dev/null +++ b/science/misc/opencascade/translations.xml @@ -0,0 +1,15 @@ + + + + opencascade + 3 boyutlu modelleme ve nümerik simülasyon kitaplık ve araçları. + opencascade, 3 boyutlu modelleme ve nümerik simülasyon kitaplık ve araçları sunar. + + + + + opencascade-devel + opencascade için geliştirme dosyaları + opencascade-devel, opencascade için geliştirme dosyalarını içerir. + + \ No newline at end of file