From patchwork Sun Mar 19 08:07:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilles Talis X-Patchwork-Id: 740656 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vmBXZ38PGz9s78 for ; Sun, 19 Mar 2017 19:08:14 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="kltvurb6"; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id E4B0A86F90; Sun, 19 Mar 2017 08:08:11 +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 nIpi23kfTn2Y; Sun, 19 Mar 2017 08:08:10 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 9DFE686FC3; Sun, 19 Mar 2017 08:08:09 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 6B8CC1C0169 for ; Sun, 19 Mar 2017 08:08:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 6A96286F71 for ; Sun, 19 Mar 2017 08:08:04 +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 qyE_diFeBodI for ; Sun, 19 Mar 2017 08:08:00 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr0-f194.google.com (mail-wr0-f194.google.com [209.85.128.194]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 2448086D48 for ; Sun, 19 Mar 2017 08:08:00 +0000 (UTC) Received: by mail-wr0-f194.google.com with SMTP id l37so14241608wrc.3 for ; Sun, 19 Mar 2017 01:08:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=UOqB8+kwrt0xkhf6Jzf8gyZAyTQtQY+Qk4vu8Gt5+eA=; b=kltvurb6pc64C6GF687Tu3r5U1JuWUENpoywUBwmum65JGa7x1eWC+ir8no6DyecKt Yd3wbiYh4Zho6s+x2BHq1LLRV34pmHOM85cZpi5pEVFSZxXjG/8phDhLK+w81JiGGVwy O7wI05sDLfBW31MVSsksAZywCr7HhIQj0kMmS9r5RS9dm6HWar4FI3AImpxWz7Qu8u6l 91VO6upEBG/zU4Lv7NJPSwOatBgfU3SRKT+G+gF4VTukJqF3zKoJYS/O2x9ZxlGl5YGh cMYX4p9xN0rJJLwGBT4u0SQyg26cC2sZ7BTe1iaWTKmJSN2SciOeCsaJY9DRHwSyJWQU tPjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=UOqB8+kwrt0xkhf6Jzf8gyZAyTQtQY+Qk4vu8Gt5+eA=; b=n7Dd6klG8b91zSU3utqBufumKmMtsIeo/pkW5AYYDAeS9Uuo6JmCGOprzO1IsH/Kkq n7wnjUNWUqmexj8JlTzBW/hfzAUqfjIXDqJT5JiVDiu5RCzaw94ioc5/hJjX8l4VifEb LqYw5B0praULA5kAwBSypPEc+8cEqCySjG5sNqvYONa9KqGPlLF7T8U5pDPfJnuwmEyQ LSuX8+kiSu35ldZ/VDk5c0nVfa3NL4hjgjEAiw85Olrs+C9vqZBplWrqV9fBQr+vH5xI K2vYRFysrmXw1T59O1rQxTGs//Jj26XEZL3iYbP+eMbVGQ8yAUWeXyvCo3SA9Z8RT4jI dlsQ== X-Gm-Message-State: AFeK/H30R0H53awmSbdLi2qVflcrLyoB05MgwjsGn4N1PXmsFsKZ97ry10UusoVEnN2SRw== X-Received: by 10.223.170.70 with SMTP id q6mr22724350wrd.162.1489910878685; Sun, 19 Mar 2017 01:07:58 -0700 (PDT) Received: from localhost.localdomain (vll06-4-78-208-168-137.fbx.proxad.net. [78.208.168.137]) by smtp.gmail.com with ESMTPSA id k139sm8918142wmg.11.2017.03.19.01.07.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 19 Mar 2017 01:07:58 -0700 (PDT) From: Gilles Talis To: buildroot@buildroot.org Date: Sun, 19 Mar 2017 09:07:52 +0100 Message-Id: <1489910873-8450-2-git-send-email-gilles.talis@gmail.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1489910873-8450-1-git-send-email-gilles.talis@gmail.com> References: <1489910873-8450-1-git-send-email-gilles.talis@gmail.com> Subject: [Buildroot] [PATCH v2 1/2] leptonica: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 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" Signed-off-by: Gilles Talis --- Changes v2 (following review by Thomas P.) - Fixed newline at end of hash file - Explicitly set autotools options using --with--XXX - Added change in DEVELOPERS file --- DEVELOPERS | 1 + package/Config.in | 1 + package/leptonica/Config.in | 8 +++++ package/leptonica/leptonica.hash | 2 ++ package/leptonica/leptonica.mk | 64 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 76 insertions(+) create mode 100644 package/leptonica/Config.in create mode 100644 package/leptonica/leptonica.hash create mode 100644 package/leptonica/leptonica.mk diff --git a/DEVELOPERS b/DEVELOPERS index 746a547..8802fc7 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -587,6 +587,7 @@ N: Gilles Talis F: package/fdk-aac/ F: package/httping/ F: package/iozone/ +F: package/leptonica/ F: package/ocrad/ F: package/webp/ diff --git a/package/Config.in b/package/Config.in index 52b4f36..ed48058 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1010,6 +1010,7 @@ menu "Graphics" source "package/jpeg/Config.in" source "package/kmsxx/Config.in" source "package/lcms2/Config.in" + source "package/leptonica/Config.in" source "package/lesstif/Config.in" source "package/libart/Config.in" source "package/libdmtx/Config.in" diff --git a/package/leptonica/Config.in b/package/leptonica/Config.in new file mode 100644 index 0000000..a4053a3 --- /dev/null +++ b/package/leptonica/Config.in @@ -0,0 +1,8 @@ +config BR2_PACKAGE_LEPTONICA + bool "leptonica" + help + Leptonica is a pedagogically-oriented open source site containing + software that is broadly useful for image processing and image + analysis applications. + + http://www.leptonica.org/ diff --git a/package/leptonica/leptonica.hash b/package/leptonica/leptonica.hash new file mode 100644 index 0000000..48da06b --- /dev/null +++ b/package/leptonica/leptonica.hash @@ -0,0 +1,2 @@ +# locally computed hash +sha256 746a517a47a3bd2a90bc8d581ca6464c10f30e91a60209735efe45b3778bec62 leptonica-1.74.1.tar.gz diff --git a/package/leptonica/leptonica.mk b/package/leptonica/leptonica.mk new file mode 100644 index 0000000..37e5219 --- /dev/null +++ b/package/leptonica/leptonica.mk @@ -0,0 +1,64 @@ +################################################################################ +# +# leptonica +# +################################################################################ + +LEPTONICA_VERSION = 1.74.1 +LEPTONICA_SITE = http://www.leptonica.org/source +LEPTONICA_LICENSE = BSD-2c +LEPTONICA_LICENSE_FILES = leptonica-license.txt +LEPTONICA_INSTALL_STAGING = YES + +LEPTONICA_CONF_OPTS += --disable-programs + +ifeq ($(BR2_PACKAGE_GIFLIB),y) +LEPTONICA_DEPENDENCIES += giflib +LEPTONICA_CONF_OPTS += --with-giflib +else +LEPTONICA_CONF_OPTS += --without-giflib +endif + +ifeq ($(BR2_PACKAGE_JPEG),y) +LEPTONICA_DEPENDENCIES += jpeg +LEPTONICA_CONF_OPTS += --with-jpeg +else +LEPTONICA_CONF_OPTS += --without-jpeg +endif + +ifeq ($(BR2_PACKAGE_LIBPNG),y) +LEPTONICA_DEPENDENCIES += libpng +LEPTONICA_CONF_OPTS += --with-libpng +else +LEPTONICA_CONF_OPTS += --without-libpng +endif + +ifeq ($(BR2_PACKAGE_OPENJPEG),y) +LEPTONICA_DEPENDENCIES += openjpeg +LEPTONICA_CONF_OPTS += --with-libopenjpeg +else +LEPTONICA_CONF_OPTS += --without-libopenjpeg +endif + +ifeq ($(BR2_PACKAGE_TIFF),y) +LEPTONICA_DEPENDENCIES += tiff +LEPTONICA_CONF_OPTS += --with-libtiff +else +LEPTONICA_CONF_OPTS += --without-libtiff +endif + +ifeq ($(BR2_PACKAGE_WEBP),y) +LEPTONICA_DEPENDENCIES += webp +LEPTONICA_CONF_OPTS += --with-libwebp +else +LEPTONICA_CONF_OPTS += --without-libwebp +endif + +ifeq ($(BR2_PACKAGE_ZLIB),y) +LEPTONICA_DEPENDENCIES += zlib +LEPTONICA_CONF_OPTS += --with-zlib +else +LEPTONICA_CONF_OPTS += --without-zlib +endif + +$(eval $(autotools-package))