2017-05-28 20:12:51 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.114 2017/05/28 20:12:51 sthen Exp $
|
2005-01-09 17:07:52 +00:00
|
|
|
|
2016-05-22 21:03:33 +00:00
|
|
|
COMMENT= virus scanner
|
|
|
|
DISTNAME= clamav-0.99.2
|
2017-05-28 20:12:51 +00:00
|
|
|
REVISION= 5
|
2011-05-11 08:24:40 +00:00
|
|
|
|
2016-05-22 21:03:33 +00:00
|
|
|
CATEGORIES= security
|
2014-05-08 08:18:51 +00:00
|
|
|
|
2015-12-01 23:25:09 +00:00
|
|
|
SHARED_LIBS += clamav 22.2 # 8.1
|
|
|
|
SHARED_LIBS += clamunrar 3.0 # 8.1
|
2014-05-08 08:18:51 +00:00
|
|
|
SHARED_LIBS += clamunrar_iface 3.0
|
2005-01-09 17:07:52 +00:00
|
|
|
|
2016-05-22 21:03:33 +00:00
|
|
|
HOMEPAGE= http://www.clamav.net/
|
2005-01-09 17:07:52 +00:00
|
|
|
|
2016-05-22 21:03:33 +00:00
|
|
|
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
|
2009-09-15 18:06:28 +00:00
|
|
|
|
2014-05-08 08:18:51 +00:00
|
|
|
# GPLv2/LGPL, with OpenSSL exemption
|
2005-01-09 17:07:52 +00:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
|
2016-11-04 11:35:18 +00:00
|
|
|
WANTLIB += bz2 c crypto curl iconv ltdl lzma m milter ncurses
|
|
|
|
WANTLIB += nghttp2 pcre2-8 pthread ssl xml2 z
|
2005-01-09 17:07:52 +00:00
|
|
|
|
2011-12-07 09:29:02 +00:00
|
|
|
BUILD_DEPENDS= devel/check \
|
|
|
|
devel/libexecinfo
|
2008-09-14 15:00:43 +00:00
|
|
|
|
2010-11-20 17:22:40 +00:00
|
|
|
LIB_DEPENDS= archivers/bzip2 \
|
2016-05-04 07:12:55 +00:00
|
|
|
devel/gettext \
|
2014-01-15 13:06:47 +00:00
|
|
|
devel/libtool,-ltdl \
|
2016-11-03 21:10:57 +00:00
|
|
|
devel/pcre2 \
|
2014-09-17 09:13:12 +00:00
|
|
|
mail/sendmail,-libmilter \
|
2014-05-08 08:18:51 +00:00
|
|
|
net/curl \
|
2014-01-15 13:06:47 +00:00
|
|
|
textproc/libxml
|
2005-01-09 17:07:52 +00:00
|
|
|
|
2016-05-04 07:12:55 +00:00
|
|
|
MASTER_SITES= http://www.clamav.net/downloads/production/
|
2005-01-09 17:07:52 +00:00
|
|
|
|
2016-11-03 21:10:57 +00:00
|
|
|
CONFIGURE_STYLE= gnu
|
2016-11-01 12:01:10 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-clamav \
|
2005-01-09 17:07:52 +00:00
|
|
|
--enable-dependency-tracking \
|
|
|
|
--disable-clamuko \
|
|
|
|
--enable-bigstack \
|
|
|
|
--enable-milter \
|
|
|
|
--with-user=_clamav \
|
|
|
|
--with-group=_clamav \
|
|
|
|
--disable-cr \
|
2009-04-12 09:28:45 +00:00
|
|
|
--with-dbdir=/var/db/clamav \
|
|
|
|
--with-ltdl-include=${LOCALBASE}/include \
|
|
|
|
--with-ltdl-lib=${LOCALBASE}/lib
|
2005-01-09 17:07:52 +00:00
|
|
|
|
2013-03-11 11:35:43 +00:00
|
|
|
TEST_TARGET= check
|
2016-05-04 07:12:55 +00:00
|
|
|
MODULES= lang/python
|
2010-08-19 09:17:41 +00:00
|
|
|
MODPY_RUNDEP= no
|
2005-01-09 17:07:52 +00:00
|
|
|
|
2010-08-19 09:17:41 +00:00
|
|
|
CPPFLAGS+= -I/usr/include -I${LOCALBASE}/include
|
2010-09-26 13:40:11 +00:00
|
|
|
LDFLAGS+= -pthread -L/usr/lib \
|
2010-08-19 09:17:41 +00:00
|
|
|
-L${LOCALBASE}/lib
|
|
|
|
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}" \
|
|
|
|
CPPFLAGS="${CPPFLAGS}"
|
2013-09-20 15:22:58 +00:00
|
|
|
FAKE_FLAGS= sysconfdir=${PREFIX}/share/examples/clamav
|
2005-01-09 17:07:52 +00:00
|
|
|
|
2016-05-22 21:03:33 +00:00
|
|
|
# This is used for a JIT bytecode compiler. Disabling it should
|
|
|
|
# still allow bytecode to work, just without the W|X-mapping JIT.
|
|
|
|
CONFIGURE_ARGS+= --disable-llvm
|
2012-07-08 21:24:58 +00:00
|
|
|
|
2005-01-09 17:07:52 +00:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/clamav \
|
|
|
|
${PREFIX}/share/examples/clamav
|
2010-08-19 09:17:41 +00:00
|
|
|
cd ${WRKSRC}/docs; ${INSTALL_DATA} *.pdf ${PREFIX}/share/doc/clamav
|
2005-01-09 17:07:52 +00:00
|
|
|
cd ${WRKSRC}/examples; ${INSTALL_DATA} ex1.c \
|
|
|
|
${PREFIX}/share/examples/clamav
|
|
|
|
|
2013-03-11 11:35:43 +00:00
|
|
|
pre-test:
|
2013-09-29 22:38:29 +00:00
|
|
|
-ln -s ${MODPY_BIN} ${WRKDIR}/bin/python
|
2010-05-23 21:24:09 +00:00
|
|
|
|
2005-01-09 17:07:52 +00:00
|
|
|
.include <bsd.port.mk>
|