# Created by: Loïc BARTOLETTI <coder@tuxfamily.org>
# $FreeBSD: head/astro/readosm/Makefile 412344 2016-04-01 13:29:15Z mat $

PORTNAME=	readosm
PORTVERSION=	1.0.0
CATEGORIES=	astro geography devel
MASTER_SITES=	http://www.gaia-gis.it/gaia-sins/
DISTNAME=	${PORTNAME}-${PORTVERSION}e

MAINTAINER=	coder@tuxfamily.org
COMMENT=	Extract valid data from within an Open Street Map input file

LICENSE=	MPL LGPL21 GPLv2
LICENSE_COMB=	dual

LIB_DEPENDS=	libexpat.so:textproc/expat2

WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}e
GNU_CONFIGURE=	yes
USES=		gmake libtool pathfix pkgconfig

CFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib ${ICONV_LIB}
USE_LDCONFIG=	yes

.include <bsd.port.mk>