6061088a5b56925c47ebb9fb40873875e8a99547
[vuplus_openembedded] / appweb / appweb_1.2.0.oe
1 DESCRIPTION = "AppWeb is an embedded HTTP Web server that has been designed with security in mind."
2 SECTION = "console/network"
3 LICENSE="GPL"
4 SRC_URI = "http://www.mbedthis.com/software/appWeb-src-1.2.0-1.tar.gz \
5            file://makerules.patch;patch=1 \
6            file://nonrootinstall.patch;patch=1"
7 S = "${WORKDIR}/appWeb-1.2.0"
8
9 APPWEB_HOST = "${HOST_SYS}"
10 APPWEB_BUILD = "${BUILD_SYS}"
11 #  --buildNumber=NUMBER     Set the build number part of the version (1.0.0.X).
12 #  --name=NAME              Set the full product name (BLD_NAME define).
13 #  --port=PORT              Set the default HTTP port to use for the product.
14 #  --product=NAME           Set the one word (no spaces) name of the product.
15 #  --setLibVersion=X.X.X    Set the shared library version number.
16 #  --setVersion=X.X.X       Set the product version number.
17 #  --sslPort=PORT           Set the default SSL port to use for the product.
18 #  --type=BUILD             Set the build type (DEBUG|RELEASE).
19 #
20 #  --enable-access-log      Enable logging of requests to the AppWeb access log.
21 #  --enable-assert          Build with assert checking.
22 #  --enable-config          Build with the ability to parse Apache-style config
23 #  --enable-cookie          Build with cookie handling support.
24 #  --enable-digest-auth     Build with digest authentication support.
25 #  --enable-fast-malloc     Build with the Mbedthis fast malloc.
26 #  --enable-if-modified     Build with HTTP If-Modified checking.
27 #  --enable-keep-alive      Build with HTTP Keep-Alive support.
28 #  --enable-log             Build with the AppWeb trace log facility.
29 #  --enable-modules         Build with the dynamically loaded modules capability.
30 #  --enable-multi-thread    Build AppWeb multi-threaded.
31 #  --disable-multi-thread   Build AppWeb single threaded.
32 #  --enable-rom-fs          Build with the ability to load web pages from ROM.
33 #  --enable-run-as-service  Build with the ability to run as a service/daemon.
34 #  --disable-run-as-service Do not include the ability to run as a service.
35 #  --enable-safe-strings    Enforce safe string handling.
36 #  --enable-session         Build with HTTP session support.
37 #  --enable-shared          Build an appWeb shared library and program. [default]
38 #  --enable-shared-libc     Link with the shared versions of libc.
39 #  --disable-shared-libc    Link with the static versions of libc.
40 #  --enable-squeeze         Build in squeeze mode for minimal memory footprint.
41 #  --disable-squeeze        Build for speed.
42 #  --enable-static          Build a static appWeb library and program. [default]
43 #  --disable-static         Do not build a static appWeb library and program.
44 #
45 #  --with-admin             Include the admin handler.
46 #  --with-auth              Include the authorization handler.
47 #  --with-c_api             Include the C API.
48 #  --with-cgi               Include the CGI handler.
49 #  --with-gacompat          Include GoAhead WebServer API compatibility.
50 #  --with-copy              Build support for the copy handler.
51 #  --with-egi               Include the EGI handler.
52 #  --with-esp               Include the ESP handler.
53 #  --with-ssl               Build support for the SSL protocol.
54 #  --with-upload            Build with the file upload handler
55 #  --with-xdb               Build with XDB 
56 #  Supported PACKAGE names: openssl, php4, php5
57 #  --with-PACKAGE=[builtin|, module]       
58 #                           Include support for the PACKAGE. Link into appWeb 
59 #                           statically and/or build as a module
60 #  --with-PACKAGE-dir=DIR   Set the source directory of the package
61 #  --with-PACKAGE-libs=libs Set a list of libraries to use when linking with
62 #                             the PACKAGE
63 #  --without-PACKAGE        Do not include support for the PACKAGE
64 EXTRA_OECONF = "--prefix=${prefix} \
65                 --docDir=${datadir}/doc/${P} \
66                 --incDir=${includedir} \
67                 --libDir=${libdir} \
68                 --sbinDir=${sbindir} \
69                 --webDir=${localstatedir}/www \
70                 --build=${APPWEB_BUILD} \
71                 --host=${APPWEB_HOST} \
72                 --enable-keep-alive \
73                 --enable-multi-thread \
74                 --with-cgi=builtin \
75                 --enable-cookie \
76                 --enable-config \
77                 --enable-digest-auth \
78                 --without-ssl"
79
80 export IFLAGS = "${CPPFLAGS}"
81 export CC_FOR_BUILD = "${BUILD_CC}"
82 export LD_FOR_BUILD = "${BUILD_LD}"
83
84 LD_LIBRARY_PATH_prepend = "${S}/lib:"
85 LD_LIBRARY_PATH[export] = "1"
86 do_configure () {
87         ./configure ${EXTRA_OECONF}
88 }
89
90 do_compile () {
91         oe_runmake build
92         oe_runmake compile
93 }
94
95 do_stage () {
96         :
97 }
98
99 do_install () {
100         oe_runmake 'PKG_DIR=${D}' install-all
101 }
102
103 #do_install () {
104 #       install -d ${D}/${sbindir} ${D}/${sysconfdir}/appWeb/lib \
105 #                  ${D}/${libexecdir}/appWeb ${D}/${libdir}
106 #       install -m 0755 appWeb/appWeb ${D}/${sbindir}/
107 #       install -m 0644 appWeb/appWeb.conf ${D}/${sysconfdir}/appWeb/
108 #       install -m 0755 bin/${APPWEB_OS}/* ${D}/${libexecdir}/appWeb/
109 #       install -m 0755 lib/lib*.so* ${D}/${sysconfdir}/appWeb/lib/
110 #}