Major update to proj 7.1.1.

- Add curl and tiff dependencies, now that proj can read datum grids
  from remote cloud-optimized geotiffs (cf https://proj.org/usage/network.html)
- Add a README explaining how to access or sync datum grids from the CDN
  (disabled by default)

all consumers had been fixed/adapted beforehands, the last annoying one
was spatialite but it's going to be updated right now.
This commit is contained in:
landry 2020-10-11 16:25:26 +00:00
parent 9554546d05
commit a95f4913dc
4 changed files with 46 additions and 11 deletions

View File

@ -1,14 +1,14 @@
# $OpenBSD: Makefile,v 1.31 2020/05/14 11:23:17 landry Exp $
# $OpenBSD: Makefile,v 1.32 2020/10/11 16:25:26 landry Exp $
COMMENT= cartographic projection utilities
PORTROACH += limit:6.*
DISTNAME= proj-6.3.2
DISTNAME= proj-7.1.1
CATEGORIES= devel geo
SHARED_LIBS= proj 13.0 # 18.0
SHARED_LIBS= proj 14.0 # 20.1
DISTFILES = ${DISTNAME}${EXTRACT_SUFX} \
proj-datumgrid-1.8${EXTRACT_SUFX}
# 500Mb proj-data-1.0${EXTRACT_SUFX}
HOMEPAGE= http://proj4.org
@ -22,9 +22,12 @@ MASTER_SITES= http://download.osgeo.org/proj/
# c++11
COMPILER= base-clang ports-gcc
CONFIGURE_STYLE= gnu
LIB_DEPENDS = databases/sqlite3
LIB_DEPENDS = databases/sqlite3 \
net/curl \
graphics/tiff
BUILD_DEPENDS = devel/gtest
WANTLIB= c m pthread ${COMPILER_LIBCXX} sqlite3 z
WANTLIB+= crypto curl jpeg lzma nghttp2 ssl tiff zstd
CONFIGURE_ENV= LDFLAGS='-pthread' \
GTEST_CFLAGS=-I${LOCALBASE}/include \
GTEST_LIBS="-L${LOCALBASE}/lib -lgtest"

View File

@ -1,4 +1,4 @@
SHA256 (proj-6.3.2.tar.gz) = y3dqcPQMNVea5LoE+0o4jB0c4CWh32FxNQ3BnyW4AxE=
SHA256 (proj-7.1.1.tar.gz) = Mk56u1Vp+194fa3x1EdHZpFcSFoYjPSM8HFTuZFWtfk=
SHA256 (proj-datumgrid-1.8.tar.gz) = P/ZhigrMnwubT2pi5/8Pe/U4+0903ketBNoTF0CPzBU=
SIZE (proj-6.3.2.tar.gz) = 2827685
SIZE (proj-7.1.1.tar.gz) = 5509592
SIZE (proj-datumgrid-1.8.tar.gz) = 6604329

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.10 2020/01/02 14:53:48 landry Exp $
@comment $OpenBSD: PLIST,v 1.11 2020/10/11 16:25:26 landry Exp $
@bin bin/cct
@bin bin/cs2cs
@bin bin/geod
@ -7,8 +7,8 @@ bin/invgeod
bin/invproj
@bin bin/proj
@bin bin/projinfo
@bin bin/projsync
include/geodesic.h
include/org_proj4_PJ.h
include/proj/
include/proj.h
include/proj/common.hpp
@ -34,8 +34,8 @@ lib/pkgconfig/proj.pc
@man man/man1/gie.1
@man man/man1/proj.1
@man man/man1/projinfo.1
@man man/man3/geodesic.3
@man man/man3/pj_init.3
@man man/man1/projsync.1
share/doc/pkg-readmes/${PKGSTEM}
share/proj/
share/proj/BETA2007.gsb
share/proj/CH
@ -50,6 +50,7 @@ share/proj/WI
share/proj/WO
share/proj/alaska
share/proj/conus
share/proj/deformation_model.schema.json
share/proj/egm96_15.gtx
share/proj/hawaii
share/proj/nad.lst
@ -61,6 +62,7 @@ share/proj/null
share/proj/nzgd2kgrid0005.gsb
share/proj/other.extra
share/proj/proj.db
share/proj/proj.ini
share/proj/projjson.schema.json
share/proj/prvi
share/proj/stgeorge

30
devel/proj/pkg/README Normal file
View File

@ -0,0 +1,30 @@
$OpenBSD: README,v 1.1 2020/10/11 16:25:26 landry Exp $
+-------------------------------------------------------------------------------
| Running ${PKGSTEM} on OpenBSD
+-------------------------------------------------------------------------------
Since proj 7, datum grids are available from a CDN at https://cdn.proj.org and
should either be fetched dynamically at runtime (disabled by default, cf
https://proj.org/usage/network.html) or be fetched locally depending on your
work area needs, using the projsync command.
Use projsync --list-files to list the CDN content.
They can either by installed in the user homedir (under ~/.local/share/proj)
$ projsync --file fr_ign_ntf_r93.tif
Downloading from https://cdn.proj.org into /home/user/.local/share/proj
Total to download: 93581 bytes
Downloading https://cdn.proj.org/fr_ign_ntf_r93.tif... (1 / 1)
or systemwide in the default PROJ_LIB dir (under ${TRUEPREFIX}/share/proj, cf
https://proj.org/resource_files.html)
# projsync --system-directory --file fr_ign_ntf_r93.tif
Downloading from https://cdn.proj.org into ${TRUEPREFIX}/share/proj
Total to download: 93581 bytes
Downloading https://cdn.proj.org/fr_ign_ntf_r93.tif... (1 / 1)
If not using the default, make sure to set PROJ_LIB environment variable
accordingly.