- fix path to xterm

This commit is contained in:
ajacoutot 2009-02-17 09:19:03 +00:00
parent dee2041da1
commit 9434b46ae6
2 changed files with 17 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.1.1.1 2008/09/17 10:17:27 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.2 2009/02/17 09:19:03 ajacoutot Exp $
COMMENT-main= OCR Engine developed at HP Labs.
COMMENT-de= German language data for tesseract
@ -11,7 +11,7 @@ COMMENT-pt= Portuguese (Brazilian) language data for tesseract
DISTNAME= tesseract-2.03
CATEGORIES= graphics textproc
PKGNAME-main= ${DISTNAME}
PKGNAME-main= ${DISTNAME}p0
PKGNAME-de= tesseract-de-2.00
PKGNAME-es= tesseract-es-2.00
PKGNAME-fr= tesseract-fr-2.00
@ -65,6 +65,9 @@ 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

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-ccutil_debugwin_cpp,v 1.1 2009/02/17 09:19:04 ajacoutot Exp $
--- ccutil/debugwin.cpp.orig Tue Feb 17 10:03:04 2009
+++ ccutil/debugwin.cpp Tue Feb 17 10:03:39 2009
@@ -231,7 +231,7 @@ DEBUG_WIN::DEBUG_WIN( //constructor
length += sprintf (command + length, "trap \"\" 1 2 3 13 15\n");
length +=
sprintf (command + length,
- "/usr/bin/X11/xterm -sb -sl " INT32FORMAT " -geometry "
+ "${X11BASE}/bin/xterm -sb -sl " INT32FORMAT " -geometry "
INT32FORMAT "x" INT32FORMAT "", buflines, xsize / 8, ysize / 16);
if (xpos >= 0)
command[length++] = '+';