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 TITLE:=Appweb Web Server
38 URL:=http://www.appwebserver.org/
39 DEPENDS:=@!avr32 +libpthread
42 define Package/appweb/description
43 Appweb is a powerful, compact embedded web server designed for dynamic web
48 -q --defaults=release --shared --tune=size --without-php \
49 --without-ssl --disable-angel --disable-samples --disable-access-log \
50 --disable-complete-native --disable-complete-cross --webdir=/www \
51 --logdir=/var/log --port=8000 --sslPort=8443 --config=flat
54 tar xzf "$(DL_DIR)/$(PKG_SOURCE)" --strip-components 1 -C "$(PKG_BUILD_DIR)"
57 define Build/Configure
58 $(call Build/Configure/Default)
62 $(MAKE) -C $(PKG_BUILD_DIR) $(TARGET_CONFIGURE_OPTS)
65 define Package/appweb/install
66 ( cd $(PKG_BUILD_DIR) ; $(PKG_BUILD_DIR)/build/bin/makeInstall \
67 --root=$(1) --install --with-openwrt=1 binary )
71 $(eval $(call BuildPackage,appweb))