dvdauthor: fix configure, inherit gettext and pkgconfig, depend on imagemagick
[opendreambox.git] / meta-opendreambox / recipes-extended / lighttpd / lighttpd_1.4.35.bbappend
1 DEPENDS = ""
2
3 SRC_URI += "file://configure.ac-force-enable-sendfile-when-cross-compiling.patch \
4             file://stat_cache-fix-reading-block-devices.patch \
5             file://include-conf-enabled.sh.in \
6             file://lighttpd.conf.in"
7
8 EXTRA_OECONF = ""
9
10 PACKAGECONFIG ?= "pcre zlib \
11     ${@base_contains('DISTRO_FEATURES', 'ipv6', 'ipv6', '', d)} \
12     ${@base_contains('DISTRO_FEATURES', 'largefile', 'lfs', '', d)} \
13     ${@base_contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)} \
14 "
15 PACKAGECONFIG[lfs] = "--enable-lfs,--disable-lfs"
16 PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6"
17 PACKAGECONFIG[mmap] = "--enable-mmap,--disable-mmap"
18 PACKAGECONFIG[libev] = "--with-libev,--without-libev,libev"
19 PACKAGECONFIG[mysql] = "--with-mysql,--without-mysql,mariadb"
20 PACKAGECONFIG[ldap] = "--with-ldap,--without-ldap,openldap"
21 PACKAGECONFIG[attr] = "--with-attr,--without-attr,attr"
22 PACKAGECONFIG[valgrind] = "--with-valgrind,--without-valgrind,valgrind"
23 PACKAGECONFIG[openssl] = "--with-openssl,--without-openssl,openssl"
24 PACKAGECONFIG[kerberos5] = "--with-kerberos5,--without-kerberos5"
25 PACKAGECONFIG[pcre] = "--with-pcre,--without-pcre,libpcre"
26 PACKAGECONFIG[zlib] = "--with-zlib,--without-zlib,zlib"
27 PACKAGECONFIG[bzip2] = "--with-bzip2,--without-bzip2,bzip2"
28 PACKAGECONFIG[fam] = "--with-fam,--without-fam,gamin"
29 PACKAGECONFIG[webdav-props] = "--with-webdav-props,--without-webdav-props,libxml2 sqlite3"
30 PACKAGECONFIG[webdav-locks] = "--with-webdav-locks,--without-webdav-locks,util-linux"
31 PACKAGECONFIG[gdbm] = "--with-gdbm,--without-gdbm,gdbm"
32 PACKAGECONFIG[memcache] = "--with-memcache,--without-memcache,memcached"
33 PACKAGECONFIG[lua] = "--with-lua,--without-lua,lua5.1"
34
35 SED = "sed -e 's,@localstatedir@,${localstatedir},g' \
36            -e 's,@pkgdatadir@,${datadir}/${PN},g' \
37            -e 's,@pkgsysconfdir@,${sysconfdir}/${PN},g'"
38
39 do_install_prepend() {
40         sed -e 's,/etc/lighttpd\.conf,${sysconfdir}/${PN}/lighttpd.conf,g' -i ${WORKDIR}/lighttpd
41         sed -e 's,@SYSCONFDIR@/lighttpd\.conf,${sysconfdir}/${PN}/lighttpd.conf,g' -i ${WORKDIR}/lighttpd.service
42 }
43 do_install_append() {
44         rm -r ${D}${sysconfdir}/lighttpd.d ${D}/www
45         rm ${D}${sysconfdir}/lighttpd.conf
46
47         install -d ${D}${sysconfdir}/${PN}
48         ${SED} < ${WORKDIR}/lighttpd.conf.in > ${D}${sysconfdir}/${PN}/lighttpd.conf
49         chmod 644 ${D}${sysconfdir}/${PN}/lighttpd.conf
50
51         install -d ${D}${datadir}/${PN}
52         ${SED} < ${WORKDIR}/include-conf-enabled.sh.in > ${D}${datadir}/${PN}/include-conf-enabled.sh
53         chmod 755 ${D}${datadir}/${PN}/include-conf-enabled.sh
54
55         install -d ${D}${sysconfdir}/${PN}/conf-enabled
56 }
57
58 RDEPENDS_${PN} = "lighttpd-module-dirlisting \
59                   lighttpd-module-indexfile \
60                   lighttpd-module-staticfile"
61
62 RRECOMMENDS_${PN} = "lighttpd-module-access \
63                      lighttpd-module-accesslog"
64
65 FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:"