aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2010-04-07 01:53:20 +0800
committergarga <garga@FreeBSD.org>2010-04-07 01:53:20 +0800
commitbbe8be12aa8369bfd067f9ab40fef1d3cf2c5510 (patch)
tree88d1d050b143572b0c7c8d93bb5351bd17234e49 /security
parenta6b95daff393b0ffd599eb4ff30ebdcf357a8016 (diff)
downloadfreebsd-ports-gnome-bbe8be12aa8369bfd067f9ab40fef1d3cf2c5510.tar.gz
freebsd-ports-gnome-bbe8be12aa8369bfd067f9ab40fef1d3cf2c5510.tar.zst
freebsd-ports-gnome-bbe8be12aa8369bfd067f9ab40fef1d3cf2c5510.zip
- Reduce differences between it and security/clamav-devel
- Make JIT bytecode compiler as an OPTION, On by default [1] PR: ports/145435 [1] Submitted by: Alexander Wittig <alexander at wittig.name> [1]
Diffstat (limited to 'security')
-rw-r--r--security/clamav/Makefile26
1 files changed, 16 insertions, 10 deletions
diff --git a/security/clamav/Makefile b/security/clamav/Makefile
index d66d73d3cd76..07162d2510b4 100644
--- a/security/clamav/Makefile
+++ b/security/clamav/Makefile
@@ -18,6 +18,7 @@ OPTIONS= ARC "Enable arch archives support" On \
LHA "Enable lha archives support" On \
UNZOO "Enable zoo archives support" On \
UNRAR "Enable rar archives support" On \
+ LLVM "Enable JIT Bytecode compiler" On \
MILTER "Compile the milter interface" Off \
LDAP "libmilter was built with LDAP" Off \
ICONV "Enable ICONV support" Off \
@@ -51,8 +52,7 @@ CONFIGURE_ARGS= --libdir=${PREFIX}/lib \
--enable-readdir_r \
--enable-gethostbyname_r \
--disable-dependency-tracking \
- --enable-clamdtop \
- --enable-llvm
+ --enable-clamdtop
CPPFLAGS+= -I${LOCALBASE}/include \
${PTHREAD_CFLAGS}
LDFLAGS+= -L${LOCALBASE}/lib \
@@ -116,10 +116,10 @@ CFLAGS+= -march=i486
.endif
.if ${OSVERSION} >= 700000
-BUILD_DEPENDS+= ${LOCALBASE}/include/check.h:${PORTSDIR}/devel/libcheck
-CONFIGURE_ARGS+= --enable-check
+BUILD_DEPENDS+= ${LOCALBASE}/include/check.h:${PORTSDIR}/devel/libcheck
+CONFIGURE_ARGS+=--enable-check
.else
-CONFIGURE_ARGS+= --disable-check
+CONFIGURE_ARGS+=--disable-check
.endif
.if defined(WITH_ARC)
@@ -138,7 +138,7 @@ RUN_DEPENDS+= unzoo:${PORTSDIR}/archivers/unzoo
PLIST_SUB+= UNRAR=""
.else
PLIST_SUB+= UNRAR="@comment "
-CONFIGURE_ARGS+= --disable-unrar
+CONFIGURE_ARGS+=--disable-unrar
.endif
.if defined(WITH_ICONV)
CONFIGURE_ARGS+=--with-iconv
@@ -147,6 +147,12 @@ USE_ICONV= yes
CONFIGURE_ARGS+=--without-iconv
.endif
+.if defined(WITH_LLVM)
+CONFIGURE_ARGS+=--enable-llvm
+.else
+CONFIGURE_ARGS+=--disable-llvm
+.endif
+
.if defined(WITH_MILTER)
USE_RC_SUBR+= clamav-milter
CONF_FILES+= clamav-milter
@@ -157,12 +163,12 @@ LDFLAGS+= -lldap
. if !exists(/usr/lib/libmilter.a) || exists(${LOCALBASE}/lib/libmilter.a)
BUILD_DEPENDS+= ${LOCALBASE}/lib/libmilter.a:${PORTSDIR}/mail/sendmail
-CONFIGURE_ARGS+= --with-sendmail=${LOCALBASE}/sbin/sendmail
+CONFIGURE_ARGS+=--with-sendmail=${LOCALBASE}/sbin/sendmail
. else
-CONFIGURE_ARGS+= --with-sendmail=/usr/sbin/sendmail
+CONFIGURE_ARGS+=--with-sendmail=/usr/sbin/sendmail
. endif
-CONFIGURE_ARGS+= --enable-milter
+CONFIGURE_ARGS+=--enable-milter
PLIST_SUB+= CLAMAV-MILTER=""
.else
PLIST_SUB+= CLAMAV-MILTER="@comment "
@@ -173,7 +179,7 @@ EXTRA_PATCHES+= ${FILESDIR}/extra-patch-shared_output.c
.endif
.if defined(WITH_EXPERIMENTAL)
-CONFIGURE_ARGS+= --enable-experimental
+CONFIGURE_ARGS+=--enable-experimental
.endif
post-patch: