forked from void-linux/void-packages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
template
51 lines (47 loc) · 1.68 KB
/
template
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
# Template file for 'occt'
pkgname=occt
version=7.6.3
revision=1
_gittag="V${version//./_}"
wrksrc=occt-${_gittag}
build_style=cmake
# XXX: re-enable -DUSE_TBB=ON if possible when updating
configure_args="-DUSE_FREEIMAGE=ON -DUSE_GL2PS=ON -DUSE_VTK=OFF
-DINSTALL_SAMPLES=ON"
makedepends="freetype-devel glu-devel freeimage-devel gl2ps-devel tcl-devel
tk-devel"
short_desc="OpenCASCADE Technology - library for CAD/CAM/CAE applications"
maintainer="Piraty <piraty1@inbox.ru>"
license="custom:LGPL-2.1-only-with-exceptions"
homepage="https://www.opencascade.com"
# distfile: use git instead of official tarball, which requires registration
# see https://www.opencascade.com/content/packaging-again-debian
distfiles="https://git.dev.opencascade.org/gitweb/?p=occt.git;a=snapshot;h=refs/tags/${_gittag};sf=tgz>occt-${_gittag}.tar.gz"
checksum=baae5b3a7a38825396fc45ef9d170db406339f5eeec62e21b21036afeda31200
conflicts="oce>=0"
if [ "$XBPS_TARGET_LIBC" = musl ]; then
makedepends+=" libexecinfo-devel"
configure_args+=" -DCMAKE_CXX_STANDARD_LIBRARIES=-lexecinfo"
fi
pre_build() {
cp build/OpenCASCADECompileDefinitionsAndFlags-release.cmake \
build/OpenCASCADECompileDefinitionsAndFlags-none.cmake
}
post_install() {
rm ${PKGDESTDIR}/usr/share/doc/opencascade/*_LGPL_*.txt
vlicense OCCT_LGPL_EXCEPTION.txt
rm ${DESTDIR}/usr/bin/custom*.sh
vmkdir /etc/profile.d
vinstall ${FILESDIR}/opencascade.sh 644 /etc/profile.d
chmod 755 ${DESTDIR}/usr/bin/draw.sh
}
occt-devel_package() {
short_desc+=" - development files"
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove "usr/lib/cmake"
vmove "usr/share/opencascade/samples"
}
}