dvbapp : TranscodingSetup update
[vuplus_openembedded] / recipes / abiword / abiword-2.5.inc
1 DESCRIPTION = "AbiWord is free word processing program similar to Microsoft(r) Word"
2 HOMEPAGE = "http://www.abiword.org""
3 SECTION = "x11/office"
4 LICENSE = "GPLv2"
5 DEPENDS     = "asio goffice perl-native wv libgsf libgnomeprint libgnomeprintui libglade libfribidi enchant jpeg libpng libxml2"
6 RDEPENDS    = "enchant glibc-gconv-ibm850 glibc-gconv-cp1252 \
7                glibc-gconv-iso8859-15 glibc-gconv-iso8859-1"
8
9 SRC_URI = "http://www.abiword.org/downloads/abiword/${PV}/source/abiword-${PV}.tar.gz"
10
11 #want 2.x from 2.x.y for the installation directory
12 SHRT_VER = "${@bb.data.getVar('PV',d,1).split('.')[0]}.${@bb.data.getVar('PV',d,1).split('.')[1]}"
13
14 FILES_${PN} += " \
15                 ${datadir}/icons/* \
16                 ${datadir}/abiword-${SHRT_VER}/glade \
17                 ${datadir}/abiword-${SHRT_VER}/scripts \
18                 ${datadir}/abiword-${SHRT_VER}/system.profile-en \
19                 ${datadir}/abiword-${SHRT_VER}/system.profile-en_GB \
20 #               ${datadir}/abiword-${SHRT_VER}/templates/A4.awt \
21 #               ${datadir}/abiword-${SHRT_VER}/templates/US-Letter.awt \
22                 ${datadir}/abiword-${SHRT_VER}/templates/normal.awt \
23                 ${datadir}/abiword-${SHRT_VER}/templates/normal.awt-en_GB \
24                 ${datadir}/abiword-${SHRT_VER}/templates/Employee-Directory.awt \
25                 ${datadir}/abiword-${SHRT_VER}/templates/Business-Report.awt \
26                 ${datadir}/abiword-${SHRT_VER}/templates/Fax-Coversheet.awt \
27                 ${datadir}/abiword-${SHRT_VER}/templates/Resume.awt \
28                 ${datadir}/abiword-${SHRT_VER}/templates/Two-Columns.awt \
29                 ${datadir}/abiword-${SHRT_VER}/templates/Memo.awt \
30                 ${datadir}/abiword-${SHRT_VER}/templates/Press-Release.awt "
31
32 inherit autotools gtk-icon-cache pkgconfig mime
33
34 PARALLEL_MAKE = ""
35
36 EXTRA_OECONF = " --disable-pspell \
37                  --enable-enchant \
38                  --with-sys-wv"
39
40 # AbiWord configure.ac does not play nicely with autoreconf
41 # so use the autogen.sh script that comes with AbiWord
42 #
43 do_configure() {
44         cd ${S}
45         export NOCONFIGURE="no"; ./autogen.sh
46         oe_runconf
47 }
48
49
50 do_install_append() {
51         install -d ${D}${datadir}/pixmaps/
52         mv ${D}${datadir}/icons/* ${D}${datadir}/pixmaps/
53 }
54
55 PACKAGES += " abiword-clipart abiword-icons abiword-strings abiword-systemprofiles abiword-templates "
56
57 ALLOW_EMPTY_abiword-clipart = "1"
58 ALLOW_EMPTY_abiword-icons = "1"
59
60 FILES_abiword-clipart           += "${datadir}/abiword-${SHRT_VER}/clipart"
61 FILES_abiword-icons             += "${datadir}/abiword-${SHRT_VER}/icons"
62 FILES_abiword-strings           += "${datadir}/abiword-${SHRT_VER}/AbiWord/strings"
63 FILES_abiword-systemprofiles    += "${datadir}/abiword-${SHRT_VER}/AbiWord/system.profile*"
64 FILES_abiword-templates         += "${datadir}/abiword-${SHRT_VER}/templates"