Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # $OpenBSD: Makefile,v 1.14 2015/02/16 22:57:08 naddy Exp $
  2. COMMENT-main= OCR software
  3. COMMENT-gui= gocr tcl/tk frontend
  4. V= 0.48
  5. DISTNAME= gocr-$V
  6. PKGNAME-main= gocr-$V
  7. PKGNAME-gui= gocr-gui-$V
  8. REVISION-main = 0
  9. REVISION-gui = 1
  10. CATEGORIES= graphics
  11. MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=jocr/}
  12. HOMEPAGE= http://www-e.uni-magdeburg.de/jschulen/ocr/
  13. # GPLv2
  14. PERMIT_PACKAGE_CDROM= Yes
  15. NO_TEST= Yes
  16. CONFIGURE_STYLE=gnu
  17. CONFIGURE_ARGS= --with-netpbm=${PREFIX}
  18. USE_GMAKE= Yes
  19. FAKE_FLAGS+= prefix=${PREFIX} exec_prefix=${PREFIX}
  20. MULTI_PACKAGES= -main -gui
  21. MODULES= x11/tk
  22. PKG_ARCH-gui= *
  23. RUN_DEPENDS-gui=${MODTK_RUN_DEPENDS} \
  24. graphics/xsane \
  25. textproc/p5-tkispell \
  26. graphics/gocr
  27. WANTLIB-main= c m netpbm
  28. LIB_DEPENDS-main=graphics/netpbm
  29. post-extract:
  30. rm ${WRKSRC}/src/barcode.c.orig
  31. pre-configure:
  32. ${SUBST_CMD} ${WRKSRC}/man/man1/gocr.1 \
  33. ${WRKSRC}/bin/gocr.tcl
  34. post-install:
  35. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/gocr
  36. ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/gocr
  37. ${INSTALL_DATA} ${WRKSRC}/doc/gocr.html ${PREFIX}/share/doc/gocr
  38. .include <bsd.port.mk>