2016-05-14 18:29:05 +00:00
|
|
|
# Template file for 'oce'
|
|
|
|
pkgname=oce
|
2017-01-15 12:50:13 +00:00
|
|
|
_majorver=0.18
|
|
|
|
version=${_majorver}
|
2016-05-14 18:29:05 +00:00
|
|
|
revision=1
|
|
|
|
wrksrc="${pkgname}-OCE-${version}"
|
|
|
|
build_style=cmake
|
|
|
|
configure_args="-DOCE_INSTALL_PREFIX=/usr -DOCE_WITH_FREEIMAGE=ON
|
|
|
|
-DOCE_WITH_GL2PS=ON -DOCE_MULTITHREAD_LIBRARY=TBB -DOCE_DRAW=ON"
|
|
|
|
makedepends="freetype-devel glu-devel freeimage-devel gl2ps-devel tbb-devel tcl-devel tk-devel"
|
|
|
|
short_desc="OpenCASCADE Community Edition"
|
|
|
|
maintainer="yopito <pierre.bourgin@free.fr>"
|
|
|
|
license="LGPL-2.1, OCCT"
|
|
|
|
homepage="https://github.com/tpaviot/oce"
|
|
|
|
distfiles="https://github.com/tpaviot/oce/archive/OCE-${version}.tar.gz"
|
2017-01-15 12:50:13 +00:00
|
|
|
checksum=226e45e77c16a4a6e127c71fefcd171410703960ae75c7ecc7eb68895446a993
|
2016-05-14 18:29:05 +00:00
|
|
|
|
|
|
|
case "${XBPS_TARGET_MACHINE}" in
|
|
|
|
arm*)
|
|
|
|
# error on linking with libTKMath.so or libTKMesh.so:
|
|
|
|
# undefined reference to tbb::internal::allocate_root_proxy::allocate(unsigned int)
|
|
|
|
broken=https://travis-ci.org/voidlinux/void-packages/jobs/136426588
|
|
|
|
;;
|
2017-01-15 12:50:13 +00:00
|
|
|
aarch*)
|
|
|
|
# Similar errors
|
|
|
|
broken=https://s3.amazonaws.com/archive.travis-ci.org/jobs/192456894/log.txt
|
|
|
|
;;
|
2016-05-14 18:29:05 +00:00
|
|
|
esac
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vlicense OCCT_LGPL_EXCEPTION.txt
|
|
|
|
}
|
|
|
|
|
|
|
|
oce-devel_package() {
|
|
|
|
short_desc+=" - development files"
|
|
|
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.so"
|
|
|
|
vmove "usr/lib/oce-${_majorver}/*.cmake"
|
|
|
|
mkdir -p ${PKGDESTDIR}/usr/share/${pkgname}
|
|
|
|
vcopy samples usr/share/${pkgname}
|
|
|
|
}
|
|
|
|
}
|