summaryrefslogtreecommitdiff
path: root/chat/pidgin-facebookchat/Makefile
blob: 37967bd62d3e1235296199fecd9dcc8ce45c5056 (plain)
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
36
# $NetBSD: Makefile,v 1.29 2012/10/03 00:02:42 asau Exp $

DISTNAME=	pidgin-facebookchat-source-1.69
PKGNAME=	${DISTNAME:S/-source-/-/}
PKGREVISION=	11
CATEGORIES=	chat
MASTER_SITES=	http://pidgin-facebookchat.googlecode.com/files/
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://code.google.com/p/pidgin-facebookchat/
COMMENT=	Plugin for pidgin to support Facebook IM
LICENSE=	gnu-gpl-v3 # or later

DEPENDS+=	pidgin>=2.7.9:../../chat/pidgin

WRKSRC=		${WRKDIR}/${PKGBASE}

SUBST_CLASSES+=	paths
SUBST_STAGE.paths=	pre-configure
SUBST_MESSAGE.paths=	Fixing absolute paths.
SUBST_FILES.paths=	Makefile
SUBST_SED.paths=	-e 's+-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include+-I${BUILDLINK_PREFIX.glib2}/include/glib/glib-2.0/glib -I${BUILDLINK_PREFIX.glib2}/include/glib/glib-2.0 -I${BUILDLINK_PREFIX.glib2}/lib/glib-2.0/include+g'
SUBST_SED.paths+=	-e 's+-I/usr/include/libpurple+-I${BUILDLINK_PREFIX.libpurple}/include/libpurple+g'
SUBST_SED.paths+=	-e 's+-I/usr/include/json-glib-1.0+-I${BUILDLINK_PREFIX.json-glib}/include/json-glib-1.0+g'
SUBST_SED.paths+=	-e 's+/usr/share/+${DESTDIR}${PREFIX}/share/+g'
SUBST_SED.paths+=	-e 's+/usr/lib/+${DESTDIR}${PREFIX}/lib/+g'

INSTALLATION_DIRS+=	lib/purple-2

.include "../../chat/libpurple/buildlink3.mk"
.include "../../devel/glib2/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
BUILDLINK_API_DEPENDS.json-glib+=	json-glib>=0.7.6
.include "../../textproc/json-glib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"