1 ################################################################################
5 ################################################################################
7 CLAMAV_VERSION = 0.98.7
8 CLAMAV_SITE = http://sourceforge.net/projects/clamav/files/clamav/$(CLAMAV_VERSION)
10 CLAMAV_LICENSE_FILES = COPYING COPYING.bzip2 COPYING.file COPYING.getopt \
11 COPYING.LGPL COPYING.llvm COPYING.lzma COPYING.regex COPYING.sha256 \
12 COPYING.unrar COPYING.zlib
13 # clamav-0002-static-linking.patch touches configure.ac
14 CLAMAV_AUTORECONF = YES
15 CLAMAV_DEPENDENCIES = openssl zlib $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext)
17 # mmap cannot be detected when cross-compiling, needed for mempool support
19 ac_cv_c_mmap_private=yes \
23 --with-dbdir=/var/lib/clamav \
24 --with-openssl=$(STAGING_DIR)/usr \
25 --with-zlib=$(STAGING_DIR)/usr \
34 ifeq ($(BR2_PACKAGE_BZIP2),y)
35 CLAMAV_DEPENDENCIES += bzip2
36 # autodetection gets confused if host has bzip2, so force it
38 ac_cv_libbz2_libs=-lbz2 \
39 ac_cv_libbz2_ltlibs=-lbz2
41 CLAMAV_CONF_OPTS += --disable-bzip2
44 ifeq ($(BR2_PACKAGE_LIBXML2),y)
45 CLAMAV_CONF_OPTS += --with-xml=$(STAGING_DIR)/usr
46 CLAMAV_DEPENDENCIES += libxml2
48 CLAMAV_CONF_OPTS += --disable-xml
51 ifeq ($(BR2_PACKAGE_LIBCURL),y)
52 CLAMAV_CONF_OPTS += --with-libcurl=$(STAGING_DIR)/usr
53 CLAMAV_DEPENDENCIES += libcurl
55 CLAMAV_CONF_OPTS += --without-libcurl
58 ifeq ($(BR2_PACKAGE_LIBICONV),y)
59 CLAMAV_CONF_OPTS += --with-iconv
60 CLAMAV_DEPENDENCIES += libiconv
62 CLAMAV_CONF_OPTS += --without-iconv
65 $(eval $(autotools-package))