Noux: add noux-pkg/lighttpd

This commit is contained in:
Josef Söntgen 2012-08-16 08:11:31 +02:00 committed by Norman Feske
parent a6917d982a
commit 971f25976b
3 changed files with 48 additions and 0 deletions

2
ports/ports/lighttpd.inc Normal file
View File

@ -0,0 +1,2 @@
LIGHTTPD_VERSION = 1.4.31
LIGHTTPD = lighttpd-$(LIGHTTPD_VERSION)

20
ports/ports/lighttpd.mk Normal file
View File

@ -0,0 +1,20 @@
include ports/lighttpd.inc
LIGHTTPD_TGZ = $(LIGHTTPD).tar.gz
LIGHTTPD_URL = http://download.lighttpd.net/lighttpd/releases-1.4.x/$(LIGHTTPD_TGZ)
#
# Interface to top-level prepare Makefile
#
PORTS += $(LIGHTTPD)
prepare:: $(CONTRIB_DIR)/$(LIGHTTPD)
#
# Port-specific local rules
#
$(DOWNLOAD_DIR)/$(LIGHTTPD_TGZ):
$(VERBOSE)wget -c -P $(DOWNLOAD_DIR) $(LIGHTTPD_URL) && touch $@
$(CONTRIB_DIR)/$(LIGHTTPD): $(DOWNLOAD_DIR)/$(LIGHTTPD_TGZ)
$(VERBOSE)tar xfz $< -C $(CONTRIB_DIR) && touch $@

View File

@ -0,0 +1,26 @@
TARGET = lighttpd
NOUX_CONFIGURE_ARGS += --disable-ipv6 \
--disable-mmap \
--without-bzip2 \
--without-pcre
LIBS += libcrypto libssl zlib #libc_resolv
#
# Make the zlib linking test succeed
#
Makefile: dummy_libs
NOUX_LDFLAGS += -L$(PWD)
dummy_libs: libz.a libcrypto.a libssl.a
libcrypto.a:
$(VERBOSE)$(AR) -rc $@
libssl.a:
$(VERBOSE)$(AR) -rc $@
libz.a:
$(VERBOSE)$(AR) -rc $@
include $(REP_DIR)/mk/noux.mk