summaryrefslogtreecommitdiff
path: root/geography/gdal-lib/Makefile.common
blob: 4419f77144ffb96f4deb7a21da342e8787283643 (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
# $NetBSD: Makefile.common,v 1.5 2019/03/22 14:00:49 gdt Exp $
#
# used by geography/gdal-lib/Makefile
# used by geography/py-gdal/Makefile

VERSION=	2.4.1
DISTNAME=	gdal-${VERSION}
CATEGORIES=	geography
MASTER_SITES=	http://download.osgeo.org/gdal/${PKGVERSION_NOREV}/

MAINTAINER=	gdt@NetBSD.org
#MAINTAINER+=	brook@nmsu.edu

PATCHDIR=	${.CURDIR}/../../geography/gdal-lib/patches
DISTINFO_FILE=	${.CURDIR}/../../geography/gdal-lib/distinfo

CHECK_PORTABILITY_SKIP+=	mkbindist.sh

USE_TOOLS+=		gmake
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