32 lines
1 KiB
Bash
32 lines
1 KiB
Bash
# Template file for 'oce'
|
|
pkgname=oce
|
|
_majorver=0.18
|
|
version=${_majorver}.3
|
|
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"
|
|
checksum=c553d6a7bf52f790abc3b6bb7a1e91a65947e92a426bb1a88a11960c31f0966c
|
|
|
|
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}
|
|
}
|
|
}
|