First pass of .oe cleanups.
[openembedded.git] / appweb / appweb_1.0.0.oe
1 SRC_URI = "http://www.mbedthis.com/software/appWeb-${PV}.LINUX-i386.self.tar.gz" 
2 SRC_URI_EXTRA = 'file://${WORKDIR}/appWeb-src-${PV}-5.tar.gz \
3                  file://${FILESDIR}/charsignedness.patch;patch=1 \
4                  file://${FILESDIR}/makerules.patch;patch=1'
5 S = "${WORKDIR}/appWeb-${PV}"
6
7 python do_unpack () {
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)
14 }
15
16 do_unpack_cleanup () {
17         (
18                 set -e
19                 cd ${WORKDIR}
20                 rm -f README.HTML install remove
21         )
22 }
23
24 python do_patch () {
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)
30 }
31 #       --enable-access-log
32 #       --enable-admin
33 #       --enable-all-static
34 #       --enable-assert
35 #       --enable-c-api
36 #       --enable-dll
37 #       --enable-fast-malloc
38 #       --enable-goahead-compat
39 #       --enable-if-modified
40 #       --enable-log
41 #       --enable-rom-fs
42 #       --enable-run-as-service
43 #       --enable-safe-strings
44 #       --enable-squeeze
45 #       --enable-ssl
46 #       --enable-session
47
48 APPWEB_TARGET = ${TARGET_ARCH}
49 APPWEB_OS = ${TARGET_OS}
50 APPWEB_OS_linux = LINUX
51 EXTRA_OECONF = '--os ${APPWEB_OS} --target ${APPWEB_TARGET} \
52                 --enable-keep-alive \
53                 --enable-multi-thread \
54                 --enable-cgi \
55                 --enable-cookie \
56                 --enable-config \
57                 --enable-digest-auth \
58                 --disable-ssl'
59 EXTRA_OEMAKE = "'CC=${CC}' 'AR=${AR}' 'CPP=${CXX}' 'LD=${CC}'"
60
61 export LD_LIBRARY_PATH=${S}/lib:${LD_LIBRARY_PATH}
62 do_configure () {
63         ./configure ${EXTRA_OECONF}
64 }
65
66 do_compile () {
67         oe_runmake build
68         oe_runmake compile
69 }
70
71 do_stage () {
72         :
73 }
74
75 do_install () {
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/
82 }