From patchwork Fri Jul 5 02:18:00 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilles Talis X-Patchwork-Id: 257030 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id B34242C0090 for ; Fri, 5 Jul 2013 12:18:11 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id B47ECE2EE; Fri, 5 Jul 2013 02:18:09 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MSNShX4NnnLa; Fri, 5 Jul 2013 02:18:08 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 25E26E2F0; Fri, 5 Jul 2013 02:18:08 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id EEDD58F753 for ; Fri, 5 Jul 2013 02:18:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 03FB08D05C for ; Fri, 5 Jul 2013 02:18:07 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ip4y3hV7Y68x for ; Fri, 5 Jul 2013 02:18:05 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pd0-f181.google.com (mail-pd0-f181.google.com [209.85.192.181]) by whitealder.osuosl.org (Postfix) with ESMTPS id 9AF2F8D051 for ; Fri, 5 Jul 2013 02:18:05 +0000 (UTC) Received: by mail-pd0-f181.google.com with SMTP id 14so1548637pdj.12 for ; Thu, 04 Jul 2013 19:18:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=67bZX6OitPluEu8gepp6AtW3Yi/yl0YL2rh+CNy8ljA=; b=OS9aCQS6XOnOyzAMVYLWv1paEwRVjd+pA2Dwen8QbZNJ/KUoSUlxFKQrb02N4Nnx9Y kUxFolulJY4qYiJGrMimuq6MliAVfCy9gx/wU6arGzR82IlAJf6XQJw7XdVAEiQh4Oyl qHBMzAPe5LCcbkZjCXxW//r+ICOXCZ1e2DSm6edtrl6VLhA3cRUAezuWBMRT/bzxcKKU 5sJVsxbgCzaRUkbfA/S6bCHGjlE+9dyDLXg+t4pllA1J1uKjqDY6MzJStavhHWN+x4zT UEq3ZdcQSotaOMgO7XfdNciBfoQkO+aDI50cA5EYt8OWN69Y0mPUDBDIyd6hLTLBJBcp y6uQ== X-Received: by 10.68.17.70 with SMTP id m6mr7521748pbd.142.1372990685342; Thu, 04 Jul 2013 19:18:05 -0700 (PDT) Received: from localhost.localdomain (c-76-102-53-164.hsd1.ca.comcast.net. [76.102.53.164]) by mx.google.com with ESMTPSA id eq5sm4944463pbc.15.2013.07.04.19.18.04 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 04 Jul 2013 19:18:04 -0700 (PDT) From: Gilles Talis To: buildroot@busybox.net Date: Thu, 4 Jul 2013 19:18:00 -0700 Message-Id: <1372990680-16147-1-git-send-email-gilles.talis@gmail.com> X-Mailer: git-send-email 1.7.10.4 Subject: [Buildroot] [PATCH] ocrad: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net GNU Ocrad is an OCR (Optical Character Recognition) program based on a feature extraction method. It reads images in pbm (bitmap), pgm (greyscale) or ppm (color) formats and produces text in byte (8-bit) or UTF-8 formats. Signed-off-by: Gilles Talis --- package/Config.in | 1 + package/ocrad/Config.in | 16 ++++++++++++++++ package/ocrad/ocrad.mk | 26 ++++++++++++++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 package/ocrad/Config.in create mode 100644 package/ocrad/ocrad.mk diff --git a/package/Config.in b/package/Config.in index 7c24dab..62fbba0 100644 --- a/package/Config.in +++ b/package/Config.in @@ -131,6 +131,7 @@ source "package/fb-test-app/Config.in" source "package/imagemagick/Config.in" source "package/linux-fusion/Config.in" source "package/lite/Config.in" +source "package/ocrad/Config.in" source "package/sawman/Config.in" source "package/sdl/Config.in" source "package/sdl_image/Config.in" diff --git a/package/ocrad/Config.in b/package/ocrad/Config.in new file mode 100644 index 0000000..1065f01 --- /dev/null +++ b/package/ocrad/Config.in @@ -0,0 +1,16 @@ +config BR2_PACKAGE_OCRAD + bool "ocrad" + depends on BR2_INSTALL_LIBSTDCPP + help + GNU Ocrad is an OCR (Optical Character Recognition) program + based on a feature extraction method. + It reads images in pbm (bitmap), pgm (greyscale) or + ppm (color) formats and produces text in byte (8-bit) or + UTF-8 formats. + + http://www.gnu.org/software/ocrad/ + +comment "ocrad needs a toolchain with C++ support" + depends on !BR2_INSTALL_LIBSTDCPP + + diff --git a/package/ocrad/ocrad.mk b/package/ocrad/ocrad.mk new file mode 100644 index 0000000..4f4b793 --- /dev/null +++ b/package/ocrad/ocrad.mk @@ -0,0 +1,26 @@ +################################################################################ +# +# ocrad +# +################################################################################ + +OCRAD_VERSION = 0.21 +OCRAD_SITE = http://ftp.gnu.org/gnu/ocrad +OCRAD_LICENSE = GPLv3+ +OCRAD_LICENSE_FILES = COPYING + +# This is not a true autotools package. +define OCRAD_CONFIGURE_CMDS + (cd $(@D); \ + ./configure $(TARGET_CONFIGURE_OPTS) ) +endef + +define OCRAD_BUILD_CMDS + $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) +endef + +define OCRAD_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 755 $(@D)/ocrad $(TARGET_DIR)/usr/bin/ocrad +endef + +$(eval $(generic-package))