# Created by: lbartoletti <coder@tuxfamily.org>
# $FreeBSD: branches/RELEASE_8_4_0/graphics/librasterlite/Makefile 309084 2012-12-17 11:45:31Z pawel $

PORTNAME=	librasterlite
PORTVERSION=	1.1e
CATEGORIES=	graphics geography
MASTER_SITES=	http://www.gaia-gis.it/gaia-sins/librasterlite-sources/

MAINTAINER=	coder@tuxfamily.org
COMMENT=	Library that stores and retrieves raster coverages using a SpatiaLite

LIB_DEPENDS=	spatialite:${PORTSDIR}/databases/spatialite \
		sqlite3:${PORTSDIR}/databases/sqlite3 \
		geotiff:${PORTSDIR}/graphics/libgeotiff \
		jbig:${PORTSDIR}/graphics/jbigkit \
		jpeg:${PORTSDIR}/graphics/jpeg \
		png15:${PORTSDIR}/graphics/png \
		geos:${PORTSDIR}/graphics/geos \
		proj:${PORTSDIR}/graphics/proj \
		tiff:${PORTSDIR}/graphics/tiff \
		freexl:${PORTSDIR}/textproc/freexl

GNU_CONFIGURE=	yes
USE_GMAKE=	yes
USE_PKGCONFIG=	build
USE_ICONV=	yes
USE_LDCONFIG=	yes

CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib

post-patch:
		@${REINPLACE_CMD} -e 's|$$(libdir)/pkgconfig|$$(prefix)/libdata/pkgconfig|' \
		${WRKSRC}/Makefile.in

.include <bsd.port.mk>
