# New ports collection makefile for:		libgeotiff
# Date created:					9 December 2005
# Whom:						Sam Lawrance
#
# $FreeBSD: ports/graphics/libgeotiff/Makefile,v 1.9 2009/07/18 11:10:56 dinoex Exp $
#

PORTNAME=	libgeotiff
PORTVERSION=	1.2.5
PORTREVISION=	1
CATEGORIES=	graphics
MASTER_SITES=	ftp://ftp.remotesensing.org/pub/geotiff/libgeotiff/ \
		http://dl1.maptools.org/dl/geotiff/libgeotiff/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Library for reading and writing GeoTIFF information tags

LIB_DEPENDS=	jpeg.10:${PORTSDIR}/graphics/jpeg \
		proj.5:${PORTSDIR}/graphics/proj \
		tiff.4:${PORTSDIR}/graphics/tiff

USE_GNOME=	gnometarget
USE_AUTOTOOLS=	automake:15:env autoconf:262:env
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-jpeg=${LOCALBASE} \
		--with-proj=${LOCALBASE} \
		--with-libtiff=${LOCALBASE}
USE_LDCONFIG=	yes

.include <bsd.port.pre.mk>

.if ${ARCH} == "amd64"
CFLAGS+=	-fPIC
.endif

.include <bsd.port.post.mk>
