[packages] openvpn: Bump to v2.2.2 (#11293)
[openwrt/svn-archive/archive.git] / net / appweb / Makefile
1 #
2 # Copyright (C) 2009-2010 OpenWrt.org
3 # Copyright (C) 2009 Embedthis Software
4 #
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
7 #
8 # Commercial and other licenses are available from http://www.embedthis.com/.
9 #
10
11 include $(TOPDIR)/rules.mk
12
13 PKG_NAME:=appweb
14 PKG_RELEASE:=1
15
16 #
17 # Build stable
18 #
19 PKG_VERSION:=3.2.2-1
20 PKG_SOURCE:=$(PKG_NAME)-src-$(PKG_VERSION).tar.gz
21 PKG_SOURCE_URL:=http://www.appwebserver.org/software/
22 PKG_MD5SUM:=060d43c8194fa6a119cada966fc807a7
23
24 #
25 # Build the latest snapshot from the default trunk
26 #
27 #PKG_VERSION:=default
28 #PKG_SOURCE:=tip.tar.gz
29 #PKG_SOURCE_URL:= http://hg.embedthis.com/appweb/archive/
30 #PKG_MD5SUM:=
31
32 include $(INCLUDE_DIR)/package.mk
33
34 define Package/appweb
35 SECTION:=net
36 CATEGORY:=Network
37 SUBMENU:=Web Servers/Proxies
38 TITLE:=Appweb Web Server
39 URL:=http://www.appwebserver.org/
40 DEPENDS:=@!avr32 +libpthread
41 endef
42
43 define Package/appweb/description
44 Appweb is a powerful, compact embedded web server designed for dynamic web
45 applications.
46 endef
47
48 CONFIGURE_ARGS += \
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
53
54 define Build/Prepare
55 tar xzf "$(DL_DIR)/$(PKG_SOURCE)" --strip-components 1 -C "$(PKG_BUILD_DIR)"
56 endef
57
58 define Build/Configure
59 $(call Build/Configure/Default)
60 endef
61
62 define Build/Compile
63 $(MAKE) -C $(PKG_BUILD_DIR) $(TARGET_CONFIGURE_OPTS)
64 endef
65
66 define Package/appweb/install
67 ( cd $(PKG_BUILD_DIR) ; $(PKG_BUILD_DIR)/build/bin/makeInstall \
68 --root=$(1) --install --with-openwrt=1 binary )
69 rm -rf $(1)/var
70 endef
71
72 $(eval $(call BuildPackage,appweb))