blob: be040ee5e1e12c962ca8533ffaa38687f04313de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# $NetBSD: Makefile.common,v 1.17 2022/03/14 15:10:16 gdt Exp $
#
# used by geography/gdal-lib/Makefile
# used by geography/py-gdal/Makefile
# Accomodate testing unreleased versions.
VERSION_BASE= 3.4.2
#VERSION_RC= rc1
VERSION= ${VERSION_BASE}${VERSION_RC}
DISTNAME= gdal-${VERSION}
EXTRACT_SUFX= .tar.xz
CATEGORIES= geography
MASTER_SITES= https://download.osgeo.org/gdal/${VERSION_BASE}${VERSION_RC}/
MAINTAINER= gdt@NetBSD.org
#MAINTAINER+= brook@nmsu.edu
HOMEPAGE= http://www.gdal.org/
LICENSE= mit
WRKSRC= ${WRKDIR}/gdal-${VERSION_BASE}
PATCHDIR= ${.CURDIR}/../../geography/gdal-lib/patches
DISTINFO_FILE= ${.CURDIR}/../../geography/gdal-lib/distinfo
CHECK_PORTABILITY_SKIP+= mkbindist.sh
USE_TOOLS+= gmake pkg-config
USE_LANGUAGES= c99 c++
USE_LIBTOOL= yes
USE_PKGLOCALEDIR= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-geos
CONFIGURE_ARGS+= --with-libjson-c=internal
CONFIGURE_ARGS+= --with-libtiff=${BUILDLINK_PREFIX.tiff}
CONFIGURE_ARGS+= --with-libz=${BUILDLINK_PREFIX.zlib}/include
CONFIGURE_ARGS+= --with-netcdf=${BUILDLINK_PREFIX.netcdf}
CONFIGURE_ARGS+= --with-webp=${BUILDLINK_PREFIX.libwebp}
CONFIGURE_ARGS+= --with-xerces
CONFIGURE_ARGS+= --with-xerces-inc=${BUILDLINK_PREFIX.xerces-c}/include
CONFIGURE_ARGS+= --with-xerces-lib=-L${BUILDLINK_PREFIX.xerces-c}/lib\ -lxerces-c
# force OpenJPEG for JPEG 2000 support
CONFIGURE_ARGS+= --without-jasper
CONFIGURE_ARGS+= --with-openjpeg
|