40 lines
1.5 KiB
Bash
40 lines
1.5 KiB
Bash
# Template file for 'solvespace'
|
|
pkgname=solvespace
|
|
version=3.1
|
|
revision=1
|
|
_libdxfrw_hash=0b7b7b709d9299565db603f878214656ef5e9ddf
|
|
_mimalloc_hash=4e643b6d3178e0ea2a093b7e14fe621631a91e4b
|
|
create_wrksrc=yes
|
|
build_style=cmake
|
|
hostmakedepends="pkg-config git"
|
|
makedepends="glew-devel gtkmm-devel json-c-devel gettext-devel libspnav-devel eigen"
|
|
short_desc="Parametric 2d/3d CAD"
|
|
maintainer="Robert Lowry <bobertlo@gmail.com>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://solvespace.com/index.pl"
|
|
changelog="https://github.com/solvespace/solvespace/raw/master/CHANGELOG.md"
|
|
distfiles="https://github.com/solvespace/solvespace/archive/refs/tags/v${version}.tar.gz
|
|
https://github.com/solvespace/libdxfrw/archive/${_libdxfrw_hash}.tar.gz
|
|
https://github.com/microsoft/mimalloc/archive/${_mimalloc_hash}.tar.gz"
|
|
checksum="ab4b3a5fecb1800f8eab82a92138a70227e869d2066ee881441b1e13035786dc
|
|
3f7d37ee63f85219da3c63a266023008b8df993965a355739a3fdff3bfb2f932
|
|
448ac898c72468c4f632a0818cc4b8ec83a4669402ee059d74df35f94f3e2f34"
|
|
nocross="https://travis-ci.org/bobertlo/void-packages/jobs/487251265"
|
|
|
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
|
makedepends+=" libatomic-devel"
|
|
configure_args=" -DCMAKE_CXX_STANDARD_LIBRARIES='-latomic'"
|
|
fi
|
|
|
|
post_extract() {
|
|
mv solvespace-${version}/* .
|
|
rmdir "${wrksrc}/extlib/libdxfrw"
|
|
mv "libdxfrw-${_libdxfrw_hash}" "${wrksrc}/extlib/libdxfrw"
|
|
rmdir "${wrksrc}/extlib/mimalloc"
|
|
mv "mimalloc-${_mimalloc_hash}" "${wrksrc}/extlib/mimalloc"
|
|
}
|
|
|
|
pre_configure() {
|
|
vsed -i 's/include(GetGitCommitHash)/#include(GetGitCommitHash)/g' CMakeLists.txt
|
|
}
|