2006-01-23 20:46:56 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# lighttpd
|
|
|
|
#
|
|
|
|
#############################################################
|
2009-07-01 15:31:59 +02:00
|
|
|
|
2011-07-03 22:41:20 +02:00
|
|
|
LIGHTTPD_VERSION = 1.4.29
|
2009-12-01 21:00:59 +01:00
|
|
|
LIGHTTPD_SITE = http://download.lighttpd.net/lighttpd/releases-1.4.x
|
2011-03-03 14:53:30 +01:00
|
|
|
LIGHTTPD_DEPENDENCIES = host-pkg-config
|
2008-04-24 15:18:50 +02:00
|
|
|
LIGHTTPD_CONF_OPT = \
|
|
|
|
--libdir=/usr/lib/lighttpd \
|
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--program-prefix="" \
|
2010-03-22 14:29:00 +01:00
|
|
|
$(if $(BR2_LARGEFILE),,--disable-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)
|
2010-07-22 09:08:34 +02:00
|
|
|
LIGHTTPD_CONF_ENV = PCRECONFIG=$(STAGING_DIR)/usr/bin/pcre-config
|
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
|
|
|
|
2011-03-03 14:53:30 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIGHTTPD_WEBDAV),y)
|
|
|
|
LIGHTTPD_DEPENDENCIES += libxml2 sqlite
|
|
|
|
LIGHTTPD_CONF_OPT += --with-webdav-props --with-webdav-locks
|
|
|
|
else
|
2011-04-02 10:24:59 +02:00
|
|
|
LIGHTTPD_CONF_OPT += --without-webdav-props --without-webdav-locks
|
2011-03-03 14:53:30 +01:00
|
|
|
endif
|
|
|
|
|
2010-09-01 23:24:17 +02:00
|
|
|
define LIGHTTPD_UNINSTALL_TARGET_CMDS
|
2009-07-01 15:31:59 +02:00
|
|
|
rm -f $(TARGET_DIR)/usr/sbin/lighttpd
|
|
|
|
rm -f $(TARGET_DIR)/usr/sbin/lighttpd-angel
|
|
|
|
rm -rf $(TARGET_DIR)/usr/lib/lighttpd
|
2010-09-01 23:24:17 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call AUTOTARGETS,package,lighttpd))
|