cgal: remove cross-compile reference

This commit is contained in:
Đoàn Trần Công Danh 2022-07-08 21:56:16 +07:00
parent 5d42289856
commit 675fd6031e
1 changed files with 16 additions and 1 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'cgal'
pkgname=cgal
version=4.14
revision=2
revision=3
wrksrc="CGAL-${version}"
build_style=cmake
build_helper="qemu"
@ -13,6 +13,21 @@ homepage="https://www.cgal.org"
distfiles="https://github.com/CGAL/cgal/releases/download/releases%2FCGAL-${version}/CGAL-${version}.tar.xz"
checksum=59464b1eaee892f2223ba570a7642892c999e29524ab102a6efd7c29c94a29f7
post_install() {
local _xusr="${XBPS_CROSS_BASE%%/}/usr"
sed -i -e "
s,-I$_xusr/include\\([ \"]\\),\\1,g
s,-L$_xusr/lib\\([ \"]\\),\\1,g
s,\"\\($_xusr/include;\\)*$_xusr/include,\"/usr/include,
s,$_xusr/lib/lib\\([^[:space:];]*\\)[.]so,-l\\1,g
" "$DESTDIR/usr/lib/cmake/CGAL/"*.cmake
if grep -q "$XBPS_CROSS_BASE" "$DESTDIR/usr/lib/cmake/CGAL/"*.cmake
then
msg_error "CMake scripts has cross reference\n"
fi
}
cgal-devel_package() {
short_desc+=" - development files"
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"