mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-03 13:38:52 +02:00
Add recipe for 3deyes's Tesseract Translator (#1488)
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
From 179e15712781aec51684ff16eb2ec5580ac393f2 Mon Sep 17 00:00:00 2001
|
||||
From: Philippe Houdoin <philippe.houdoin@gmail.com>
|
||||
Date: Mon, 3 Jul 2017 18:25:04 +0000
|
||||
Subject: Fix build under x86_64
|
||||
|
||||
|
||||
diff --git a/src/TesseractTranslator.cpp b/src/TesseractTranslator.cpp
|
||||
index b181d50..1f46e1c 100644
|
||||
--- a/src/TesseractTranslator.cpp
|
||||
+++ b/src/TesseractTranslator.cpp
|
||||
@@ -66,7 +66,7 @@ int32 monitor_thread(void *data)
|
||||
ETEXT_DESC *monitor = cookie->monitor;
|
||||
|
||||
char mess_id[64];
|
||||
- sprintf(mess_id, "TESS#%X",(unsigned int)(data));
|
||||
+ sprintf(mess_id, "TESS#%p",data);
|
||||
|
||||
int lastprogress = monitor->progress;
|
||||
int frame = 0;
|
||||
--
|
||||
2.12.2
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
SUMMARY="Haiku OCR translator"
|
||||
DESCRIPTION="An image to text translator add-on using Tesseract OCR engine."
|
||||
HOMEPAGE="https://github.com/threedeyes/TesseractTranslator"
|
||||
COPYRIGHT="2013 3dEyes"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://github.com/threedeyes/TesseractTranslator/archive/master.zip"
|
||||
CHECKSUM_SHA256="c6bbdad4cdde74eb4c262ead281eadf563960aac8dc4f58fb30dfb70d5d16fd9"
|
||||
SOURCE_DIR="TesseractTranslator-master"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
|
||||
PROVIDES="
|
||||
tesseracttranslator$secondaryArchSuffix = $portVersion
|
||||
addon:TesseractTranslator$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libtesseract$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libtesseract$secondaryArchSuffix
|
||||
devel:liblept$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:make
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $addOnsDir/Translators
|
||||
cp build/TesseractTranslator $addOnsDir/Translators
|
||||
}
|
||||
Reference in New Issue
Block a user