[packages] polipo: solve a bunch of "sh: bad number" errors in init script, always...
[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 TITLE:=Appweb Web Server
38 URL:=http://www.appwebserver.org/
39 DEPENDS:=@!avr32 +libpthread
40 endef
41
42 define Package/appweb/description
43 Appweb is a powerful, compact embedded web server designed for dynamic web
44 applications.
45 endef
46
47 CONFIGURE_ARGS += \
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
52
53 define Build/Prepare
54 tar xzf "$(DL_DIR)/$(PKG_SOURCE)" --strip-components 1 -C "$(PKG_BUILD_DIR)"
55 endef
56
57 define Build/Configure
58 $(call Build/Configure/Default)
59 endef
60
61 define Build/Compile
62 $(MAKE) -C $(PKG_BUILD_DIR) $(TARGET_CONFIGURE_OPTS)
63 endef
64
65 define Package/appweb/install
66 ( cd $(PKG_BUILD_DIR) ; $(PKG_BUILD_DIR)/build/bin/makeInstall \
67 --root=$(1) --install --with-openwrt=1 binary )
68 rm -rf $(1)/var
69 endef
70
71 $(eval $(call BuildPackage,appweb))