2 # Copyright (C) 2010 Jo-Philipp Wich <xm@subsignal.org>
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
13 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
15 include $(INCLUDE_DIR)/package.mk
20 TITLE:=uHTTPd - tiny, single threaded HTTP server
21 DEPENDS:=+liblua +libcyassl
24 define Package/uhttpd/description
25 uHTTPd is a tiny single threaded HTTP server with TLS, CGI and Lua
26 support. It is intended as a drop-in replacement for the Busybox
31 mkdir -p $(PKG_BUILD_DIR)
32 $(CP) ./src/* $(PKG_BUILD_DIR)/
35 TARGET_CFLAGS += --std=c99 -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=500
36 TARGET_LDFLAGS += -lz -lm -lcrypt
38 define Package/uhttpd/install
39 $(INSTALL_DIR) $(1)/sbin
40 $(INSTALL_BIN) $(PKG_BUILD_DIR)/uhttpd $(1)/sbin/
43 $(eval $(call BuildPackage,uhttpd))