1e5b2f45c4
add stdc++ to WANTLIB. (This will result in an Extra: on !gcc4 arch but that's not a problem). Discussed with espie@
75 lines
1.9 KiB
Makefile
75 lines
1.9 KiB
Makefile
# $OpenBSD: Makefile,v 1.50 2010/05/27 09:54:09 sthen Exp $
|
|
|
|
COMMENT= virus scanner
|
|
DISTNAME= clamav-0.96.1
|
|
PKGNAME= ${DISTNAME}p0
|
|
CATEGORIES= security
|
|
SHARED_LIBS= clamav 13.0 \
|
|
clamunrar 2.0 \
|
|
clamunrar_iface 2.0
|
|
|
|
HOMEPAGE= http://www.clamav.net/
|
|
|
|
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
|
|
|
|
# GPLv2/LGPL
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
WANTLIB= c m milter ncurses pthread stdc++ z
|
|
|
|
BUILD_DEPENDS= ::devel/check
|
|
|
|
LIB_DEPENDS= bz2.>=10::archivers/bzip2 \
|
|
iconv.>=4::converters/libiconv \
|
|
ltdl:libltdl-*:devel/libtool,-ltdl
|
|
|
|
RUN_DEPENDS= :lha-*:archivers/lha \
|
|
:zoo-*:archivers/zoo \
|
|
:arc-*:archivers/arc \
|
|
:unzip-*:archivers/unzip
|
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=clamav/}
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
|
|
CONFIGURE_ARGS+= --disable-clamav \
|
|
--enable-dependency-tracking \
|
|
--disable-clamuko \
|
|
--enable-bigstack \
|
|
--enable-milter \
|
|
--enable-silent-rules=no \
|
|
--with-user=_clamav \
|
|
--with-group=_clamav \
|
|
--disable-cr \
|
|
--with-dbdir=/var/db/clamav \
|
|
--with-ltdl-include=${LOCALBASE}/include \
|
|
--with-ltdl-lib=${LOCALBASE}/lib
|
|
|
|
REGRESS_TARGET= check
|
|
MODULES= lang/python
|
|
MODPY_RUNDEP= no
|
|
|
|
CONFIGURE_ENV+= LDFLAGS="-pthread -L/usr/lib -L${WRKSRC}/libclamav/.libs -L${LOCALBASE}/lib" \
|
|
CPPFLAGS="-I/usr/include -I${LOCALBASE}/include"
|
|
|
|
DOCS= clamav-mirror-howto.pdf clamdoc.pdf signatures.pdf
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/clamav \
|
|
${PREFIX}/share/examples/clamav
|
|
cd ${WRKSRC}/docs; ${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/clamav
|
|
cd ${WRKSRC}/etc; ${INSTALL_DATA} clamd.conf freshclam.conf \
|
|
clamav-milter.conf ${PREFIX}/share/examples/clamav
|
|
cd ${WRKSRC}/examples; ${INSTALL_DATA} ex1.c \
|
|
${PREFIX}/share/examples/clamav
|
|
|
|
pre-regress:
|
|
ln -s ${MODPY_BIN} ${WRKDIR}/bin/python
|
|
|
|
.include <bsd.port.mk>
|