2007-05-14 18:24:26 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.6 2007/05/14 22:24:26 naddy Exp $
|
2007-03-23 13:38:22 -04:00
|
|
|
|
|
|
|
COMMENT-main= "mail and news client"
|
|
|
|
COMMENT-docs= "documentation"
|
|
|
|
COMMENT-bogofilter= "bogofilter plugin"
|
|
|
|
COMMENT-clamav= "clamav plugin"
|
|
|
|
COMMENT-dillo= "dillo plugin"
|
|
|
|
COMMENT-spamassassin= "spamassassin plugin"
|
|
|
|
|
2007-05-10 03:43:39 -04:00
|
|
|
V= 2.9.2
|
2007-04-11 16:48:43 -04:00
|
|
|
DISTNAME= claws-mail-${V}
|
2007-05-14 18:24:26 -04:00
|
|
|
PKGNAME-main= ${DISTNAME}p0
|
|
|
|
FULLPKGNAME-docs= claws-mail-docs-${V}p0
|
|
|
|
FULLPKGNAME-bogofilter= claws-mail-bogofilter-${V}p0
|
|
|
|
FULLPKGNAME-clamav= claws-mail-clamav-${V}p0
|
|
|
|
FULLPKGNAME-dillo= claws-mail-dillo-${V}p0
|
|
|
|
FULLPKGNAME-spamassassin= claws-mail-spamassassin-${V}p0
|
2007-03-23 13:38:22 -04:00
|
|
|
|
|
|
|
CATEGORIES= mail news
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.claws-mail.org/
|
|
|
|
|
|
|
|
MAINTAINER= Ulrich Kahl <ulrich.kahl@cityweb.de>
|
|
|
|
|
|
|
|
# GPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=sylpheed-claws/}
|
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
|
|
|
DIST_SUBDIR= claws
|
|
|
|
|
2007-04-11 16:48:43 -04:00
|
|
|
MULTI_PACKAGES= -main -docs -bogofilter -clamav -dillo \
|
|
|
|
-spamassassin
|
|
|
|
FLAVORS= jpilot gnomeprint compface ldap
|
2007-03-23 13:38:22 -04:00
|
|
|
FLAVOR?=
|
|
|
|
|
2007-04-20 01:42:51 -04:00
|
|
|
FLAVOR_STRING= ${FLAVOR_EXT:S/-/,/g}
|
|
|
|
SUBST_VARS= FLAVOR_STRING
|
|
|
|
|
2007-03-23 13:38:22 -04:00
|
|
|
SHARED_ONLY= Yes
|
|
|
|
RUN_DEPENDS-bogofilter= ::${BUILD_PKGPATH} \
|
2007-04-11 16:48:43 -04:00
|
|
|
::mail/bogofilter
|
2007-03-23 13:38:22 -04:00
|
|
|
RUN_DEPENDS-clamav= ::${BUILD_PKGPATH}
|
|
|
|
RUN_DEPENDS-dillo= ::${BUILD_PKGPATH} \
|
|
|
|
::www/dillo
|
2007-04-11 16:48:43 -04:00
|
|
|
RUN_DEPENDS-spamassassin=::${BUILD_PKGPATH} \
|
|
|
|
::mail/p5-Mail-SpamAssassin
|
2007-03-23 13:38:22 -04:00
|
|
|
|
2007-05-14 18:24:26 -04:00
|
|
|
WANTLIB= X11 Xau Xcursor Xdmcp Xext Xfixes Xi Xinerama Xrandr \
|
|
|
|
Xrender crypto expat fontconfig freetype m ssl z
|
2007-03-23 13:38:22 -04:00
|
|
|
|
2007-04-11 16:48:43 -04:00
|
|
|
WANTLIB-main= ${WANTLIB} ICE SM c pthread stdc++
|
2007-03-23 13:38:22 -04:00
|
|
|
|
|
|
|
WANTLIB-docs=
|
2007-05-14 18:24:26 -04:00
|
|
|
WANTLIB-clamav= ${WANTLIB} bz2 gmp idn
|
2007-03-23 13:38:22 -04:00
|
|
|
|
|
|
|
LIB_DEPENDS= atk-1.0::devel/atk \
|
|
|
|
cairo::graphics/cairo \
|
|
|
|
gdk-x11-2.0,gdk_pixbuf-2.0,gtk-x11-2.0::x11/gtk+2 \
|
|
|
|
glib-2.0,gmodule-2.0,gobject-2.0::devel/glib2 \
|
|
|
|
glitz::graphics/glitz \
|
|
|
|
pango-1.0,pangocairo-1.0,pangoft2-1.0::devel/pango \
|
|
|
|
png::graphics/png \
|
|
|
|
etpan::mail/libetpan \
|
|
|
|
sasl2::security/cyrus-sasl2
|
|
|
|
|
|
|
|
LIB_DEPENDS-main= ${LIB_DEPENDS} \
|
|
|
|
gthread-2.0::devel/glib2 \
|
2007-04-11 16:48:43 -04:00
|
|
|
startup-notification-1::devel/startup-notification \
|
|
|
|
aspell::textproc/aspell/core \
|
|
|
|
gpgme::security/gpgme \
|
|
|
|
gpg-error::security/libgpg-error
|
|
|
|
|
2007-03-23 13:38:22 -04:00
|
|
|
LIB_DEPENDS-docs=
|
2007-04-11 16:48:43 -04:00
|
|
|
PKG_ARCH-docs= *
|
|
|
|
|
|
|
|
LIB_DEPENDS-clamav= ${LIB_DEPENDS} \
|
|
|
|
clamav::security/clamav \
|
|
|
|
curl::net/curl
|
2007-03-23 13:38:22 -04:00
|
|
|
|
2007-04-11 16:48:43 -04:00
|
|
|
MODULES= devel/gettext
|
2007-03-23 13:38:22 -04:00
|
|
|
USE_X11= Yes
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
USE_LIBTOOL= Yes
|
2007-04-11 16:48:43 -04:00
|
|
|
LIBTOOL_FLAGS= --tag=disable-static
|
2007-03-23 13:38:22 -04:00
|
|
|
CONFIGURE_STYLE= gnu
|
2007-04-11 16:48:43 -04:00
|
|
|
CONFIGURE_ARGS+= --enable-aspell \
|
|
|
|
--enable-bogofilter-plugin \
|
|
|
|
--enable-clamav-plugin \
|
|
|
|
--enable-dillo-viewer-plugin \
|
|
|
|
--enable-pgpcore-plugin \
|
|
|
|
--enable-pgpmime-plugin \
|
|
|
|
--enable-pgpinline-plugin \
|
|
|
|
--enable-spamassassin-plugin
|
|
|
|
|
2007-03-23 13:38:22 -04:00
|
|
|
CONFIGURE_ENV+= OPENSSL_CFLAGS="-I/usr/include/openssl" \
|
|
|
|
OPENSSL_LIBS="-lssl -lcrypto" \
|
|
|
|
CPPFLAGS="-I${X11BASE}/include" \
|
|
|
|
LDFLAGS="-L${X11BASE}/lib"
|
|
|
|
.if ${FLAVOR:L:Mjpilot}
|
|
|
|
CONFIGURE_ARGS+= --enable-jpilot
|
|
|
|
LIB_DEPENDS-main+= pisock::comms/pilot-link
|
|
|
|
RUN_DEPENDS-main+= ::comms/jpilot
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-jpilot
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mgnomeprint}
|
|
|
|
CONFIGURE_ARGS+= --enable-gnomeprint
|
|
|
|
WANTLIB-main+= art_lgpl_2 xml2
|
|
|
|
LIB_DEPENDS-main+= gnomecanvas-2::x11/gnome/libgnomecanvas \
|
|
|
|
gnomeprint-2-2::x11/gnome/libgnomeprint \
|
|
|
|
gnomeprintui-2-2::x11/gnome/libgnomeprintui
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-gnomeprint
|
|
|
|
.endif
|
|
|
|
|
2007-04-11 16:48:43 -04:00
|
|
|
.if ${FLAVOR:L:Mcompface}
|
|
|
|
PERMIT_PACKAGE_CDROM= "No Fee"
|
|
|
|
PERMIT_DISTFILES_CDROM= "No Fee"
|
|
|
|
CONFIGURE_ARGS+= --enable-compface
|
|
|
|
LIB_DEPENDS-main+= compface.>=1::mail/faces
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-compface
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mldap}
|
|
|
|
CONFIGURE_ARGS+= --enable-ldap
|
|
|
|
WANTLIB-main+= asn1 com_err gssapi krb5
|
|
|
|
LIB_DEPENDS-main+= lber,ldap:openldap-client-*:databases/openldap
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-ldap
|
|
|
|
.endif
|
|
|
|
|
|
|
|
TOOLS= OOo2claws-mail.pl \
|
|
|
|
acroread2claws-mail.pl \
|
|
|
|
calypso_convert.pl \
|
|
|
|
convert_mbox.pl \
|
|
|
|
eud2gc.py \
|
|
|
|
filter_conv.pl filter_conv_new.pl \
|
|
|
|
fix_date.sh \
|
|
|
|
freshmeat_search.pl \
|
|
|
|
gif2xface.pl \
|
|
|
|
google_msgid.pl google_search.pl \
|
|
|
|
kmail2claws-mail.pl kmail2claws-mail_v2.pl \
|
|
|
|
kmail-mailbox2claws-mail.pl \
|
|
|
|
multiwebsearch.pl \
|
|
|
|
nautilus2claws-mail.sh \
|
|
|
|
outlook2claws-mail.pl \
|
|
|
|
sylprint.pl sylprint.rc \
|
|
|
|
tb2claws-mail tbird2claws.py \
|
|
|
|
textviewer.pl textviewer.sh \
|
|
|
|
thunderbird-filters-convertor.pl \
|
|
|
|
update-po \
|
|
|
|
uudec uuooffice \
|
|
|
|
vcard2xml.py \
|
|
|
|
README README.sylprint \
|
|
|
|
kdeservicemenu/install.sh kdeservicemenu/claws-mail-kdeservicemenu.pl \
|
|
|
|
kdeservicemenu/README
|
2007-03-23 13:38:22 -04:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/applications
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/claws-mail.desktop ${PREFIX}/share/applications/claws-mail.desktop
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/icons/hicolor/48x48/apps
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/claws-mail.png ${PREFIX}/share/icons/hicolor/48x48/apps/claws-mail.png
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/icons/hicolor/64x64/apps
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/claws-mail-64x64.png ${PREFIX}/share/icons/hicolor/64x64/apps/claws-mail.png
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/icons/hicolor/128x128/apps
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/claws-mail-128x128.png ${PREFIX}/share/icons/hicolor/128x128/apps/claws-mail.png
|
2007-04-11 16:48:43 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/claws-mail/tools/kdeservicemenu
|
|
|
|
.for i in ${TOOLS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/tools/${i} \
|
|
|
|
${PREFIX}/share/claws-mail/tools/${i}
|
|
|
|
.endfor
|
2007-03-23 13:38:22 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|