summaryrefslogtreecommitdiff
path: root/net-im/pidgin-facebookchat/Makefile
blob: 9dae38f4763e2dc0925dd3d7b7ee0183b6f3c4fc (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
37
38
39
40
41
42
43
44
45
# New ports collection makefile for:	pidgin-facebookchat
# Date created:		2008-07-27
# Whom:			ports@c0decafe.net <ports@c0decafe.net>
#
# $FreeBSD$
#

PORTNAME=	pidgin-facebookchat
PORTVERSION=	1.69
PORTREVISION=	1
CATEGORIES=	net-im
MASTER_SITES=	${MASTER_SITE_GOOGLE_CODE}
DISTNAME=	${PROJECTHOST}-source-${PORTVERSION}

MAINTAINER=	jsa@FreeBSD.org
COMMENT=	Facebook Chat for Pidgin

LIB_DEPENDS=	json-glib-1.0.0:${PORTSDIR}/devel/json-glib
BUILD_DEPENDS=	pidgin:${PORTSDIR}/net-im/pidgin
RUN_DEPENDS=	pidgin:${PORTSDIR}/net-im/pidgin

LICENSE=	GPLv3

PROJECTHOST=	${PORTNAME}
WRKSRC=		${WRKDIR}/${PORTNAME}
USE_BZIP2=	yes
USE_LDCONFIG=	yes

PLIST_FILES=	lib/purple-2/libfacebook.so

do-patch:
	${REINPLACE_CMD} -e "s#i686-pc-freebsd6.0-gcc#${CC}#; \
	s#/usr/local/#${LOCALBASE}/#g; \
	s#/usr/include/json-glib-1.0#${LOCALBASE}/include/json-glib-1.0 \
	-L${LOCALBASE}/lib/#g" \
		${WRKSRC}/Makefile

do-build:
	${MAKE} -C ${WRKSRC} libfacebookbsd60.so

do-install:
	${MKDIR} ${PREFIX}/lib/purple-2/
	${INSTALL_DATA} ${WRKSRC}/libfacebook.so ${PREFIX}/lib/purple-2/

.include <bsd.port.mk>