aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/pidgin-libnotify/Makefile
blob: 9b1c4035df1ca95623450e427e4093f55fc2274c (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
36
37
38
39
40
41
42
43
44
45
46
# Ports collection Makefile for:    pidgin-libnotify
# Date created:             2007-07-10
# Whom:                 Meethune Bhowmick <meethune@gmail.com>
#
# $FreeBSD$
#

PORTNAME=   libnotify
PORTVERSION=    0.13
PORTREVISION=   3
CATEGORIES= net-im
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= gaim-libnotify
PKGNAMEPREFIX=  pidgin-
DISTNAME=   ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}

MAINTAINER= meethune@gmail.com
COMMENT=    This plugin adds a libnotify interface to Pidgin

BUILD_DEPENDS=  ${LOCALBASE}/bin/pidgin:${PORTSDIR}/net-im/pidgin \
            ${LOCALBASE}/libdata/pkgconfig/libnotify.pc:${PORTSDIR}/devel/libnotify
LIB_DEPENDS=    notify.1:${PORTSDIR}/devel/libnotify \
        purple.4:${PORTSDIR}/net-im/libpurple

USE_XLIB=   yes
GNU_CONFIGURE=  yes
USE_LDCONFIG=   yes
USE_GNOME=  pkgconfig gtk20

.if defined(WITHOUT_NLS)
CONFIGURE_ARGS+=    --disable-nls
PLIST_SUB+= NLS="@comment "
.else
USE_GETTEXT=    yes
PLIST_SUB+= NLS=""
.endif

CONFIGURE_ENV=  CPPFLAGS="${PTHREAD_CFLAGS} -I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"

CONFIGURE_ARGS= --disable-static

post-patch:
    @${REINPLACE_CMD} -e 's|echo aout|echo elf|' ${WRKSRC}/configure

.include <bsd.port.mk>