1 DEPENDS = "virtual/libc"
2 DESCRIPTION = "AppWeb is an embedded HTTP Web server that has been designed with security in mind."
3 SRC_URI = "http://www.mbedthis.com/software/appWeb-${PV}.LINUX-i386.self.tar.gz"
4 SRC_URI_EXTRA = 'file://${WORKDIR}/appWeb-src-${PV}-12.tar.gz \
5 file://charsignedness.patch;patch=1 \
6 file://makerules.patch;patch=1'
7 S = "${WORKDIR}/appWeb-${PV}"
10 oe.build.exec_func('base_do_unpack', d)
11 src_uri = oe.data.getVar('SRC_URI', d)
12 oe.data.setVar('SRC_URI', '${SRC_URI_EXTRA}', d)
13 oe.build.exec_func('base_do_unpack', d)
14 oe.data.setVar('SRC_URI', src_uri, d)
15 oe.build.exec_func('do_unpack_cleanup', d)
18 do_unpack_cleanup () {
22 rm -f README.HTML install remove
27 oe.build.exec_func('base_do_patch', d)
28 src_uri = oe.data.getVar('SRC_URI', d)
29 oe.data.setVar('SRC_URI', '${SRC_URI_EXTRA}', d)
30 oe.build.exec_func('base_do_patch', d)
31 oe.data.setVar('SRC_URI', src_uri, d)
39 # --enable-fast-malloc
40 # --enable-goahead-compat
41 # --enable-if-modified
44 # --enable-run-as-service
45 # --enable-safe-strings
50 APPWEB_TARGET = "${TARGET_ARCH}"
51 APPWEB_OS = "${TARGET_OS}"
52 APPWEB_OS_linux = "LINUX"
53 EXTRA_OECONF = "--os ${APPWEB_OS} --target ${APPWEB_TARGET} \
55 --enable-multi-thread \
59 --enable-digest-auth \
61 EXTRA_OEMAKE = "'CC=${CC}' 'AR=${AR}' 'CPP=${CXX}' 'LD=${CC}'"
63 LD_LIBRARY_PATH_prepend = "${S}/lib:"
64 LD_LIBRARY_PATH[export] = "1"
66 ./configure ${EXTRA_OECONF}
79 install -d ${D}/${sbindir} ${D}/${sysconfdir}/appWeb/lib \
80 ${D}/${libexecdir}/appWeb ${D}/${libdir}
81 install -m 0755 appWeb/appWeb ${D}/${sbindir}/
82 install -m 0644 appWeb/appWeb.conf ${D}/${sysconfdir}/appWeb/
83 install -m 0755 bin/${APPWEB_OS}/* ${D}/${libexecdir}/appWeb/
84 install -m 0755 lib/lib*.so* ${D}/${sysconfdir}/appWeb/lib/