aboutsummaryrefslogtreecommitdiff
path: root/net-im/mcabber/Makefile
blob: 6dadd6c276b5a3874739d2239ecf87f0683cd2bd (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
47
48
49
50
# New ports collection makefile for:	mcabber
# Date created:		2005-10-05
# Whom:			vsevolod
#
# $FreeBSD$
#

PORTNAME=	mcabber
PORTVERSION=	0.8.2
CATEGORIES=	net-im
MASTER_SITES=	http://www.lilotux.net/~mikael/mcabber/files/ CSME

MAINTAINER=	infofarmer@FreeBSD.org
COMMENT=	Small Jabber console client

LIB_DEPENDS=	ncursesw.5:${PORTSDIR}/devel/ncurses

USE_BZIP2=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS+=--mandir=${MANPREFIX}/man --with-ssl
CONFIGURE_ENV+=	CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}"
USE_OPENSSL=	yes
USE_ICONV=	yes
USE_GETTEXT=	yes
USE_GNOME=	glib20
USE_GETOPT_LONG=	yes
CFLAGS+=	-I${LOCALBASE}/include
CPPFLAGS=	${CFLAGS}
LDFLAGS+=	-lcrypto -L${LOCALBASE}/lib

MAN1=		mcabber.1

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 503000
BROKEN=	Unicoded ncurses require 5.3
.endif

post-patch:
	@${REINPLACE_CMD} -e 's#$$"$${datadir}"#"$${datadir}"#' \
		-e 's/waddnwstr/mvwaddnwstr/g' -e 's!ncursesw/!ncurses/!g' ${WRKSRC}/configure
	@${REINPLACE_CMD} -e 's/NCURSESW/NCURSES/' ${WRKSRC}/src/screen.h ${WRKSRC}/src/utf8.h
	@${REINPLACE_CMD} -e 's!ncursesw/!ncurses/!g' ${WRKSRC}/src/screen.h

post-install:
	@${MKDIR} ${EXAMPLESDIR}
	@${CP} -R ${WRKSRC}/contrib ${DATADIR}/
	${INSTALL_DATA} ${WRKSRC}/mcabberrc.example ${EXAMPLESDIR}/mcabberrc

.include <bsd.port.post.mk>