ap/tesseract; Updated for Slackware-14.0.

slackware-14.2
Damien Goutte-Gattat 10 years ago
parent f3c17b4983
commit 4c4ec01a43
  1. 12
      ap/tesseract/tesseract-3.01-fix-include.diff
  2. 5
      ap/tesseract/tesseract.SlackBuild

@ -0,0 +1,12 @@
diff -Naur tesseract-3.01.orig/viewer/svutil.cpp tesseract-3.01/viewer/svutil.cpp
--- tesseract-3.01.orig/viewer/svutil.cpp 2011-10-22 04:21:21.000000000 +0200
+++ tesseract-3.01/viewer/svutil.cpp 2013-01-13 13:39:27.310312414 +0100
@@ -49,6 +49,8 @@
#include <iostream>
#include <string>
+#include <unistd.h>
+
// Include automatically generated configuration file if running autoconf.
#ifdef HAVE_CONFIG_H
#include "config_auto.h"

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2010,2012 Damien Goutte-Gattat
# Copyright (C) 2010,2012,2013 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -34,7 +34,7 @@ WGET=${WGET:-http://tesseract-ocr.googlecode.com/files/}
# Build infos
NAMEPKG=${NAMEPKG:-tesseract}
BUILD=${BUILD:-1GGD}
BUILD=${BUILD:-2GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
@ -87,6 +87,7 @@ cd $TMP
echo "Building $NAME..."
tar xf $CWD/$NAME.tar.gz
cd $NAME
patch -p 1 < $CWD/tesseract-3.01-fix-include.diff
# Compile
./autogen.sh

Loading…
Cancel
Save