[arch-commits] Commit in opencascade74/repos/community-x86_64 (4 files)
Alexander Rødseth
arodseth at archlinux.org
Thu Nov 19 14:10:24 UTC 2020
Date: Thursday, November 19, 2020 @ 14:10:24
Author: arodseth
Revision: 757581
archrelease: copy trunk to community-x86_64
Added:
opencascade74/repos/community-x86_64/PKGBUILD
(from rev 757580, opencascade74/trunk/PKGBUILD)
opencascade74/repos/community-x86_64/cmake-fix-variable.patch
(from rev 757580, opencascade74/trunk/cmake-fix-variable.patch)
opencascade74/repos/community-x86_64/fix-install-dir-references.patch
(from rev 757580, opencascade74/trunk/fix-install-dir-references.patch)
opencascade74/repos/community-x86_64/opencascade.sh
(from rev 757580, opencascade74/trunk/opencascade.sh)
----------------------------------+
PKGBUILD | 55 +++++++++++++++++++++++++++++++++++++
cmake-fix-variable.patch | 12 ++++++++
fix-install-dir-references.patch | 24 ++++++++++++++++
opencascade.sh | 24 ++++++++++++++++
4 files changed, 115 insertions(+)
Copied: opencascade74/repos/community-x86_64/PKGBUILD (from rev 757580, opencascade74/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-11-19 14:10:24 UTC (rev 757581)
@@ -0,0 +1,55 @@
+# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
+# Contributor: Kyle Keen <keenerd at gmail.com>
+# Contributor: Gabriel Souza Franco <Z2FicmllbGZyYW5jb3NvdXphQGdtYWlsLmNvbQ==>
+# Contributor: Florian Pritz <bluewind at xinu.at>
+# Contributor: Giuseppe Borzi <gborzi at ieee.org>
+# Contributor: Brice Méalier <mealier_brice at yahoo.fr>
+# Contributor: Michele Mocciola <mickele>
+
+pkgname=opencascade74
+pkgver=7.4.0
+pkgrel=1
+pkgdesc='Open CASCADE Technology, 3D modeling & numerical simulation'
+arch=(x86_64)
+url='https://www.opencascade.org'
+license=(custom)
+depends=(ffmpeg freeimage gl2ps intel-tbb tk vtk)
+makedepends=(cmake git ninja qt5-base)
+conflicts=(opencascade)
+source=("$pkgname.tgz::https://git.dev.opencascade.org/gitweb/?p=occt.git;a=snapshot;h=fd47711d682be943f0e0a13d1fb54911b0499c31;sf=tgz"
+ opencascade.sh
+ fix-install-dir-references.patch
+ cmake-fix-variable.patch)
+sha256sums=('af73c89ade0467ca7351dc445e4bd20832387da1e205f6955bc9356ab7d9f22b'
+ '2064536a85d46fee368a8f1a712b2c6c77ca79c5bffcc68cba79d70d36efa2f4'
+ 'afb584aa453993ae8d9e2b983594558531ede735a5892754b812be30650c9fb5'
+ 'c7427082400b2d1ac58c59549d4dd1ee5b27d06847b7907842e9e2f2b68980fa')
+
+prepare() {
+ cd occt-fd47711
+ patch -Np1 -i ../fix-install-dir-references.patch
+ patch -Np1 -i ../cmake-fix-variable.patch
+}
+
+build() {
+ mkdir -p build
+ cd build
+ cmake ../occt-fd47711 \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DUSE_FFMPEG=ON \
+ -DUSE_FREEIMAGE=ON \
+ -DUSE_GL2PS=ON \
+ -DUSE_TBB=ON \
+ -DUSE_VTK=ON \
+ -GNinja
+ ninja
+}
+
+package() {
+ DESTDIR="$pkgdir" ninja -C build install
+ install -Dm755 opencascade.sh "$pkgdir/etc/profile.d/opencascade.sh"
+ install -d "$pkgdir/usr/share/licenses/$pkgname/"
+ mv "$pkgdir/usr/share/doc/opencascade/"* "$pkgdir/usr/share/licenses/$pkgname"
+ rm -r "$pkgdir/usr/share/doc" "$pkgdir/usr/bin/"*.sh
+}
Copied: opencascade74/repos/community-x86_64/cmake-fix-variable.patch (from rev 757580, opencascade74/trunk/cmake-fix-variable.patch)
===================================================================
--- cmake-fix-variable.patch (rev 0)
+++ cmake-fix-variable.patch 2020-11-19 14:10:24 UTC (rev 757581)
@@ -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()
+
Copied: opencascade74/repos/community-x86_64/fix-install-dir-references.patch (from rev 757580, opencascade74/trunk/fix-install-dir-references.patch)
===================================================================
--- fix-install-dir-references.patch (rev 0)
+++ fix-install-dir-references.patch 2020-11-19 14:10:24 UTC (rev 757581)
@@ -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}\")
Copied: opencascade74/repos/community-x86_64/opencascade.sh (from rev 757580, opencascade74/trunk/opencascade.sh)
===================================================================
--- opencascade.sh (rev 0)
+++ opencascade.sh 2020-11-19 14:10:24 UTC (rev 757581)
@@ -0,0 +1,24 @@
+export CASROOT=/usr
+
+export CSF_LANGUAGE=us
+export MMGT_CLEAR=1
+export CSF_EXCEPTION_PROMPT=1
+
+export CSF_OCCTResourcePath=$CASROOT/share/opencascade/resources
+export CSF_SHMessage=$CSF_OCCTResourcePath/SHMessage
+export CSF_MDTVTexturesDirectory=$CSF_OCCTResourcePath/Textures
+export CSF_ShadersDirectory=$CSF_OCCTResourcePath/Shaders
+export CSF_XSMessage=$CSF_OCCTResourcePath/XSMessage
+export CSF_TObjMessage=$CSF_OCCTResourcePath/TObj
+export CSF_StandardDefaults=$CSF_OCCTResourcePath/StdResource
+export CSF_PluginDefaults=$CSF_OCCTResourcePath/StdResource
+export CSF_XCAFDefaults=$CSF_OCCTResourcePath/StdResource
+export CSF_TObjDefaults=$CSF_OCCTResourcePath/StdResource
+export CSF_StandardLiteDefaults=$CSF_OCCTResourcePath/StdResource
+export CSF_IGESDefaults=$CSF_OCCTResourcePath/XSTEPResource
+export CSF_STEPDefaults=$CSF_OCCTResourcePath/XSTEPResource
+export CSF_XmlOcafResource=$CSF_OCCTResourcePath/XmlOcafResource
+export CSF_MIGRATION_TYPES=$CSF_OCCTResourcePath/StdResource/MigrationSheet.txt
+export CSF_DrawPluginDefaults=$CSF_OCCTResourcePath/DrawResources
+export DRAWHOME=$CSF_OCCTResourcePath/DrawResources
+export DRAWDEFAULT=$CSF_OCCTResourcePath/DrawResources/DrawDefault
More information about the arch-commits
mailing list