2 # Copyright (C) 2009-2013 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)-$(PKG_VERSION)-src.tgz
21 PKG_SOURCE_URL:=http://www.appwebserver.org/software/
22 PKG_MD5SUM:=23540af5852e4b0f6789bc47013d311c
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
34 # The files in the .tar.gz are
41 # $(PKG_BUILD_DIR)/all/...
42 # $(PKG_BUILD_DIR)/build/...
43 # $(PKG_BUILD_DIR)/test/...
46 # The following two lines make this happen
47 # 1. change tar option to strip out the top-level, src in
49 # 2. change the tar output to the build directory. The
50 # original tar command was
51 # $(HOST_TAR) -C/.. $(1) $(TAR_OPTIONS)
53 TAR_OPTIONS:=--strip-components 1 $(TAR_OPTIONS)
54 TAR_CMD=$(HOST_TAR) -C $(1) $(TAR_OPTIONS)
59 SUBMENU:=Web Servers/Proxies
60 TITLE:=Appweb Web Server
61 URL:=http://www.appwebserver.org/
62 DEPENDS:=@!avr32 +libpthread +libpcre +libsqlite3
65 define Package/appweb/description
66 Appweb is a powerful, compact embedded web server designed for dynamic web
79 --disable-access-log \
80 --disable-complete-native \
81 --disable-complete-cross \
88 define Build/Configure
89 $(call Build/Configure/Default)
93 $(MAKE) -C $(PKG_BUILD_DIR) \
94 $(TARGET_CONFIGURE_OPTS) \
98 define Package/appweb/install
99 ( cd $(PKG_BUILD_DIR) ; $(PKG_BUILD_DIR)/build/bin/makeInstall \
100 --root=$(1) --install --with-openwrt=1 binary )
104 $(eval $(call BuildPackage,appweb))