1 SRC_URI = "http://www.mbedthis.com/software/appWeb-${PV}.LINUX-i386.self.tar.gz"
2 SRC_URI_EXTRA = 'file://${WORKDIR}/appWeb-src-${PV}-12.tar.gz \
3 file://${FILESDIR}/charsignedness.patch;patch=1 \
4 file://${FILESDIR}/makerules.patch;patch=1'
5 S = "${WORKDIR}/appWeb-${PV}"
8 oe.build.exec_func('base_do_unpack', d)
9 src_uri = oe.data.getVar('SRC_URI', d)
10 oe.data.setVar('SRC_URI', '${SRC_URI_EXTRA}', d)
11 oe.build.exec_func('base_do_unpack', d)
12 oe.data.setVar('SRC_URI', src_uri, d)
13 oe.build.exec_func('do_unpack_cleanup', d)
16 do_unpack_cleanup () {
20 rm -f README.HTML install remove
25 oe.build.exec_func('base_do_patch', d)
26 src_uri = oe.data.getVar('SRC_URI', d)
27 oe.data.setVar('SRC_URI', '${SRC_URI_EXTRA}', d)
28 oe.build.exec_func('base_do_patch', d)
29 oe.data.setVar('SRC_URI', src_uri, d)
37 # --enable-fast-malloc
38 # --enable-goahead-compat
39 # --enable-if-modified
42 # --enable-run-as-service
43 # --enable-safe-strings
48 APPWEB_TARGET = ${TARGET_ARCH}
49 APPWEB_OS = ${TARGET_OS}
50 APPWEB_OS_linux = LINUX
51 EXTRA_OECONF = '--os ${APPWEB_OS} --target ${APPWEB_TARGET} \
53 --enable-multi-thread \
57 --enable-digest-auth \
59 EXTRA_OEMAKE = "'CC=${CC}' 'AR=${AR}' 'CPP=${CXX}' 'LD=${CC}'"
61 export LD_LIBRARY_PATH=${S}/lib:${LD_LIBRARY_PATH}
63 ./configure ${EXTRA_OECONF}
76 install -d ${D}/${sbindir} ${D}/${sysconfdir}/appWeb/lib \
77 ${D}/${libexecdir}/appWeb ${D}/${libdir}
78 install -m 0755 appWeb/appWeb ${D}/${sbindir}/
79 install -m 0644 appWeb/appWeb.conf ${D}/${sysconfdir}/appWeb/
80 install -m 0755 bin/${APPWEB_OS}/* ${D}/${libexecdir}/appWeb/
81 install -m 0755 lib/lib*.so* ${D}/${sysconfdir}/appWeb/lib/