You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 2.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. # New ports collection makefile for: rspamd
  2. # Date created: 2010-03-24
  3. # Whom: Vsevolod Stakhov <vsevolod@FreeBSD.org>
  4. #
  5. # $FreeBSD$
  6. #
  7. PORTNAME= rspamd
  8. PORTVERSION= 0.2.9
  9. CATEGORIES= mail
  10. MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
  11. MAINTAINER= vsevolod@FreeBSD.org
  12. COMMENT= Fast spam filtering system
  13. RUN_DEPENDS= ${SITE_PERL}/IO/Socket/SSL.pm:${PORTSDIR}/security/p5-IO-Socket-SSL \
  14. ${SITE_PERL}/IO/String.pm:${PORTSDIR}/devel/p5-IO-String
  15. LIB_DEPENDS= pcre.0:${PORTSDIR}/devel/pcre \
  16. gmime-2.0:${PORTSDIR}/mail/gmime2 \
  17. event-1.4:${PORTSDIR}/devel/libevent
  18. USE_GNOME= glib20
  19. USE_CMAKE= yes
  20. USE_LDCONFIG= yes
  21. WANT_PERL= yes
  22. USE_PERL5= yes
  23. OPTIONS= RSPAMD_GPERF "Enable google perf-tools profiling" off \
  24. RSPAMD_JUDY "Enable judy arrays usage for performance" off \
  25. RSPAMD_LUA "Enable lua plugins support in rspamd" on \
  26. RSPAMD_OPTFLAGS "Turn on compiler optimizations" off \
  27. RSPAMD_REDIRECTOR "Install HTTP redirector" off \
  28. RSPAMD_STATIC "Build static version of rspamd" off
  29. MAN3= Mail::Rspamd::Client.3
  30. CMAKE_ARGS+= -DETC_PREFIX=${PREFIX}/etc -DPREFIX=${PREFIX}
  31. PLIST_SUB+= ETCDIR=etc/rspamd
  32. .include <bsd.port.pre.mk>
  33. .if defined(WITH_RSPAMD_GPERF)
  34. CMAKE_ARGS+= -DENABLE_GPERF_TOOLS=ON
  35. LIB_DEPENDS+= profiler.0:${PORTSDIR}/devel/google-perftools
  36. .endif
  37. .if defined(WITH_RSPAMD_JUDY)
  38. LIB_DEPENDS+= Judy:${PORTSDIR}/devel/judy
  39. .endif
  40. .if defined(WITH_RSPAMD_LUA)
  41. USE_LUA= 5.1-
  42. PLIST_SUB+= LUA=""
  43. .else
  44. CMAKE_ARGS+= -DENABLE_LUA=OFF
  45. PLIST_SUB+= LUA="@comment"
  46. .endif
  47. .if defined(WITH_RSPAMD_OPTFLAGS)
  48. CMAKE_ARGS+= -DENABLE_OPTIMIZATION=ON
  49. .endif
  50. .if defined(WITH_RSPAMD_REDIRECTOR)
  51. CMAKE_ARGS+= -DENABLE_REDIRECTOR=ON
  52. PLIST_SUB+= REDIRECTOR=""
  53. RUN_DEPENDS+= ${SITE_PERL}/POE/Component/Client/DNS.pm:${PORTSDIR}/dns/p5-POE-Component-Client-DNS \
  54. ${SITE_PERL}/POE/Component/Client/HTTP.pm:${PORTSDIR}/www/p5-POE-Component-Client-HTTP \
  55. ${SITE_PERL}/POE/Component/Server/HTTP.pm:${PORTSDIR}/www/p5-POE-Component-Server-HTTP \
  56. ${SITE_PERL}/${PERL_ARCH}/Cache/Memcached/Fast.pm:${PORTSDIR}/databases/p5-Cache-Memcached-Fast \
  57. ${SITE_PERL}/Proc/PidUtil.pm:${PORTSDIR}/sysutils/p5-Proc-PidUtil \
  58. ${SITE_PERL}/Proc/Daemon.pm:${PORTSDIR}/devel/p5-Proc-Daemon \
  59. ${SITE_PERL}/${PERL_ARCH}/Digest/SHA256.pm:${PORTSDIR}/security/p5-Digest-SHA256 \
  60. ${SITE_PERL}/SWF/File.pm:${PORTSDIR}/graphics/p5-SWF-File
  61. .else
  62. PLIST_SUB+= REDIRECTOR="@comment"
  63. .endif
  64. .if defined(WITH_RSPAMD_STATIC)
  65. CMAKE_ARGS+= -DENABLE_STATIC=ON
  66. PLIST_SUB+= CPLUGINS="@comment"
  67. USE_LDCONFIG= no
  68. .else
  69. PLIST_SUB+= CPLUGINS=""
  70. .endif
  71. .include <bsd.port.post.mk>