aboutsummaryrefslogtreecommitdiff
path: root/graphics/libgaiagraphics/Makefile
blob: fb44a4573358291892533b2a79b9d9a093444596 (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
# New ports collection makefile for:	libgaiagraphics
# Date created:		2012-06-14
# Whom:			lbartoletti <coder@tuxfamily.org>
#
# $FreeBSD$
#

PORTNAME=	libgaiagraphics
PORTVERSION=	0.4b
CATEGORIES=	graphics geography
MASTER_SITES=	http://www.gaia-gis.it/gaia-sins/

MAINTAINER=	coder@tuxfamily.org
COMMENT=	Library supporting common-utility raster handling methods

LIB_DEPENDS=	png15:${PORTSDIR}/graphics/png \
		tiff:${PORTSDIR}/graphics/tiff \
		geotiff:${PORTSDIR}/graphics/libgeotiff \
		jpeg:${PORTSDIR}/graphics/jpeg \
		cairo:${PORTSDIR}/graphics/cairo

GNU_CONFIGURE=	yes
USE_GMAKE=	yes
USES=		iconv

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

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

.include <bsd.port.mk>