source: packages/net/appweb/Makefile @ 19705

Last change on this file since 19705 was 19705, checked in by lars, 7 years ago

[packages] Use default templates instead of custom reimplementations where applicable

File size: 1.7 KB
Line 
1#
2#       Makefile for the Appweb Web Server
3#
4#       Copyright (C) 2009 Embedthis Software
5#
6#       This software is licensed under the GPLv2. Commercial and other licenses
7#   are available from http://www.embedthis.com.
8#
9#       $Id$
10
11include $(TOPDIR)/rules.mk
12
13PKG_NAME:=appweb
14PKG_RELEASE:=1
15
16#
17#       Build 3.0B.3
18#
19PKG_SOURCE_URL:=http://www.appwebserver.org/software/
20PKG_VERSION:=3.0B.2-3
21PKG_MD5SUM:=b54a99d388a5588a9af33aa1c6354e06
22PKG_SOURCE:=$(PKG_NAME)-src-$(PKG_VERSION).tar.gz
23#
24#       Build the latest snapshot from the default trunk
25#
26#       PKG_SOURCE:=tip.tar.gz
27#       PKG_SOURCE_URL:= http://hg.embedthis.com/appweb/archive/
28#       PKG_VERSION:=default
29#       PKG_MD5SUM:=
30
31include $(INCLUDE_DIR)/package.mk
32
33CONFIGURE_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
37
38define Package/appweb
39  SECTION:=net
40  CATEGORY:=Network
41  TITLE:=Appweb Web Server
42  VERSION:=$(PKG_VERSION)
43  URL:=http://www.appwebserver.org/
44endef
45
46define Package/appweb/description
47        Appweb is a powerful, compact embedded web server designed for dynamic web
48        applications.
49endef
50
51define Build/Prepare
52        tar xzf "$(DL_DIR)/$(PKG_SOURCE)" --strip-components 1 -C "$(PKG_BUILD_DIR)"
53endef
54
55define Build/Configure
56        $(call Build/Configure/Default)
57endef
58
59define Build/Compile
60        $(MAKE) -C $(PKG_BUILD_DIR) $(TARGET_CONFIGURE_OPTS)
61endef
62
63define Package/appweb/install
64        ( cd $(PKG_BUILD_DIR) ; $(PKG_BUILD_DIR)/build/bin/makeInstall \
65                --root=$(1) --install --with-openwrt=1 binary )
66        rm -rf $(1)/var
67endef
68
69$(eval $(call BuildPackage,appweb))
70
Note: See TracBrowser for help on using the repository browser.