b214e28324
Inspired from http://info.iet.unipi.it/~luigi/FreeBSD/dx5050.html Use REVISION and new DEPENDS.
83 lines
2.2 KiB
Makefile
83 lines
2.2 KiB
Makefile
# $OpenBSD: Makefile,v 1.5 2010/07/17 08:13:01 ajacoutot Exp $
|
|
|
|
COMMENT-main= OCR Engine developed at HP Labs
|
|
COMMENT-de= German language data for tesseract
|
|
COMMENT-es= Spanish language data for tesseract
|
|
COMMENT-fr= French language data for tesseract
|
|
COMMENT-it= Italian language data for tesseract
|
|
COMMENT-nl= Dutch language data for tesseract
|
|
COMMENT-pt= Portuguese (Brazilian) language data for tesseract
|
|
|
|
DISTNAME= tesseract-2.04
|
|
CATEGORIES= graphics textproc
|
|
|
|
PKGNAME-main= ${DISTNAME}
|
|
REVISION-main= 0
|
|
PKGNAME-de= tesseract-de-2.00
|
|
PKGNAME-es= tesseract-es-2.00
|
|
PKGNAME-fr= tesseract-fr-2.00
|
|
PKGNAME-it= tesseract-it-2.00
|
|
PKGNAME-nl= tesseract-nl-2.00
|
|
PKGNAME-pt= tesseract-pt-2.01
|
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
|
tesseract-2.00.deu.tar.gz \
|
|
tesseract-2.00.eng.tar.gz \
|
|
tesseract-2.00.fra.tar.gz \
|
|
tesseract-2.00.ita.tar.gz \
|
|
tesseract-2.00.nld.tar.gz \
|
|
tesseract-2.01.por.tar.gz \
|
|
tesseract-2.00.spa.tar.gz
|
|
|
|
HOMEPAGE= http://code.google.com/p/tesseract-ocr/
|
|
|
|
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
|
|
|
# Apache License 2.0
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MULTI_PACKAGES= -main -de -es -fr -it -nl -pt
|
|
|
|
WANTLIB-main= c jpeg m pthread stdc++ z tiff png
|
|
|
|
LIB_DEPENDS-main= ::graphics/tiff \
|
|
::graphics/png
|
|
|
|
RUN_DEPENDS-de= ::${BASE_PKGPATH}
|
|
RUN_DEPENDS-es= ::${BASE_PKGPATH}
|
|
RUN_DEPENDS-fr= ::${BASE_PKGPATH}
|
|
RUN_DEPENDS-it= ::${BASE_PKGPATH}
|
|
RUN_DEPENDS-nl= ::${BASE_PKGPATH}
|
|
RUN_DEPENDS-pt= ::${BASE_PKGPATH}
|
|
|
|
PKG_ARCH-de= *
|
|
PKG_ARCH-es= *
|
|
PKG_ARCH-fr= *
|
|
PKG_ARCH-it= *
|
|
PKG_ARCH-nl= *
|
|
PKG_ARCH-pt= *
|
|
|
|
MASTER_SITES= http://tesseract-ocr.googlecode.com/files/
|
|
|
|
CONFIGURE_STYLE=gnu
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
pre-configure:
|
|
${SUBST_CMD} ${WRKSRC}/ccutil/debugwin.cpp
|
|
|
|
post-install:
|
|
cp -R ${WRKDIR}/tessdata ${PREFIX}/share
|
|
chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/tesseract
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/tesseract
|
|
${INSTALL_DATA} ${WRKSRC}/README ${FILESDIR}/README.OpenBSD \
|
|
${PREFIX}/share/doc/tesseract
|
|
${INSTALL_DATA} ${WRKSRC}/{eurotext.tif,phototest.tif} \
|
|
${PREFIX}/share/examples/tesseract
|
|
|
|
.include <bsd.port.mk>
|