summaryrefslogtreecommitdiff
path: root/graphics/gdal/Makefile
blob: 4e4b2af3f41fedff06ec09c80c394b12fb7233eb (plain) (blame)
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
45
46
47
48
49
50
51
52
# New ports collection makefile for:	Geospatial Data Abstraction Library
# Date created:		27 Aug 2001
# Whom:			Randall Hopper
#
# $FreeBSD$
#

PORTNAME=	gdal
PORTVERSION=	1.3.1
PORTREVISION=	1
CATEGORIES=	graphics geography
MASTER_SITES=	ftp://ftp.remotesensing.org/pub/gdal/ \
		http://www.gdal.org/dl/ \
		http://dl.maptools.org/dl/gdal/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A translator library for geospatial data formats

BUILD_DEPENDS=	${LOCALBASE}/bin/doxygen:${PORTSDIR}/devel/doxygen
LIB_DEPENDS=	jasper.4:${PORTSDIR}/graphics/jasper \
		png.5:${PORTSDIR}/graphics/png \
		tiff.4:${PORTSDIR}/graphics/tiff \
		geotiff.1:${PORTSDIR}/graphics/libgeotiff \
		jpeg.9:${PORTSDIR}/graphics/jpeg \
		ungif.5:${PORTSDIR}/graphics/libungif

USE_AUTOTOOLS=	libtool:15
USE_PYTHON=	yes
USE_GMAKE=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-libz=/usr \
		--with-png=${LOCALBASE} \
		--with-libtiff=${LOCALBASE} \
		--with-libgeotiff=${LOCALBASE} \
		--with-libjpeg=${LOCALBASE} \
		--with-libgif=${LOCALBASE} \
		--with-jasper=${LOCALBASE} \
		--with-python
MAKEFILE=	GNUmakefile
USE_LDCONFIG=	yes

MAN1=		gdal-config.1 gdal_utilities.1 gdalwarp.1 ogrtindex.1 \
		gdal_contour.1 gdaladdo.1 ogr2ogr.1 pct2rgb.py.1 \
		gdal_merge.py.1 gdalinfo.1 ogr_utilities.1 rgb2pct.py.1 \
		gdal_translate.1 gdaltindex.1 ogrinfo.1

.include <bsd.port.pre.mk>

post-patch:
	@${REINPLACE_CMD} -e 's|6LIBZ|6|;;s|lgif|lungif|' ${WRKSRC}/configure

.include <bsd.port.post.mk>