# Created by: Gustau Perez <gustau.perez@gmail.com>
# $FreeBSD: tags/RELEASE_10_2_0/net/gfbgraph/Makefile 377090 2015-01-15 13:27:53Z kwm $
#    $MCom: ports/trunk/net/gfbgraph/Makefile 19822 2014-08-20 08:57:46Z gusi $

PORTNAME=	gfbgraph
PORTVERSION=	0.2.2
PORTREVISION=	2
CATEGORIES=	net www
MASTER_SITES=	GNOME

MAINTAINER=	gnome@FreeBSD.org
COMMENT=	GObject library for Facebook Graph API

BUILD_DEPENDS=	gtkdoc-rebase:${PORTSDIR}/textproc/gtk-doc
LIB_DEPENDS=	librest-0.7.so:${PORTSDIR}/devel/librest \
		libgoa-1.0.so:${PORTSDIR}/net/gnome-online-accounts \
		libjson-glib-1.0.so:${PORTSDIR}/devel/json-glib

USES=		gettext gmake libtool pathfix pkgconfig tar:xz
USE_GNOME=	glib20 intlhack introspection:build
GNU_CONFIGURE=	yes
USE_LDCONFIG=	yes
INSTALLS_ICONS=	yes
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib
INSTALL_TARGET=	install-strip

post-patch:
	${REINPLACE_CMD} -e 's|/doc/libgfbgraph|/share/doc/libgfbgraph|g' \
		${WRKSRC}/Makefile.in

.include <bsd.port.mk>
