blob: ad3140a21622aa2c7dec07c50f2cb94b79715698 (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
# New ports collection makefile for: mcabber
# Date created: 2005-10-05
# Whom: vsevolod
#
# $FreeBSD$
#
PORTNAME= mcabber
PORTVERSION= 0.10.1
CATEGORIES= net-im
MASTER_SITES= http://www.lilotux.net/~mikael/mcabber/files/ CENKES
#DISTNAME= ${PORTNAME}-${PORTVERSION}-rc3
MAINTAINER= dhn@FreeBSD.org
COMMENT= Small Jabber console client
LIB_DEPENDS= loudmouth:${PORTSDIR}/net-im/loudmouth
LICENSE= GPLv2
USE_BZIP2= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-sigwinch
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
USE_ICONV= yes
USE_GETTEXT= yes
USE_LDCONFIG= yes
USE_GNOME= glib20
CPPFLAGS= -I${LOCALBASE}/include
LDFLAGS= -L${LOCALBASE}/lib
MAN1= mcabber.1
OPTIONS= GPGME "Use security/gpgme for PGP support" off \
OTR "Off-the-record messaging support" off \
ASPELL "Use textproc/aspell for spell checking" off \
ENCHANT "Use texproc/enchant for spell checking" off
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 602107 || (${OSVERSION} > 700000 && ${OSVERSION} < 700033)
LIB_DEPENDS+= ncursesw.5:${PORTSDIR}/devel/ncurses
.endif
.if defined(WITH_GPGME)
LIB_DEPENDS+= gpgme.18:${PORTSDIR}/security/gpgme
CONFIGURE_ARGS+=--enable-gpgme
.else
CONFIGURE_ARGS+=--disable-gpgme
.endif
.if defined(WITH_ASPELL) && !defined(WITH_ENCHANT)
LIB_DEPENDS+= aspell.16:${PORTSDIR}/textproc/aspell
CONFIGURE_ARGS+=--enable-aspell
.else
CONFIGURE_ARGS+=--disable-aspell
.endif
.if defined(WITH_ENCHANT)
LIB_DEPENDS+= enchant.1:${PORTSDIR}/textproc/enchant
CONFIGURE_ARGS+=--enable-enchant
.else
CONFIGURE_ARGS+=--disable-enchant
.endif
.if defined(WITH_OTR)
LIB_DEPENDS+= otr.4:${PORTSDIR}/security/libotr \
gcrypt.17:${PORTSDIR}/security/libgcrypt
CONFIGURE_ARGS+=--enable-otr
PLIST_SUB+= OTR=""
.else
CONFIGURE_ARGS+=--disable-otr
PLIST_SUB+= OTR="@comment "
.endif
post-patch:
@${REINPLACE_CMD} -e 's|$$"$${datadir}"|"$${datadir}"|;s|-O2||'\
${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|$$(libdir)/pkgconfig|${PREFIX}/libdata/pkgconfig|g' \
${WRKSRC}/Makefile.*
post-install:
@${INSTALL} -d ${PREFIX}/share/applications/ ${EXAMPLESDIR}/
@${INSTALL} ${WRKSRC}/${PORTNAME}.desktop ${PREFIX}/share/applications/
@${CP} -R ${WRKSRC}/contrib ${DATADIR}/
${INSTALL_DATA} ${WRKSRC}/mcabberrc.example ${EXAMPLESDIR}/mcabberrc
.include <bsd.port.post.mk>
|