2006-01-23 20:46:56 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# lighttpd
|
|
|
|
#
|
|
|
|
#############################################################
|
2009-07-01 15:31:59 +02:00
|
|
|
|
2010-02-09 15:30:06 +01:00
|
|
|
LIGHTTPD_VERSION = 1.4.26
|
2009-12-01 21:00:59 +01:00
|
|
|
LIGHTTPD_SITE = http://download.lighttpd.net/lighttpd/releases-1.4.x
|
2009-07-01 15:31:59 +02:00
|
|
|
LIGHTTPD_LIBTOOL_PATCH = NO
|
2008-09-17 23:35:51 +02:00
|
|
|
|
|
|
|
ifneq ($(BR2_LARGEFILE),y)
|
|
|
|
LIGHTTPD_LFS:=$(DISABLE_LARGEFILE) --disable-lfs
|
|
|
|
endif
|
|
|
|
|
2008-04-24 15:18:50 +02:00
|
|
|
LIGHTTPD_CONF_OPT = \
|
|
|
|
--libdir=/usr/lib/lighttpd \
|
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--program-prefix="" \
|
|
|
|
$(DISABLE_IPV6) \
|
2008-09-17 23:35:51 +02:00
|
|
|
$(LIGHTTPD_LFS)
|
2006-01-23 20:46:56 +01:00
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIGHTTPD_OPENSSL),y)
|
2008-04-24 15:18:50 +02:00
|
|
|
LIGHTTPD_DEPENDENCIES += openssl
|
|
|
|
LIGHTTPD_CONF_OPT += --with-openssl
|
2007-07-17 02:27:10 +02:00
|
|
|
else
|
2008-04-24 15:18:50 +02:00
|
|
|
LIGHTTPD_CONF_OPT += --without-openssl
|
2007-09-19 22:13:08 +02:00
|
|
|
endif
|
2006-01-23 20:46:56 +01:00
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIGHTTPD_ZLIB),y)
|
2008-07-05 10:20:34 +02:00
|
|
|
LIGHTTPD_DEPENDENCIES += zlib
|
|
|
|
LIGHTTPD_CONF_OPT += --with-zlib
|
|
|
|
else
|
|
|
|
LIGHTTPD_CONF_OPT += --without-zlib
|
|
|
|
endif
|
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIGHTTPD_BZIP2),y)
|
2008-07-05 10:20:34 +02:00
|
|
|
LIGHTTPD_DEPENDENCIES += bzip2
|
|
|
|
LIGHTTPD_CONF_OPT += --with-bzip2
|
|
|
|
else
|
|
|
|
LIGHTTPD_CONF_OPT += --without-bzip2
|
|
|
|
endif
|
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIGHTTPD_PCRE),y)
|
2009-07-01 15:31:59 +02:00
|
|
|
LIGHTTPD_CONF_ENV = PCRE_LIB="-lpcre"
|
2008-04-24 15:18:50 +02:00
|
|
|
LIGHTTPD_DEPENDENCIES += pcre
|
|
|
|
LIGHTTPD_CONF_OPT += --with-pcre
|
2007-07-17 02:27:10 +02:00
|
|
|
else
|
2008-04-24 15:18:50 +02:00
|
|
|
LIGHTTPD_CONF_OPT += --without-pcre
|
2007-07-17 02:27:10 +02:00
|
|
|
endif
|
2006-01-23 20:46:56 +01:00
|
|
|
|
2008-04-24 15:18:50 +02:00
|
|
|
$(eval $(call AUTOTARGETS,package,lighttpd))
|
2009-07-01 15:31:59 +02:00
|
|
|
|
|
|
|
$(LIGHTTPD_TARGET_UNINSTALL):
|
|
|
|
$(call MESSAGE,"Uninstalling")
|
|
|
|
rm -f $(TARGET_DIR)/usr/sbin/lighttpd
|
|
|
|
rm -f $(TARGET_DIR)/usr/sbin/lighttpd-angel
|
|
|
|
rm -rf $(TARGET_DIR)/usr/lib/lighttpd
|
|
|
|
rm -f $(LIGHTTPD_TARGET_INSTALL_TARGET) $(LIGHTTPD_HOOK_POST_INSTALL)
|