67 lines
2.1 KiB
Bash
67 lines
2.1 KiB
Bash
# Template file for 'root'
|
|
pkgname=root
|
|
version=6.26.02
|
|
revision=1
|
|
# Only i686 and x86_64 seem to be officially supported
|
|
archs="i686* x86_64*"
|
|
build_style=cmake
|
|
configure_args="-Dgnuinstall=ON -Druntime_cxxmodules=OFF
|
|
-Dclad=OFF $(vopt_if fortran '-Dfortran=ON')
|
|
-DXROOTD_XrdCl_LIBRARY=/usr/lib/libXrdCl.so.3
|
|
-DCMAKE_INSTALL_LIBDIR=/usr/lib/root -Dr=ON
|
|
-DCMAKE_INSTALL_SYSCONFDIR='libexec/root'
|
|
$(vopt_if root7 '-Droot7=ON -DCMAKE_CXX_STANDARD=17 -Dwebgui=ON')
|
|
-DCMAKE_INSTALL_PYTHONDIR=${py3_sitelib/'usr/'}"
|
|
hostmakedepends="gcc-fortran"
|
|
makedepends="libX11-devel libXpm-devel libXft-devel libXext-devel
|
|
openssl-devel libpng-devel readline-devel tbb-devel liblz4-devel
|
|
pcre-devel xxHash-devel libzstd-devel liblzma-devel libvdt-devel
|
|
libxml2-devel python3-devel python3-numpy R-cran-Rcpp R-cran-RInside
|
|
xrootd"
|
|
depends="gcc"
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl)
|
|
configure_args+=" -Dssl=OFF"
|
|
;;
|
|
esac
|
|
short_desc="C++ framework for data processing created by CERN"
|
|
maintainer="Ben Jargowsky <benjar63@gmail.com>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="https://root.cern"
|
|
distfiles="https://root.cern/download/root_v${version}.source.tar.gz"
|
|
checksum=7ba96772271a726079506c5bf629c3ceb21bf0682567ed6145be30606d7cd9bb
|
|
build_options="fortran root7"
|
|
build_options_default="fortran"
|
|
python_version=3
|
|
shlib_provides="libCore.so libTree.so libRIO.so libMatrix.so libThread.so
|
|
libTMVA.so libMathCore.so"
|
|
|
|
post_install() {
|
|
rm -v ${DESTDIR}/usr/share/root/fonts/LICENSE
|
|
rm -v ${DESTDIR}/usr/share/root/fonts/[a-mt-z]*.ttf
|
|
}
|
|
|
|
python3-pyroot_package() {
|
|
short_desc="Python interface to ROOT"
|
|
depends="root>=${version}_${revision} python3"
|
|
pkg_install() {
|
|
vmove ${py3_sitelib}
|
|
}
|
|
}
|
|
root-R_package() {
|
|
short_desc="ROOT interface to R"
|
|
depends="root>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include/root/RExports.h
|
|
vmove usr/include/root/TRDataFrame.h
|
|
vmove usr/include/root/TRFunctionExport.h
|
|
vmove usr/include/root/TRFunctionImport.h
|
|
vmove usr/include/root/TRInterface.h
|
|
vmove usr/include/root/TRInternalFunction.h
|
|
vmove usr/include/root/TRObject.h
|
|
vmove usr/lib/root/libRInterface.so
|
|
vmove usr/lib/root/libRMVA.so
|
|
vmove usr/lib/root/libRtools.so
|
|
}
|
|
}
|