2 # Copyright (C) 2009-2010 OpenWrt.org
3 # Copyright (C) 2009 Embedthis Software
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
8 # Commercial and other licenses are available from http://www.embedthis.com/.
11 include $(TOPDIR
)/rules.mk
20 PKG_SOURCE
:=$(PKG_NAME
)-src-
$(PKG_VERSION
).
tar.gz
21 PKG_SOURCE_URL
:=http
://www.appwebserver.org
/software
/
22 PKG_MD5SUM
:=060d43c8194fa6a119cada966fc807a7
25 # Build the latest snapshot from the default trunk
28 #PKG_SOURCE:=tip.tar.gz
29 #PKG_SOURCE_URL:= http://hg.embedthis.com/appweb/archive/
32 include $(INCLUDE_DIR
)/package.mk
37 SUBMENU
:=Web Servers
/Proxies
38 TITLE
:=Appweb Web Server
39 URL
:=http
://www.appwebserver.org
/
40 DEPENDS
:=@
!avr32
+libpthread
43 define Package
/appweb
/description
44 Appweb is a powerful
, compact embedded web server designed for dynamic web
49 -q
--defaults
=release
--shared
--tune
=size
--without-php \
50 --without-ssl
--disable-angel
--disable-samples
--disable-access-log \
51 --disable-complete-native
--disable-complete-cross
--webdir
=/www \
52 --logdir
=/var
/log
--port
=8000 --sslPort
=8443 --config
=flat
55 tar xzf
"$(DL_DIR)/$(PKG_SOURCE)" --strip-components
1 -C
"$(PKG_BUILD_DIR)"
58 define Build
/Configure
59 $(call Build
/Configure
/Default
)
63 $(MAKE
) -C
$(PKG_BUILD_DIR
) $(TARGET_CONFIGURE_OPTS
)
66 define Package
/appweb
/install
67 ( cd
$(PKG_BUILD_DIR
) ; $(PKG_BUILD_DIR
)/build
/bin
/makeInstall \
68 --root
=$(1) --install --with-openwrt
=1 binary
)
72 $(eval
$(call BuildPackage
,appweb
))