Makefile 1.9 KB

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