summaryrefslogtreecommitdiff
path: root/meta/packages/claws-mail/claws-mail.inc
blob: 698f632fbd339081a92e3ee6067fb826c6aaeb6b (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
SECTION = "x11/network"
DESCRIPTION = "Mail user agent"
#DEPENDS = "gtk+ gpgme libetpan libgnomeprint aspell openssl"
DEPENDS = "gtk+ libetpan openssl libowl"
LICENSE = "GPL"
PR = "r3"

SRC_URI = "\
	${SOURCEFORGE_MIRROR}/sylpheed-claws/claws-mail-${PV}.tar.bz2	\
	file://desktop.patch;patch=1				\
	file://streamline-ui.patch;patch=1				\
	file://owl-window-menu.patch;patch=1				\
	"

FILES_${PN} = "${bindir} ${datadir}/pixmaps ${datadir}/applications"

#EXTRA_OECONF = "--disable-aspell-test \
# --disable-dillo-viewer-plugin --with-aspell-prefix=${STAGING_DIR}/${HOST_SYS} \
# --enable-aspell"

EXTRA_OECONF = "--disable-aspell-test 		\
		--disable-aspell 		\
		--disable-manual		\
#  		--disable-openssl 		\
		--disable-crash-dialog		\
		--disable-jpilot		\
		--disable-trayicon-plugin	\
		--disable-spamassassin-plugin	\
		--disable-bogofilter-plugin	\
		--disable-pgpcore-plugin	\
		--disable-pgpmime-plugin	\
		--disable-pgpinline-plugin	\
  		--disable-dillo-viewer-plugin	\
		--disable-clamav-plugin		\
#		--disable-libetpan		\
		--disable-gnomeprint		\
		--disable-valgrind		\
		"

CFLAGS += "-D_GNU_SOURCE"

inherit autotools pkgconfig


do_configure() {
	gnu-configize
	libtoolize --force
	oe_runconf
}

do_install_append() {
	install -d ${D}${datadir}/applications
	install -m 0644 claws-mail.desktop ${D}${datadir}/applications/
	install -d ${D}${datadir}/pixmaps
	install -m 0644 claws-mail.png ${D}${datadir}/pixmaps/
	mv ${D}${bindir}/${TARGET_SYS}-claws-mail ${D}${bindir}/${PN}
}

do_stage () {
	autotools_stage_all
}

#python populate_packages_prepend () {
#	abiword_libdir = bb.data.expand('${libdir}/claws-mail/plugins', d)
#
#	do_split_packages(d, abiword_libdir, '^(.*)\.so$', 'claws-mail-plugin-%s', 'Claws plugin for %s', extra_depends='')
#}