Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add presets for Leptonica 1.71 and Tesseract 3.03-rc1
- Loading branch information
Showing
20 changed files
with
13,854 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
if [[ -z "$PLATFORM" ]]; then | ||
echo "This file is meant to be included by the parent cppbuild.sh script" | ||
exit 1 | ||
fi | ||
|
||
if [[ $PLATFORM == windows* ]]; then | ||
LEPTONICA_VERSION=1.68 | ||
[[ $PLATFORM == *64 ]] && BITS=64 || BITS=32 | ||
download http://www.leptonica.org/source/leptonica-$LEPTONICA_VERSION-win$BITS-lib-include-dirs.zip leptonica-$LEPTONICA_VERSION-win$BITS-lib-include-dirs.zip | ||
|
||
mkdir -p $PLATFORM | ||
cd $PLATFORM | ||
unzip -o ../leptonica-$LEPTONICA_VERSION-win$BITS-lib-include-dirs.zip | ||
cd include | ||
else | ||
LEPTONICA_VERSION=1.71 | ||
download http://www.leptonica.org/source/leptonica-$LEPTONICA_VERSION.tar.gz leptonica-$LEPTONICA_VERSION.tar.gz | ||
|
||
mkdir -p $PLATFORM | ||
cd $PLATFORM | ||
INSTALL_PATH=`pwd` | ||
tar -xzvf ../leptonica-$LEPTONICA_VERSION.tar.gz | ||
cd leptonica-$LEPTONICA_VERSION | ||
fi | ||
|
||
case $PLATFORM in | ||
android-arm) | ||
./configure --prefix=$INSTALL_PATH --host="arm-linux-androideabi" --with-sysroot="$ANDROID_ROOT" CC="$ANDROID_BIN-gcc" STRIP="$ANDROID_BIN-strip" CFLAGS="--sysroot=$ANDROID_ROOT -DANDROID -fPIC -ffunction-sections -funwind-tables -fstack-protector -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fomit-frame-pointer -fstrict-aliasing -funswitch-loops -finline-limit=300" LDFLAGS="-nostdlib -Wl,--fix-cortex-a8" LIBS="-lgcc -ldl -lz -lm -lc" | ||
make -j4 | ||
make install-strip | ||
;; | ||
android-x86) | ||
./configure --prefix=$INSTALL_PATH --host="i686-linux-android" --with-sysroot="$ANDROID_ROOT" CC="$ANDROID_BIN-gcc" STRIP="$ANDROID_BIN-strip" CFLAGS="--sysroot=$ANDROID_ROOT -DANDROID -fPIC -ffunction-sections -funwind-tables -mssse3 -mfpmath=sse -fomit-frame-pointer -fstrict-aliasing -funswitch-loops -finline-limit=300" LDFLAGS="-nostdlib" LIBS="-lgcc -ldl -lz -lm -lc" | ||
make -j4 | ||
make install-strip | ||
;; | ||
linux-x86) | ||
./configure --prefix=$INSTALL_PATH CC="gcc -m32" | ||
make -j4 | ||
make install-strip | ||
;; | ||
linux-x86_64) | ||
./configure --prefix=$INSTALL_PATH CC="gcc -m64" | ||
make -j4 | ||
make install-strip | ||
;; | ||
macosx-x86_64) | ||
./configure --prefix=$INSTALL_PATH | ||
make -j4 | ||
make install-strip | ||
;; | ||
windows-x86) | ||
;; | ||
windows-x86_64) | ||
;; | ||
*) | ||
echo "Error: Platform \"$PLATFORM\" is not supported" | ||
;; | ||
esac | ||
|
||
cd ../.. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/*====================================================================* | ||
- Copyright (C) 2001 Leptonica. All rights reserved. | ||
- | ||
- Redistribution and use in source and binary forms, with or without | ||
- modification, are permitted provided that the following conditions | ||
- are met: | ||
- 1. Redistributions of source code must retain the above copyright | ||
- notice, this list of conditions and the following disclaimer. | ||
- 2. Redistributions in binary form must reproduce the above | ||
- copyright notice, this list of conditions and the following | ||
- disclaimer in the documentation and/or other materials | ||
- provided with the distribution. | ||
- | ||
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
- ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANY | ||
- CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
- EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | ||
- PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | ||
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | ||
- OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | ||
- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
*====================================================================*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>org.bytedeco</groupId> | ||
<artifactId>javacpp-presets</artifactId> | ||
<version>0.8-2-SNAPSHOT</version> | ||
</parent> | ||
|
||
<groupId>org.bytedeco.javacpp-presets</groupId> | ||
<artifactId>leptonica</artifactId> | ||
<version>1.71-${project.parent.version}</version> | ||
<packaging>jar</packaging> | ||
<name>JavaCPP Presets for Leptonica</name> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.bytedeco</groupId> | ||
<artifactId>javacpp</artifactId> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<artifactId>maven-resources-plugin</artifactId> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.bytedeco</groupId> | ||
<artifactId>javacpp</artifactId> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-jar-plugin</artifactId> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-dependency-plugin</artifactId> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-source-plugin</artifactId> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-javadoc-plugin</artifactId> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
</project> |
Oops, something went wrong.