opencascade:first rel

This commit is contained in:
bluedevil
2020-10-03 00:16:42 +02:00
parent fc7d77fabb
commit d75b014bb1
5 changed files with 167 additions and 0 deletions
+35
View File
@@ -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*")
@@ -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()
@@ -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}\")
+81
View File
@@ -0,0 +1,81 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>opencascade</Name>
<Homepage>https://www.opencascade.com/</Homepage>
<Packager>
<Name>Blue Devil</Name>
<Email>bluedevil@sctzine.com</Email>
</Packager>
<PartOf>science.misc</PartOf>
<License>LGPLv2.1</License>
<IsA>app:console</IsA>
<IsA>library</IsA>
<Summary>Open CASCADE Technology, 3D modeling and numerical simulation.</Summary>
<Description>Open CASCADE Technology (OCCT) is an object-oriented C++ class library designed for rapid production of sophisticated domain-specific CAD/CAM/CAE applications..</Description>
<Archive sha1sum="7afa594f25d353c22fc46d06dfdca0c60d8a6a93" type="targz">https://github.com/tpaviot/oce/releases/download/official-upstream-packages/opencascade-7.4.0p1.snapshot.tar.gz</Archive>
<!--
<Archive sha1sum="7afa594f25d353c22fc46d06dfdca0c60d8a6a93" type="targz">https://git.dev.opencascade.org/gitweb/?p=occt.git;a=snapshot;h=refs/tags/V7_4_0p1;sf=tgz</Archive>
-->
<BuildDependencies>
<Dependency>cmake</Dependency>
<Dependency>tcltk-devel</Dependency>
<Dependency>ffmpeg-devel</Dependency>
<Dependency>libXmu-devel</Dependency>
<Dependency>freetype-devel</Dependency>
<Dependency>qt5-base-devel</Dependency>
<Dependency>intel-tbb-devel</Dependency>
<Dependency>fontconfig-devel</Dependency>
</BuildDependencies>
<Patches>
<Patch level="1">fix-install-dir-references.patch</Patch>
<Patch level="1">cmake-fix-variable.patch</Patch>
</Patches>
</Source>
<Package>
<Name>opencascade</Name>
<Summary>Open CASCADE Technology, 3D modeling and numerical simulation.</Summary>
<RuntimeDependencies>
<Dependency>tcl</Dependency>
<Dependency>tcltk</Dependency>
<Dependency>ffmpeg</Dependency>
<Dependency>libXmu</Dependency>
<Dependency>freetype</Dependency>
<Dependency>libglvnd</Dependency>
<Dependency>qt5-base</Dependency>
<Dependency>intel-tbb</Dependency>
<Dependency>fontconfig</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="config">/etc/profile.d</Path>
<Path fileType="data">/usr/share/opencascade</Path>
</Files>
</Package>
<Package>
<Name>opencascade-devel</Name>
<Summary>Development files for opencascade</Summary>
<RuntimeDependencies>
<Dependency release="current">opencascade</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
<Path fileType="library">/usr/lib/pkgconfig</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2020-09-28</Date>
<Version>7.4.0</Version>
<Comment>First Pisi Release</Comment>
<Name>Blue Devil</Name>
<Email>bluedevil@sctzine.com</Email>
</Update>
</History>
</PISI>
+15
View File
@@ -0,0 +1,15 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>opencascade</Name>
<Summary xml:lang="tr">3 boyutlu modelleme ve nümerik simülasyon kitaplık ve araçları.</Summary>
<Description xml:lang="tr">opencascade, 3 boyutlu modelleme ve nümerik simülasyon kitaplık ve araçları sunar.</Description>
</Source>
<Package>
<Name>opencascade-devel</Name>
<Summary xml:lang="tr">opencascade için geliştirme dosyaları</Summary>
<Description xml:lang="tr">opencascade-devel, opencascade için geliştirme dosyalarını içerir.</Description>
</Package>
</PISI>