43 lines
1.2 KiB
Bash
43 lines
1.2 KiB
Bash
# Template file for 'netcdf'
|
|
pkgname=netcdf
|
|
version=4.9.2
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--enable-shared"
|
|
hostmakedepends="m4"
|
|
makedepends="libcurl-devel libxml2-devel"
|
|
short_desc="Machine-independent format for representing scientific data"
|
|
maintainer="Hans Grob <woufrous@gmail.com>"
|
|
license="NetCDF"
|
|
homepage="https://www.unidata.ucar.edu/software/netcdf/"
|
|
distfiles="https://github.com/Unidata/netcdf-c/archive/v${version}.tar.gz"
|
|
checksum=bc104d101278c68b303359b3dc4192f81592ae8640f1aee486921138f7f88cb7
|
|
make_check=no # https://github.com/Unidata/netcdf-c/issues/2433
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
configure_args+=" --disable-netcdf-4"
|
|
else
|
|
configure_args+=" --enable-netcdf-4"
|
|
makedepends+=" hdf5-devel"
|
|
fi
|
|
|
|
post_install() {
|
|
# Remove references to hardening -specs.
|
|
sed -e "s|-specs=.*hardened-ld||g" -e "s|-specs=.*hardened-cc1||g" \
|
|
-i ${DESTDIR}/usr/lib/libnetcdf.settings
|
|
}
|
|
|
|
netcdf-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - delevopment files"
|
|
pkg_install() {
|
|
vmove usr/bin/nc-config
|
|
vmove usr/share/man/man3
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/lib/libnetcdf.settings
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|