summaryrefslogtreecommitdiff
path: root/recipes/xmltv/xmltv_0.5.56.bb
blob: 2e6b3172680b38f01d9f579b8c9657d4599b673a (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
DESCRIPTION="xmltv; epg grabbers for e.g. mythtv"

PARALLEL_MAKE = ""
SRC_URI="http://downloads.sourceforge.net/xmltv/xmltv-${PV}.tar.bz2 \
         file://Makefile.PL.patch;patch=1"

RDEPENDS = "perl \
            libarchive-zip-perl \
            libdate-manip-perl \
            libdatetime-format-strptime-perl \
            libfile-slurp-perl \
            libhtml-parser-perl \
            libhtml-treebuilder-perl \
	    libhttp-cache-transparent-perl \
            libio-stringy-perl libxml-dom-perl \
            libio-zlib-perl \
	    liblingua-en-numbers-ordinate \
	    liblinux-dvb-perl \
            libsoap-lite-perl \
            libterm-progressbar-perl \
            libtermreadkey-perl \
            libtimedate-perl \
	    libunicode-string-perl \
	    libunicode-utf8simple-perl \
            libwww-mechanize-perl \
            libwww-perl \
            libxml-parser-perl \
            libxml-twig-perl \
            libxml-writer-perl \
            perl-module-exporter-heavy \
            perl-module-file-glob \
            perl-module-getopt-long \
            "

DEPENDS = "perl \
           libarchive-zip-perl-native \
           libdate-manip-perl-native \
           libdatetime-format-strptime-perl-native \
           libfile-slurp-perl-native \
           libhtml-parser-perl-native \
           libhtml-treebuilder-perl-native \
	   libhttp-cache-transparent-perl-native \
           libio-stringy-perl-native \
           libio-zlib-perl-native \
	   liblingua-en-numbers-ordinate-native \
	   liblinux-dvb-perl-native \
           libsoap-lite-perl-native \
           libterm-progressbar-perl-native \
           libtermreadkey-perl-native \
           libtimedate-perl-native \
	   libunicode-string-perl-native \
	   libunicode-utf8simple-perl-native \
           libwww-mechanize-perl-native \
           libwww-perl-native \
           libxml-dom-perl-native \
           libxml-parser-perl-native \
           libxml-twig-perl-native \
           libxml-writer-perl-native \
           "

PR = "r4"

# cpan does not work, it installs things in the perl work dir iso the xmltv work dir
# root cause are bad definitions in perl/config.sh, but I don't know what they should be
# so for now commented out the cpan stuff and do the work myself.
#EXTRA_CPANFLAGS = "EXPATLIBPATH=${STAGING_LIBDIR} EXPATINCPATH=${STAGING_INCDIR}"

#inherit cpan

FILES_${PN} += "${libdir}"

do_configure() {
        perl Makefile.PL PREFIX=/usr
        sed -i -e 's,$(FIXIN),echo,g' \
               -e 's,^FIXIN.*,,g' Makefile
}


do_install() {
	oe_runmake install DESTDIR=${D}
}

SRC_URI[md5sum] = "308c01dc50f9f138bd9ada7483e2877b"
SRC_URI[sha256sum] = "9159dc21418f611b37520bf71f32a0ca3b44cc490bb9620e9a1a812315685d1c"