blob: 35209d1be70198cdc5d9f3a02c6624a3fabfd18a (
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
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
|
# New ports collection makefile for: sylpheed-claws
# Date created: 3 January 2002
# Whom: Simon 'corecode' Schubert <corecode@corecode.ath.cx>
#
# $FreeBSD$
#
PORTNAME= sylpheed-claws
PORTVERSION= 1.0.4a
#PORTREVISION= 1
CATEGORIES= mail news ipv6
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= sylpheed-claws
#DISTNAME= sylpheed-${PORTVERSION}claws
DISTFILES= ${EXTRACT_ONLY} \
${THEMEFILE}
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
RUN_DEPENDS= ${LOCALBASE}/etc/mime.types:${PORTSDIR}/misc/mime-support
MAINTAINER= netchild@FreeBSD.org
COMMENT= A lightweight and very featureful GTK+ based e-mail and news client
THEMEVERSION= 20040929
THEMEFILE= sylpheed-iconset-${THEMEVERSION}.tar.gz
USE_BZIP2= yes
USE_GETTEXT= yes
USE_GMAKE= yes
USE_ICONV= yes
USE_X_PREFIX= yes
USE_LIBTOOL_VER=15
USE_GNOME= gnomehack pkgconfig gtk12
USE_REINPLACE= yes
WANT_GNOME= yes
MAN1= sylpheed-claws.1
.if defined(NOPORTDOCS)
EXTRA_PATCHES= ${FILESDIR}/extra-doc:Makefile.in
.endif
.if !defined(WITHOUT_SSL)
USE_OPENSSL= yes
CONFIGURE_ARGS= --enable-openssl --with-openssl-includes=${OPENSSLINC} \
--with-openssl-libs=${OPENSSLLIB}
.endif
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_SSL)
.if defined(OPENSSLVER)
MYSSLVER=${OPENSSLVER}
.else
MYSSLVER!=openssl version | cut -d ' ' -f 2
.endif
SSLTEST!=test ${MYSSLVER} \< 0.9.7 && ${ECHO_CMD} bad || ${TRUE}
. if ${SSLTEST} == "bad"
IGNORE=You need at least OpenSSL v0.9.7
. endif
.endif
.if ${HAVE_GNOME:Mgnomehier} != ""
PLIST_SUB+= GNOME=""
.else
PLIST_SUB+= GNOME="@comment "
.endif
CONFIGURE_ARGS+= --program-suffix="-claws" --enable-ipv6
CONFIGURE_ENV= CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}" CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
LIBS="-L${X11BASE}/lib -L${LOCALBASE}/lib ${PTHREAD_LIBS}"
.if exists(${LOCALBASE}/include/clamav.h)
WITH_CLAMAV= yes
.endif
.if defined(WITH_CLAMAV) || defined(WITH_ALL)
PLIST_SUB+= CLAM_PLUG=""
BUILD_DEPENDS= ${LOCALBASE}/sbin/clamd:${PORTSDIR}/security/clamav
.else
CONFIGURE_ARGS+= --disable-clamav
PLIST_SUB+= CLAM_PLUG="@comment "
.endif
.if defined(WITH_PIXBUF) || defined(WITH_ALL)
USE_GNOME+= gdkpixbuf
CONFIGURE_ARGS+= --disable-imlib
.else
USE_GNOME+= imlib
CONFIGURE_ARGS+= --disable-gdk-pixbuf
.endif
.if defined(WITH_COMPFACE) || defined(WITH_ALL)
LIB_DEPENDS+= compface.1:${PORTSDIR}/mail/faces
CONFIGURE_ARGS+= --enable-compface
.else
CONFIGURE_ARGS+= --disable-compface
.endif
.if defined(WITH_JCONV) || defined(WITH_ALL)
LIB_DEPENDS+= jconv.0:${PORTSDIR}/japanese/libjconv
.else
CONFIGURE_ARGS+= --disable-jconv
.endif
.if defined(WITH_ASPELL) || defined(WITH_ALL)
LIB_DEPENDS+= pspell.16:${PORTSDIR}/textproc/aspell
CONFIGURE_ARGS+= --enable-aspell
.endif
.if defined(WITH_JPILOT) || defined(WITH_ALL)
LIB_DEPENDS+= pisock.8:${PORTSDIR}/palm/pilot-link
RUN_DEPENDS+= jpilot:${PORTSDIR}/palm/jpilot
CONFIGURE_ARGS+= --enable-jpilot
.else
CONFIGURE_ARGS+= --disable-jpilot
.endif
.if defined(WITH_LDAP) || defined(WITH_ALL)
USE_OPENLDAP= yes
CONFIGURE_ARGS+= --enable-ldap
.endif
.if defined(WITH_SA_PLUG) || defined(WITH_ALL)
RUN_DEPENDS+= spamd:${PORTSDIR}/mail/p5-Mail-SpamAssassin
CONFIGURE_ARGS+= --enable-spamassassin-plugin
PLIST_SUB+= SA_PLUG=""
.else
PLIST_SUB+= SA_PLUG="@comment "
.endif
.if defined(WITH_GPGME) || defined(WITH_ALL)
PLIST_SUB+= GPGME=""
LIB_DEPENDS+= gpgme03.9:${PORTSDIR}/security/gpgme03
RUN_DEPENDS+= gpg:${PORTSDIR}/security/gnupg
.else
PLIST_SUB+= GPGME="@comment "
CONFIGURE_ARGS+= --disable-pgpmime-plugin
.endif
.if defined(WITHOUT_THEMES)
PLIST_SUB+= THEMES="@comment "
.else
PLIST_SUB+= THEMES=""
.endif
.if defined(WITHOUT_IMAGE)
PLIST_SUB+= IMAGE="@comment "
CONFIGURE_ARGS+= --disable-image-viewer-plugin
.else
PLIST_SUB+= IMAGE=""
.endif
pre-everything::
@${ECHO} ""
@${ECHO} "You may define the following build options:"
@${ECHO} ""
@${ECHO} " WITH_ALL Enable all options below"
@${ECHO} ""
@${ECHO} " WITH_PIXBUF Enable GDK Pixbuf support"
@${ECHO} " WITH_COMPFACE Enable compface (X-Face) support"
@${ECHO} " WITH_GPGME Build the pgpmime plugin"
@${ECHO} " WITH_JCONV Enable enhanced charset conversion"
@${ECHO} " WITH_ASPELL Enable spell-checking support"
@${ECHO} " WITH_JPILOT Enable JPilot support"
@${ECHO} " WITH_LDAP Enable LDAP access support"
@${ECHO} " WITH_SA_PLUG Build Spamassassin plugin"
@${ECHO} " WITH_CLAMAV Build Clamav antivirus plugin"
@${ECHO} ""
@${ECHO} " WITHOUT_SSL Disable OpenSSL support"
@${ECHO} " WITHOUT_IMAGE Disable internal image viewer"
@${ECHO} " WITHOUT_THEMES Don't install additional themes"
@${ECHO} ""
post-extract:
.if !defined(WITHOUT_THEMES)
@${MKDIR} ${WRKSRC}/themes
@cd ${WRKDIR} && ${GZIP_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/${THEMEFILE} ${EXTRACT_AFTER_ARGS}
.endif
post-patch:
@${REINPLACE_CMD} -e \
's|-lresolv||g; s|-lpisock\"|-liconv &|g ;\
s|gpgme-config|gpgme03-config|' ${WRKSRC}/configure
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" \
${WRKSRC}/tools/README.sylprint ${WRKSRC}/tools/sylprint.pl
@${REINPLACE_CMD} -e "s|po intl src|po src| ; s:@SYLPHEED_GNOME:#@SYLPHEED_GNOME:g" ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's:%%OPENSSL_LIBS%%:"-lssl -lcrypto":g' ${WRKSRC}/configure
@for f in `${FIND} ${WRKSRC}/tools -type f -print`; do \
${REINPLACE_CMD} -e "s|/usr/bin/perl|${PERL}|" $$f; done
# @${LN} -s ${WRKSRC}/po/sylpheed.pot ${WRKSRC}/po/${PORTNAME}.pot
.if defined(NOPORTDOCS)
@${REINPLACE_CMD} -e 's|src manual faq tools|src tools|' ${WRKSRC}/Makefile.in
.endif
post-install:
.if !defined(NOPORTDOCS)
.for i in NEWS README README.claws RELEASE_NOTES.claws TODO tools/README.sylprint
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
@${INSTALL_DATA} ${WRKSRC}/tools/README ${DOCSDIR}/README.tools
.endif
@${MKDIR} ${DATADIR}
@cd ${WRKSRC}/tools && \
${INSTALL_SCRIPT} OOo2sylpheed.pl acroread2sylpheed.pl \
calypso_convert.pl convert_mbox.pl eud2gc.py filter_conv.pl \
freshmeat_search.pl gif2xface.pl google_msgid.pl \
google_search.pl gpg-sign-syl kmail2sylpheed.pl \
kmail2sylpheed_v2.pl maildir2sylpheed.pl multiwebsearch.conf \
multiwebsearch.pl nautilus2sylpheed.sh outlook2sylpheed.pl \
tb2sylpheed textviewer.sh update-po uudec vcard2xml.py \
${DATADIR}
.if ${HAVE_GNOME:Mgnomehier} != ""
@${MKDIR} ${PREFIX}/share/gnome/applications
@${INSTALL_DATA} ${WRKSRC}/sylpheed.desktop ${PREFIX}/share/gnome/applications/sylpheed-claws.desktop
.endif
.if !defined(WITHOUT_THEMES)
@${MKDIR} ${DATADIR}/themes
@cd ${WRKDIR}/${THEMEFILE:C/.tar.gz//} && ${FIND} . -print | \
${GREP} -vE '(xvpics|.directory)' | \
${CPIO} -pdu -R ${BINOWN}:${BINGRP} --quiet ${DATADIR}/themes/
@${CHMOD} -R a+r ${DATADIR}/themes
@${FIND} ${DATADIR}/themes -type d -print0 | ${XARGS} -0 ${CHMOD} a+x
.endif
@${INSTALL_SCRIPT} ${WRKSRC}/tools/sylpheed-switcher ${PREFIX}/bin
@${INSTALL_SCRIPT} ${WRKSRC}/tools/sylprint.pl ${PREFIX}/bin
@${INSTALL_DATA} ${WRKSRC}/tools/sylprint.rc ${PREFIX}/etc/sylprint.rc.example
@${MKDIR} ${PREFIX}/share/pixmaps
@${INSTALL_DATA} ${WRKSRC}/sylpheed.png ${PREFIX}/share/pixmaps/sylpheed-claws.png
.include <bsd.port.post.mk>
|