aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/mbpurple/Makefile
blob: c8c6e5098368fea374b4802b94e8845e7e389cd9 (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
# New ports collection makefile for:    mbpurple
# Date created:             30 June 2010
# Whom:                 Doug Barton <dougb@FreeBSD.org>
#
# $FreeBSD$

PORTNAME=   mbpurple
PORTVERSION=    0.3.0
CATEGORIES= net-im
MASTER_SITES=   ${MASTER_SITE_GOOGLE_CODE}

MAINTAINER= dougb@FreeBSD.org
COMMENT=    Integrate twitter with pidgin (AKA microblog-purple)

PROJECTHOST=    microblog-purple
USE_GMAKE=  yes

post-patch:
    @${CP} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.Dist
    @${SED} -e 's#make -C#gmake -C#' \
        ${WRKSRC}/Makefile.Dist > ${WRKSRC}/Makefile
    @${CP} ${WRKSRC}/global.mak ${WRKSRC}/global.mak.Dist
    @${SED} -e 's#^PREFIX :=.*#PREFIX = ${PREFIX}#' \
        -e 's#^LIBDIR :=.*#LIBDIR = ${LOCALBASE}/lib#' \
        -e 's#^PURPLE_PLUGIN_DIR :=.*#PURPLE_PLUGIN_DIR = ${PREFIX}/lib/purple-2#' \
        -e 's#^PURPLE_CACERTS_DIR :=.*#PURPLE_CACERTS_DIR = ${PREFIX}/share/purple/ca-certs#' \
        ${WRKSRC}/global.mak.Dist > ${WRKSRC}/global.mak

do-build:
    cd ${WRKSRC} && ${GMAKE}

.include <bsd.port.mk>