blob: e76e796cb7910d5ae51801939b567920e4d8ab02 (
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
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
|
# Ports collection makefile for: ekg2
# Date created: 27 Dec 2005
# Whom: Aleksander Fafula <alex@bsdguru.org>
#
# $FreeBSD$
PORTNAME= ekg2
PORTVERSION= 0.3.1
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= polish net-im
MASTER_SITES= http://pl.ekg2.org/
MAINTAINER= pawel@FreeBSD.org
COMMENT= Text-mode Gadu-Gadu, Jabber, and IRC client
LIB_DEPENDS= gadu.3:${PORTSDIR}/polish/libgadu \
expat.6:${PORTSDIR}/textproc/expat2
LICENSE= GPLv2
USE_GMAKE= yes
GNU_CONFIGURE= yes
USES= pathfix pkgconfig iconv
MAKE_JOBS_SAFE= yes
CONFIGURE_ARGS+= --enable-shared \
--disable-static \
--enable-dynamic \
--with-expat \
--without-sqlite \
--without-gpm-mouse \
--with-libgadu \
--without-libgnutls \
--without-gif \
--without-libjpeg \
--without-libidn
LDFLAGS+= -L${LOCALBASE}/lib -lintl -pthread
CFLAGS+= -I${LOCALBASE}/include
OPTIONS_DEFINE= ASPELL GPG GSM GTK2 PERL PYTHON SQLITE UNICODE XOSD
ASPELL_DESC= Enable spell checking support
GPG_DESC= Enable gpg plugin
GSM_DESC= Enable gsm audio plugin
GTK2_DESC= Enable gtk plugin
PERL_DESC= Enable perl plugin
PYTHON_DESC= Enable python plugin
SQLITE_DESC= Enable sqlite plugin
UNICODE_DESC= Enable unicode (experimental)
XOSD_DESC= Enable xosd plugin
OPTIONS_DEFAULT=ASPELL
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MASPELL}
LIB_DEPENDS+= aspell:${PORTSDIR}/textproc/aspell
RUN_DEPENDS+= ${LOCALBASE}/share/aspell/pl.rws:${PORTSDIR}/polish/aspell
CONFIGURE_ARGS+= --with-aspell
.else
CONFIGURE_ARGS+= --without-aspell
.endif
.if ${PORT_OPTIONS:MGPG}
LIB_DEPENDS+= gpgme:${PORTSDIR}/security/gpgme \
gpg-error:${PORTSDIR}/security/libgpg-error
RUN_DEPENDS+= gpg:${PORTSDIR}/security/gnupg
CONFIGURE_ARGS+= --with-gpg
PLIST_SUB+= GPG_PLUGIN=""
.else
CONFIGURE_ARGS+= --without-gpg
PLIST_SUB+= GPG_PLUGIN="@comment "
.endif
.if ${PORT_OPTIONS:MGSM}
LIB_DEPENDS+= gsm:${PORTSDIR}/audio/gsm
CONFIGURE_ARGS+= --with-libgsm
PLIST_SUB+= GSM_PLUGIN=""
.else
CONFIGURE_ARGS+= --without-libgsm
PLIST_SUB+= GSM_PLUGIN="@comment "
.endif
.if ${PORT_OPTIONS:MGTK2}
USE_GNOME+= gtk20
CONFIGURE_ARGS+= --with-gtk
PLIST_SUB+= GTK2_PLUGIN=""
.else
CONFIGURE_ARGS+= --without-gtk
PLIST_SUB+= GTK2_PLUGIN="@comment "
.endif
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
CONFIGURE_ARGS+= --enable-nls
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.endif
.if ${PORT_OPTIONS:MPERL}
USE_PERL5= yes
CONFIGURE_ARGS+= --with-perl
PLIST_SUB+= PERL_PLUGIN=""
.else
CONFIGURE_ARGS+= --without-perl
PLIST_SUB+= PERL_PLUGIN="@comment "
.endif
.if ${PORT_OPTIONS:MPYTHON}
USE_PYTHON= yes
CONFIGURE_ARGS+= --with-python
PLIST_SUB+= PYTHON_PLUGIN=""
.else
CONFIGURE_ARGS+= --without-python
PLIST_SUB+= PYTHON_PLUGIN="@comment "
.endif
.if ${PORT_OPTIONS:MSQLITE}
LIB_DEPENDS+= sqlite3:${PORTSDIR}/databases/sqlite3
CONFIGURE_ARGS+= --with-sqlite3
PLIST_SUB+= SQLITE_PLUGIN=""
.else
CONFIGURE_ARGS+= --without-sqlite3
PLIST_SUB+= SQLITE_PLUGIN="@comment "
.endif
.if ${PORT_OPTIONS:MUNICODE}
CONFIGURE_ARGS+= --enable-unicode
.endif
.if ${PORT_OPTIONS:MXOSD}
LIB_DEPENDS+= xosd:${PORTSDIR}/misc/xosd
CONFIGURE_ARGS+= --with-libxosd
PLIST_SUB+= XOSD_PLUGIN=""
.else
CONFIGURE_ARGS+= --without-libxosd
PLIST_SUB+= XOSD_PLUGIN="@comment "
.endif
post-patch:
.if ${PORT_OPTIONS:MPYTHON}
@${REINPLACE_CMD} -e 's|/usr/bin/python|${PYTHON_CMD}|' \
${WRKSRC}/contrib/python/notify-bubble.py
.endif
.if ${PORT_OPTIONS:MUNICODE}
@${REINPLACE_CMD} -e 's|ncursesw/||' ${WRKSRC}/configure \
${WRKSRC}/plugins/ncurses/ecurses.h
.endif
.include <bsd.port.mk>
|