Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # $OpenBSD: Makefile,v 1.14 2015/12/30 14:30:29 giovanni Exp $
  2. COMMENT= detect image spam with SpamAssassin
  3. V= 3.6.0.146
  4. DISTNAME= fuzzyocr-$V
  5. PKGNAME= p5-FuzzyOcr-$V
  6. REVISION= 3
  7. PKG_ARCH= *
  8. CATEGORIES= mail perl5
  9. HOMEPAGE= http://fuzzyocr.own-hero.net/
  10. MASTER_SITES= https://www.paclan.it/distfiles/
  11. MAINTAINER= Giovanni Bechis <giovanni@openbsd.org>
  12. RUN_DEPENDS= devel/p5-MLDBM-Sync \
  13. graphics/gocr \
  14. graphics/giflib \
  15. graphics/netpbm \
  16. graphics/ocrad \
  17. graphics/ImageMagick \
  18. graphics/gifsicle \
  19. graphics/tesseract/tesseract \
  20. mail/p5-Mail-SpamAssassin \
  21. textproc/p5-String-Approx
  22. NO_TEST= Yes
  23. # Apache 2.0
  24. PERMIT_PACKAGE_CDROM= Yes
  25. NO_BUILD= Yes
  26. MODULES= perl
  27. WRKDIST= ${WRKDIR}/FuzzyOcr-$V
  28. CONFDIR= ${SYSCONFDIR}/mail/spamassassin
  29. SUBST_VARS= CONFDIR
  30. CONF= FuzzyOcr.cf FuzzyOcr.mysql FuzzyOcr.preps \
  31. FuzzyOcr.scansets FuzzyOcr.words
  32. do-install:
  33. ${INSTALL_DATA} ${WRKSRC}/FuzzyOcr.pm ${PREFIX}/${P5SITE}
  34. ${INSTALL_DATA_DIR} ${PREFIX}/${P5SITE}/FuzzyOcr
  35. ${INSTALL_DATA} ${WRKSRC}/FuzzyOcr/*.pm ${PREFIX}/${P5SITE}/FuzzyOcr
  36. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/FuzzyOcr
  37. .for i in ${CONF}
  38. ${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/examples/FuzzyOcr
  39. .endfor
  40. .include <bsd.port.mk>