summaryrefslogtreecommitdiff
path: root/geography/proj/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'geography/proj/Makefile')
-rw-r--r--geography/proj/Makefile45
1 files changed, 32 insertions, 13 deletions
diff --git a/geography/proj/Makefile b/geography/proj/Makefile
index 568d41f30c5..38d5dac5a68 100644
--- a/geography/proj/Makefile
+++ b/geography/proj/Makefile
@@ -1,46 +1,65 @@
-# $NetBSD: Makefile,v 1.18 2020/01/26 17:31:19 rillig Exp $
+# $NetBSD: Makefile,v 1.19 2020/03/10 16:17:38 gdt Exp $
-# I have an update to 6 ready, but it is on hold pending an assessment
-# of projects.h removal fallout - gdt.
-VERSION_BASE= 5.2.0
+# An update to 7 is on hold because I have not yet assessed how much
+# trouble it will cause. -gdt
+VERSION_BASE= 6.3.1
VERSION_RC=
VERSION= ${VERSION_BASE}${VERSION_RC}
-PKGREVISION= 3
+#PKGREVISION= 0
# proj RCs have names like 5.1.0RC1 but unpack to 5.1.0
WRKFINAL= proj-${VERSION_BASE}
WRKSRC= ${WRKDIR}/${WRKFINAL}
DISTNAME= proj-${VERSION}
CATEGORIES= geography
MASTER_SITES= https://download.osgeo.org/proj/
-DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
- proj-datumgrid-1.8${EXTRACT_SUFX} \
- proj-datumgrid-europe-1.1${EXTRACT_SUFX} \
- proj-datumgrid-north-america-1.1${EXTRACT_SUFX} \
- proj-datumgrid-oceania-1.0${EXTRACT_SUFX}
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= gdt@NetBSD.org
HOMEPAGE= https://proj4.org/
COMMENT= Cartographic projection software
+# \todo: Add pdf manual.
+
# Grid files also have the following "cc-by ish" licenses:
# cc-by, 2-clause-bsd, License Ouverte, cc0 (eu)
# open-government, cc-by, public-domain (na)
# cc-by (oceania)
LICENSE= mit
+.include "options.mk"
+
PREV_PKGPATH= misc/proj
USE_LANGUAGES= c99 c++11
USE_LIBTOOL= yes
-USE_TOOLS+= gmake
+USE_TOOLS+= gmake pkg-config
GNU_CONFIGURE= yes
+# \todo Debug this.
+# Tests fail if proj relies on NetBSD 8's C99 math, vs proj's
+# replacement functions.
+.if ${OPSYS} == "NetBSD"
+CFLAGS+= -DHAVE_C99_MATH=0
+.endif
+
+.if !empty(PKG_OPTIONS:Mproj-grids)
+# Ideally, upstream would have an approach which enables testing with
+# the grids that users ought to have. Until then, fail if test
+# preconditions are not met.
+do-test:
+ ${ECHO} "Tests assume extra grids are not installed."
+ ${FALSE}
+.else
TEST_TARGET= check
+.endif
-# \todo Ideally, the files would be unpacked directly in nad.
+# \todo Ideally, the files would be unpacked directly in data.
# Assume that all of the stray files in ${WRKDIR} came from datumgrids.
+# \todo Some files in the grid tarballs do not get installed by the
+# base Makefile. Consider an alternate approach.
post-extract:
- cd ${WRKDIR} && for f in *; do if [ $$f != ${WRKFINAL} ]; then mv $$f ${WRKFINAL}/nad; fi; done
+ cd ${WRKDIR} && for f in *; do if [ $$f != ${WRKFINAL} ]; then mv $$f ${WRKFINAL}/data; fi; done
+.include "../../databases/sqlite3/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"