aboutsummaryrefslogtreecommitdiffstats
path: root/testing/opencascade/APKBUILD
blob: f2e3f1b94afe8808128976699694d068471317b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
# Contributor: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=opencascade
pkgver=7.3.0p3
pkgrel=0
pkgdesc="An SDK for development of applications dealing with 3D CAD data"
url="https://dev.opencascade.org/"
arch="x86_64" # Dependency vtk is x86_64 only
license="LGPL-2.1-only"
makedepends="
	cmake
	doxygen
	ffmpeg-dev
	freeimage-dev
	freetype-dev
	libtbb
	libtbb-dev
	libxi-dev
	libxmu-dev
	mesa-dev
	tk
	tk-dev
	vtk-dev
	"
subpackages="$pkgname-doc $pkgname-dev"
source="
	opencascade-$pkgver.tar.gz::https://git.dev.opencascade.org/gitweb/?p=occt.git;a=snapshot;h=refs/tags/V${pkgver//./_};sf=tgz
	no_mallinfo.patch
	no_feenableexcept.patch
	fix_ffmpeg.patch
	vtk7.patch
	cmake_fix_install_dir.patch
	"
builddir="$srcdir/occt-V${pkgver//./_}"
options="!check" # No tests provided :-/

build() {
	mkdir -p build
	cd build
	cmake .. \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DUSE_GL2PS=OFF \
		-DUSE_FREEIMAGE=ON \
		-DUSE_FFMPEG=ON \
		-DUSE_VTK=ON \
		-DUSE_TBB=ON
	make
}

package() {
	cd build
	make DESTDIR="$pkgdir" install
}

sha512sums="f821d0f8b813c069fd0d9cf7f814a236fbcd95c674760de3396155c0050f593cc5e9ceda6828495951f79faa482342d36561f525253f11a5488df08f2c56825b  opencascade-7.3.0p3.tar.gz
01ee778de7ef95a479c87445d1d062e5d858879e211d2c312f801133e35f768cc70d00e3f3fae00f39c60473641c78517d16d63425dd2dd7e19f3079d2cf1a51  no_mallinfo.patch
15936b8601f06dabd2b84b892220acba67201a91091f38d9e44a4505bb934de2b3c657d3469434b7d3297fd1fadaa96aa673cde86ddc7a5f65e69baf80fb0220  no_feenableexcept.patch
533436132b058305c86f1b77b388f37fe93f9ec17c1aa74813c29e6e1c80a287309659d806c6d010801f9659dfeddacae488949cf84cc76966c350ade9c75a04  fix_ffmpeg.patch
61f20a5c5628d2a40de68e9a4990cfef3ff70878968f4b1b59363287ece43bfe875d300b139492a8b7052970587369294cf6290135b6aea6493173e4882b338c  vtk7.patch
432cd1d1e08d7d27a8d20808cdb67bc976c189d4fa9001576d6cdf3b0891dcf3c91890916ee281b34007ca02a7eed913d33e85b7613e5b77f25892e950217e6a  cmake_fix_install_dir.patch"