75 lines
1.9 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.114 2017/05/28 20:12:51 sthen Exp $
COMMENT= virus scanner
DISTNAME= clamav-0.99.2
REVISION= 5
CATEGORIES= security
2015-12-01 23:25:09 +00:00
SHARED_LIBS += clamav 22.2 # 8.1
SHARED_LIBS += clamunrar 3.0 # 8.1
SHARED_LIBS += clamunrar_iface 3.0
HOMEPAGE= http://www.clamav.net/
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
2009-09-15 18:06:28 +00:00
# GPLv2/LGPL, with OpenSSL exemption
PERMIT_PACKAGE_CDROM= Yes
WANTLIB += bz2 c crypto curl iconv ltdl lzma m milter ncurses
WANTLIB += nghttp2 pcre2-8 pthread ssl xml2 z
BUILD_DEPENDS= devel/check \
devel/libexecinfo
2010-11-20 17:22:40 +00:00
LIB_DEPENDS= archivers/bzip2 \
devel/gettext \
devel/libtool,-ltdl \
2016-11-03 21:10:57 +00:00
devel/pcre2 \
mail/sendmail,-libmilter \
net/curl \
textproc/libxml
MASTER_SITES= http://www.clamav.net/downloads/production/
2016-11-03 21:10:57 +00:00
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= --disable-clamav \
--enable-dependency-tracking \
--disable-clamuko \
--enable-bigstack \
--enable-milter \
--with-user=_clamav \
--with-group=_clamav \
--disable-cr \
--with-dbdir=/var/db/clamav \
--with-ltdl-include=${LOCALBASE}/include \
--with-ltdl-lib=${LOCALBASE}/lib
2013-03-11 11:35:43 +00:00
TEST_TARGET= check
MODULES= lang/python
MODPY_RUNDEP= no
CPPFLAGS+= -I/usr/include -I${LOCALBASE}/include
LDFLAGS+= -pthread -L/usr/lib \
-L${LOCALBASE}/lib
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}" \
CPPFLAGS="${CPPFLAGS}"
FAKE_FLAGS= sysconfdir=${PREFIX}/share/examples/clamav
# 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
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/clamav \
${PREFIX}/share/examples/clamav
cd ${WRKSRC}/docs; ${INSTALL_DATA} *.pdf ${PREFIX}/share/doc/clamav
cd ${WRKSRC}/examples; ${INSTALL_DATA} ex1.c \
${PREFIX}/share/examples/clamav
2013-03-11 11:35:43 +00:00
pre-test:
-ln -s ${MODPY_BIN} ${WRKDIR}/bin/python
2010-05-23 21:24:09 +00:00
.include <bsd.port.mk>