2 # Makefile for the Appweb Web Server
4 # Copyright (C) 2009 Embedthis Software
6 # This software is licensed under the GPLv2. Commercial and other licenses
7 # are available from http://www.embedthis.com.
11 include $(TOPDIR
)/rules.mk
19 PKG_SOURCE_URL
:=http
://www.appwebserver.org
/software
/
21 PKG_MD5SUM
:=b54a99d388a5588a9af33aa1c6354e06
22 PKG_SOURCE
:=$(PKG_NAME
)-src-
$(PKG_VERSION
).
tar.gz
24 # Build the latest snapshot from the default trunk
26 # PKG_SOURCE:=tip.tar.gz
27 # PKG_SOURCE_URL:= http://hg.embedthis.com/appweb/archive/
28 # PKG_VERSION:=default
31 include $(INCLUDE_DIR
)/package.mk
33 CONFIGURE_ARGS
+= -q
--defaults
=release
--shared
--tune
=size
--without-php \
34 --without-ssl
--disable-angel
--disable-samples
--disable-access-log \
35 --disable-complete-native
--disable-complete-cross
--webdir
=/www \
36 --logdir
=/var
/log
--port
=8000 --sslPort
=8443 --config
=flat
41 TITLE
:=Appweb Web Server
42 VERSION
:=$(PKG_VERSION
)
43 URL
:=http
://www.appwebserver.org
/
46 define Package
/appweb
/description
47 Appweb is a powerful
, compact embedded web server designed for dynamic web
52 rm -rf
$(PKG_BUILD_DIR
)
53 mkdir
-p
$(PKG_BUILD_DIR
)
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
)
70 $(eval
$(call BuildPackage
,appweb
))