40 lines
1.3 KiB
Bash
40 lines
1.3 KiB
Bash
# Template file for 'postgis-postgresql15'
|
|
pkgname=postgis-postgresql15
|
|
version=3.5.0
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="
|
|
--bindir=/usr/lib/psql15/bin
|
|
--with-projdir=${XBPS_CROSS_BASE}/usr
|
|
--with-jsondir=${XBPS_CROSS_BASE}/usr
|
|
--with-protobufdir=${XBPS_CROSS_BASE}/usr
|
|
--with-geosconfig=${XBPS_CROSS_BASE}/usr/bin/geos-config"
|
|
hostmakedepends="automake libtool perl pkg-config geos
|
|
libgdal-tools postgresql15-libs-devel which"
|
|
makedepends="geos-devel libgdal-devel libpqxx-devel libxml2-devel postgresql15-libs-devel
|
|
proj-devel protobuf-c-devel pcre-devel json-c-devel"
|
|
checkdepends="libxslt CUnit-devel"
|
|
short_desc="Spatial database extender for PostgreSQL"
|
|
maintainer="Piotr Wójcik <chocimier@tlen.pl>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://postgis.net/"
|
|
changelog="https://git.osgeo.org/gitea/postgis/postgis/raw/tag/${version}/NEWS"
|
|
distfiles="https://download.osgeo.org/postgis/source/postgis-${version}.tar.gz"
|
|
checksum=ca698a22cc2b2b3467ac4e063b43a28413f3004ddd505bdccdd74c56a647f510
|
|
nocross="FIXME: Cannot run test program to determine PROJ version"
|
|
|
|
pre_configure() {
|
|
./autogen.sh
|
|
}
|
|
|
|
pre_check() {
|
|
# regression tests require running postgresql
|
|
vsed -i regress/run_test.pl -e '/\/usr\/bin\/env/ a exit;'
|
|
}
|
|
|
|
post_install() {
|
|
for i in ${DESTDIR}/usr/share/man/man1/*; do
|
|
mv -v "${i}" "${i/.1/-15.1}"
|
|
done
|
|
}
|