2022-01-10 13:22:40 +00:00
|
|
|
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
|
2023-11-17 00:47:32 +00:00
|
|
|
# Contributor: Kyle Keen <keenerd@gmail.com>
|
2021-12-27 00:15:08 +00:00
|
|
|
# Contributor: Gabriel Souza Franco <Z2FicmllbGZyYW5jb3NvdXphQGdtYWlsLmNvbQ==>
|
|
|
|
# Contributor: Florian Pritz <bluewind@xinu.at>
|
|
|
|
# Contributor: Giuseppe Borzi <gborzi@ieee.org>
|
|
|
|
# Contributor: Brice Méalier <mealier_brice@yahoo.fr>
|
|
|
|
# Contributor: Michele Mocciola <mickele>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - removed makedepends on adios2
|
|
|
|
|
|
|
|
pkgname=opencascade
|
2023-11-17 00:47:32 +00:00
|
|
|
pkgver=7.7.2
|
2024-02-25 23:45:53 +00:00
|
|
|
pkgrel=5
|
2022-01-12 00:22:50 +00:00
|
|
|
epoch=1
|
2022-11-06 17:29:52 +00:00
|
|
|
pkgdesc='SDK intended for development of applications dealing with 3D CAD data'
|
2021-12-27 00:15:08 +00:00
|
|
|
arch=('x86_64')
|
2022-11-06 17:29:52 +00:00
|
|
|
url='https://www.opencascade.org'
|
2022-01-10 13:22:40 +00:00
|
|
|
license=('LGPL2.1' 'custom:LGPL-exception')
|
|
|
|
depends=(
|
|
|
|
'freeimage'
|
|
|
|
'gl2ps'
|
|
|
|
'tk'
|
|
|
|
'vtk'
|
|
|
|
)
|
|
|
|
makedepends=(
|
2022-01-12 00:22:50 +00:00
|
|
|
'git'
|
2022-01-10 13:22:40 +00:00
|
|
|
'boost'
|
|
|
|
'cmake'
|
|
|
|
'eigen'
|
|
|
|
'gdal'
|
|
|
|
'glew'
|
|
|
|
'libharu'
|
|
|
|
'liblas'
|
|
|
|
'openvr'
|
|
|
|
'pdal'
|
|
|
|
'proj'
|
|
|
|
'pugixml'
|
|
|
|
'python'
|
|
|
|
'python-mpi4py'
|
|
|
|
'qt5-base'
|
|
|
|
'rapidjson'
|
|
|
|
'unixodbc'
|
|
|
|
'utf8cpp'
|
|
|
|
)
|
2023-11-17 00:47:32 +00:00
|
|
|
_commit='cec1ecd0c9f3b3d2572c47035d11949e8dfa85e2'
|
2022-01-10 13:22:40 +00:00
|
|
|
source=(
|
2022-01-12 00:22:50 +00:00
|
|
|
"$pkgname::git+https://git.dev.opencascade.org/repos/occt.git#commit=$_commit"
|
2022-01-10 13:22:40 +00:00
|
|
|
'opencascade.sh'
|
2023-11-17 00:47:32 +00:00
|
|
|
'fix-cmake-variable.patch'
|
2022-01-10 13:22:40 +00:00
|
|
|
'skip-license-installation.patch'
|
|
|
|
)
|
2022-01-12 00:22:50 +00:00
|
|
|
sha512sums=('SKIP'
|
2022-01-10 13:22:40 +00:00
|
|
|
'a7516028e55fd303dc1cfb61b75c9cb209d431d854b4d1c58f9c19df8ecee9d79da5c8745676c68a2de0980652de4c4d1c5a927c25db1e5146fb1f1f43c5906b'
|
|
|
|
'ad6ce2f52462989bd990b52fd5428f3e5cbd4fb15c38d92c0e0954e6afc3368fca961b92efead8e8957213352fb87a469e1bfaccaf14b484351acc0a0bc10485'
|
2023-11-17 00:47:32 +00:00
|
|
|
'86e6502c92cbb8c2736cdeaf25b2ea39b87a650e490e042d6d86c2d67d310ef4ee2050108228ff776061603840ec0aa74e534270fb5c53585475de715212c5fa')
|
2022-01-12 00:22:50 +00:00
|
|
|
b2sums=('SKIP'
|
2022-01-10 13:22:40 +00:00
|
|
|
'da9db038ed2348d2d7736505eda2f40fe52c836bcedb74d9f369cc53f7d40a330bd87d6aedd773863745cd46e4dbe5876acda2d2d60177f00d5db9cae4f1f102'
|
|
|
|
'bb98b2b53a9a97ae15a353a9dbcc6d92a97ddaa56af0610cefe9de3a4b84c4a6021d9396f7e270c1d379278df069dbf90f9771db64947e52d38ad36bc3c6f913'
|
2023-11-17 00:47:32 +00:00
|
|
|
'7562ce632b9a0db7faba4f373de5f108b27395a4dd62721711a7cd1f519c44348a1df5c6834e7691072abbdcef66365fc9245dee8775c51d122e0455874f8236')
|
2022-01-12 00:22:50 +00:00
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd "$pkgname"
|
|
|
|
git describe --tags | sed -e "s/^V//" -e "s/_/./g" -e "s/p/./"
|
|
|
|
}
|
2021-12-27 00:15:08 +00:00
|
|
|
|
|
|
|
prepare() {
|
2022-01-12 00:22:50 +00:00
|
|
|
cd "$pkgname"
|
2022-01-10 13:22:40 +00:00
|
|
|
|
2023-11-17 00:47:32 +00:00
|
|
|
patch -p1 -i ../fix-cmake-variable.patch
|
2022-01-10 13:22:40 +00:00
|
|
|
patch -p1 -i ../skip-license-installation.patch
|
2021-12-27 00:15:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2023-11-18 14:22:41 +00:00
|
|
|
# TODO: Maybe remove VTK support as VTK now also depends on opencascade which
|
|
|
|
# gives us a circular dependency.
|
2022-01-10 13:22:40 +00:00
|
|
|
cmake \
|
|
|
|
-B build \
|
2022-01-12 00:22:50 +00:00
|
|
|
-S "$pkgname" \
|
2022-11-06 17:29:52 +00:00
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D BUILD_RELEASE_DISABLE_EXCEPTIONS=OFF \
|
|
|
|
-D USE_FREEIMAGE=ON \
|
2023-11-17 00:47:32 +00:00
|
|
|
-D USE_FFMPEG=OFF \
|
2022-11-06 17:29:52 +00:00
|
|
|
-D USE_VTK=ON \
|
|
|
|
-D USE_RAPIDJSON=ON \
|
2023-11-17 00:47:32 +00:00
|
|
|
-D USE_TBB=OFF \
|
2022-11-06 17:29:52 +00:00
|
|
|
-D 3RDPARTY_VTK_INCLUDE_DIR=/usr/include/vtk
|
|
|
|
|
2022-01-10 13:22:40 +00:00
|
|
|
cmake --build build
|
2021-12-27 00:15:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2022-01-10 13:22:40 +00:00
|
|
|
DESTDIR="$pkgdir" cmake --install build
|
2021-12-27 00:15:08 +00:00
|
|
|
|
2022-01-10 13:22:40 +00:00
|
|
|
# environment variables (adapted from adm/templates/env.sh)
|
2022-01-12 00:22:50 +00:00
|
|
|
install -vDm644 -t "$pkgdir/etc/profile.d" opencascade.sh
|
2021-12-27 00:15:08 +00:00
|
|
|
|
2022-01-10 13:22:40 +00:00
|
|
|
# remove unnecessary shell scripts
|
|
|
|
rm -v "$pkgdir/usr/bin/"*.sh
|
2021-12-27 00:15:08 +00:00
|
|
|
|
2022-01-12 00:22:50 +00:00
|
|
|
cd "$pkgname"
|
2021-12-27 00:15:08 +00:00
|
|
|
|
2022-01-10 13:22:40 +00:00
|
|
|
# licenses
|
|
|
|
install -vDm755 -t "$pkgdir/usr/share/licenses/$pkgname" \
|
|
|
|
LICENSE_LGPL_21.txt OCCT_LGPL_EXCEPTION.txt
|
2023-11-17 00:47:32 +00:00
|
|
|
|
|
|
|
# what the *hell* is this crap?
|
|
|
|
cd "$pkgdir/usr/lib/cmake/opencascade"
|
|
|
|
sed -e 's/\\\${OCCT_INSTALL_BIN_LETTER}//' -i *.cmake
|
2021-12-27 00:15:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# vim:set ts=2 sw=2 et:
|