cgal: remove cross-compile reference
This commit is contained in:
parent
5d42289856
commit
675fd6031e
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'cgal'
|
# Template file for 'cgal'
|
||||||
pkgname=cgal
|
pkgname=cgal
|
||||||
version=4.14
|
version=4.14
|
||||||
revision=2
|
revision=3
|
||||||
wrksrc="CGAL-${version}"
|
wrksrc="CGAL-${version}"
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
build_helper="qemu"
|
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"
|
distfiles="https://github.com/CGAL/cgal/releases/download/releases%2FCGAL-${version}/CGAL-${version}.tar.xz"
|
||||||
checksum=59464b1eaee892f2223ba570a7642892c999e29524ab102a6efd7c29c94a29f7
|
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() {
|
cgal-devel_package() {
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
||||||
|
|
Loading…
Reference in New Issue