cb47555776
Also switch from poppler to podofo because of incompatibilities with our current poppler-0.75. Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
48 lines
1.4 KiB
Bash
48 lines
1.4 KiB
Bash
# Template file for 'libgdal'
|
|
pkgname=libgdal
|
|
version=2.4.1
|
|
revision=1
|
|
wrksrc="gdal-${version}"
|
|
build_style=gnu-configure
|
|
configure_args="--with-liblzma --with-webp --with-zstd --with-podofo"
|
|
hostmakedepends="gettext-devel pkg-config python-numpy json-c-devel"
|
|
makedepends="freexl-devel geos-devel jasper-devel json-c-devel libcurl-devel
|
|
libopenexr-devel libopenjpeg2-devel libpodofo-devel libqhull-devel
|
|
libwebp-devel libxml2-devel libzstd-devel opencl-headers sqlite-devel"
|
|
short_desc="Geospatial Data Abstraction Library"
|
|
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
|
license="MIT"
|
|
homepage="http://www.gdal.org/"
|
|
distfiles="http://download.osgeo.org/gdal/${version}/gdal-${version}.tar.xz"
|
|
checksum=fd51b4900b2fc49b98d8714f55fc8a78ebfd07218357f93fb796791115a5a1ad
|
|
subpackages="libgdal-devel libgdal-tools"
|
|
|
|
pre_build() {
|
|
# Fix for poppler changes on 0.72 and before
|
|
find frmts/pdf -type f | xargs sed -e 's|GBool|bool|g' -e 's|gFalse|false|g' -e 's|getCString|c_str|g' -i
|
|
}
|
|
|
|
post_install() {
|
|
vinstall gdal.pc 644 usr/lib/pkgconfig
|
|
vlicense LICENSE.TXT
|
|
}
|
|
|
|
libgdal-tools_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - tools"
|
|
pkg_install() {
|
|
vmove usr/bin
|
|
}
|
|
}
|
|
|
|
libgdal-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/bin/gdal-config
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/lib/*.a
|
|
vmove usr/lib/*.so
|
|
}
|
|
}
|