summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-text/tesseract')
-rw-r--r--app-text/tesseract/files/tesseract-3.04.01-fix-opencl-ldflags.patch11
-rw-r--r--app-text/tesseract/tesseract-3.04.01.ebuild1
2 files changed, 12 insertions, 0 deletions
diff --git a/app-text/tesseract/files/tesseract-3.04.01-fix-opencl-ldflags.patch b/app-text/tesseract/files/tesseract-3.04.01-fix-opencl-ldflags.patch
new file mode 100644
index 00000000000..b1b2b63fb53
--- /dev/null
+++ b/app-text/tesseract/files/tesseract-3.04.01-fix-opencl-ldflags.patch
@@ -0,0 +1,11 @@
+--- tesseract-3.04.01/configure.ac.orig 2016-08-11 10:50:28.853292674 +0200
++++ tesseract-3.04.01/configure.ac 2016-08-11 11:06:32.919076995 +0200
+@@ -248,7 +248,7 @@
+ fi
+ AC_SUBST([AM_CPPFLAGS], [-DUSE_OPENCL])
+ OPENCL_CPPFLAGS="-I${OPENCL_INC}"
+- OPENCL_LDFLAGS="-l${OPENCL_LIBS}"
++ OPENCL_LDFLAGS="${OPENCL_LIBS}"
+ fi
+ ;;
+ esac
diff --git a/app-text/tesseract/tesseract-3.04.01.ebuild b/app-text/tesseract/tesseract-3.04.01.ebuild
index 9acfdc10234..fe782e86b66 100644
--- a/app-text/tesseract/tesseract-3.04.01.ebuild
+++ b/app-text/tesseract/tesseract-3.04.01.ebuild
@@ -94,6 +94,7 @@ DOCS=(AUTHORS ChangeLog NEWS README.md ReleaseNotes )
PATCHES=(
"${FILESDIR}/tesseract-2.04-gcc47.patch"
"${FILESDIR}/${P}-use-system-piccolo2d.patch"
+ "${FILESDIR}/${P}-fix-opencl-ldflags.patch"
)
src_unpack() {