summaryrefslogtreecommitdiff
path: root/chat/finch/Makefile
blob: 040289625de1d92ac9681c8ca11d2057bbf3d750 (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
46
47
48
49
50
51
52
53
54
55
# $NetBSD: Makefile,v 1.58 2014/05/09 07:36:55 wiz Exp $

PKGNAME=	finch-${PIDGIN_VERSION}

COMMENT=	Multi-protocol Instant Messaging client console frontend

PYTHON_VERSIONS_INCOMPATIBLE=	33 34 # not yet ported as of 2.10.8
# finch/libgnt/gntwm.c needs
# -       PyObject *pp = PySys_GetObject("path"), *dirobj = PyString_FromString(dir);
# +       PyObject *pp = PySys_GetObject("path"), *dirobj = PyBytes_FromString(dir);

.include		"../../chat/libpurple/Makefile.common"

USE_TOOLS+=	intltool msgfmt perl

PKGCONFIG_OVERRIDE+=	finch/finch.pc.in
PKGCONFIG_OVERRIDE+=	finch/libgnt/gnt.pc.in
PKGCONFIG_OVERRIDE+=	gaim.pc.in
PKGCONFIG_OVERRIDE+=	libpurple/purple.pc.in
PKGCONFIG_OVERRIDE+=	pidgin/pidgin.pc.in

CONFIGURE_ARGS+=	--enable-consoleui
CONFIGURE_ENV+=		ac_cv_path_pythonpath=

#CONFIGURE_ARGS+=	--disable-plugins

# The configure script uses an incredibly stupid way to detect if the
# ncurses header is present.  As such, it needs the exact path to the
# ncurses header it will use, so provide the path to the one in
# ${BUILDLINK_DIR}.
#
CONFIGURE_ARGS+=	--with-ncurses-headers=${BUILDLINK_DIR}/include

USE_NCURSES=		yes # force ncurses, for libpanel

BUILD_DIRS=		finch

.include "options.mk"

pre-build:
	# XXX Find a cleaner way.
	${MKDIR} ${WRKSRC}/libpurple/.libs
	${TEST} -r ${WRKSRC}/libpurple/libpurple.la || \
	  ln -s ${BUILDLINK_DIR}/lib/libpurple.la ${WRKSRC}/libpurple

INSTALL_DIRS=		finch doc

BUILDLINK_API_DEPENDS.libpurple+=	libpurple-${PIDGIN_VERSION}{,nb*}
.include "../../chat/libpurple/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/glib2/buildlink3.mk"
.include "../../devel/libidn/buildlink3.mk"
.include "../../devel/ncursesw/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"