diff options
author | Renato Botelho <garga@FreeBSD.org> | 2010-04-06 17:53:20 +0000 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2010-04-06 17:53:20 +0000 |
commit | 82125ecf5d815cb5ee593ca4b83935e16a0feffd (patch) | |
tree | 6e8a6414381525f0cdb98f939d8115e79a1d6142 /security | |
parent | 9ca757525518d916e5ff905d4603ece32db2516e (diff) | |
download | ports-82125ecf5d815cb5ee593ca4b83935e16a0feffd.tar.gz ports-82125ecf5d815cb5ee593ca4b83935e16a0feffd.zip |
Notes
Diffstat (limited to 'security')
-rw-r--r-- | security/clamav/Makefile | 26 |
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: |