2014-10-31 22:15:19 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# clamav
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2018-03-02 07:06:57 +01:00
|
|
|
CLAMAV_VERSION = 0.99.4
|
2016-05-09 18:48:38 +02:00
|
|
|
CLAMAV_SITE = https://www.clamav.net/downloads/production
|
2017-03-30 15:43:32 +02:00
|
|
|
CLAMAV_LICENSE = GPL-2.0
|
2014-10-31 22:15:19 +01:00
|
|
|
CLAMAV_LICENSE_FILES = COPYING COPYING.bzip2 COPYING.file COPYING.getopt \
|
2015-12-13 09:40:30 +01:00
|
|
|
COPYING.LGPL COPYING.llvm COPYING.lzma COPYING.pcre COPYING.regex \
|
2014-10-31 22:15:19 +01:00
|
|
|
COPYING.unrar COPYING.zlib
|
2015-12-06 00:58:35 +01:00
|
|
|
CLAMAV_DEPENDENCIES = \
|
|
|
|
host-pkgconf \
|
2017-03-11 13:58:52 +01:00
|
|
|
libtool \
|
2015-12-06 00:58:35 +01:00
|
|
|
openssl \
|
|
|
|
zlib \
|
2017-07-03 22:40:46 +02:00
|
|
|
$(TARGET_NLS_DEPENDENCIES)
|
2014-10-31 22:15:19 +01:00
|
|
|
|
|
|
|
# mmap cannot be detected when cross-compiling, needed for mempool support
|
|
|
|
CLAMAV_CONF_ENV = \
|
2015-04-29 21:05:34 +02:00
|
|
|
ac_cv_c_mmap_private=yes \
|
|
|
|
have_cv_ipv6=yes
|
2014-10-31 22:15:19 +01:00
|
|
|
|
2015-12-06 00:58:35 +01:00
|
|
|
# UCLIBC_HAS_FTS is disabled, therefore disable fanotify (missing fts.h)
|
2014-10-31 22:15:19 +01:00
|
|
|
CLAMAV_CONF_OPTS = \
|
|
|
|
--with-dbdir=/var/lib/clamav \
|
2017-03-11 13:58:52 +01:00
|
|
|
--with-ltdl-include=$(STAGING_DIR)/usr/include \
|
|
|
|
--with-ltdl-lib=$(STAGING_DIR)/usr/lib \
|
2014-10-31 22:15:19 +01:00
|
|
|
--with-openssl=$(STAGING_DIR)/usr \
|
|
|
|
--with-zlib=$(STAGING_DIR)/usr \
|
2017-01-04 16:27:34 +01:00
|
|
|
--disable-zlib-vcheck \
|
2014-10-31 22:15:19 +01:00
|
|
|
--disable-rpath \
|
|
|
|
--disable-clamav \
|
2015-12-06 00:58:35 +01:00
|
|
|
--disable-fanotify \
|
2014-10-31 22:15:19 +01:00
|
|
|
--disable-milter \
|
|
|
|
--disable-llvm \
|
|
|
|
--disable-clamdtop \
|
|
|
|
--enable-mempool
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_BZIP2),y)
|
|
|
|
CLAMAV_DEPENDENCIES += bzip2
|
2014-11-20 23:04:09 +01:00
|
|
|
# autodetection gets confused if host has bzip2, so force it
|
|
|
|
CLAMAV_CONF_ENV += \
|
|
|
|
ac_cv_libbz2_libs=-lbz2 \
|
|
|
|
ac_cv_libbz2_ltlibs=-lbz2
|
2014-10-31 22:15:19 +01:00
|
|
|
else
|
|
|
|
CLAMAV_CONF_OPTS += --disable-bzip2
|
|
|
|
endif
|
|
|
|
|
2017-03-11 13:58:53 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_JSON_C),y)
|
|
|
|
CLAMAV_CONF_OPTS += --with-libjson=$(STAGING_DIR)/usr
|
|
|
|
CLAMAV_DEPENDENCIES += json-c
|
|
|
|
else
|
|
|
|
CLAMAV_CONF_OPTS += --without-libjson
|
|
|
|
endif
|
|
|
|
|
2014-10-31 22:15:19 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBXML2),y)
|
|
|
|
CLAMAV_CONF_OPTS += --with-xml=$(STAGING_DIR)/usr
|
|
|
|
CLAMAV_DEPENDENCIES += libxml2
|
|
|
|
else
|
|
|
|
CLAMAV_CONF_OPTS += --disable-xml
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBCURL),y)
|
|
|
|
CLAMAV_CONF_OPTS += --with-libcurl=$(STAGING_DIR)/usr
|
|
|
|
CLAMAV_DEPENDENCIES += libcurl
|
|
|
|
else
|
|
|
|
CLAMAV_CONF_OPTS += --without-libcurl
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBICONV),y)
|
|
|
|
CLAMAV_CONF_OPTS += --with-iconv
|
|
|
|
CLAMAV_DEPENDENCIES += libiconv
|
|
|
|
else
|
|
|
|
CLAMAV_CONF_OPTS += --without-iconv
|
|
|
|
endif
|
|
|
|
|
2015-12-06 00:58:35 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_PCRE),y)
|
|
|
|
CLAMAV_CONF_OPTS += --with-pcre=$(STAGING_DIR)/usr
|
|
|
|
CLAMAV_DEPENDENCIES += pcre
|
|
|
|
else
|
|
|
|
CLAMAV_CONF_OPTS += --without-pcre
|
|
|
|
endif
|
|
|
|
|
2014-10-31 22:15:19 +01:00
|
|
|
$(eval $(autotools-package))
|