From patchwork Tue Aug 11 18:16:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Kuhls X-Patchwork-Id: 506192 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 08BA11401DA for ; Wed, 12 Aug 2015 04:17:16 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id E03299584D; Tue, 11 Aug 2015 18:17:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id idvvWjWCyXIL; Tue, 11 Aug 2015 18:17:14 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 0F9F79585A; Tue, 11 Aug 2015 18:17:13 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id C4A161C165B for ; Tue, 11 Aug 2015 18:17:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id BFAE892FF0 for ; Tue, 11 Aug 2015 18:17: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 NcfFktM9WPuJ for ; Tue, 11 Aug 2015 18:17:04 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailout11.t-online.de (mailout11.t-online.de [194.25.134.85]) by whitealder.osuosl.org (Postfix) with ESMTPS id 733E092FB9 for ; Tue, 11 Aug 2015 18:17:03 +0000 (UTC) Received: from fwd28.aul.t-online.de (fwd28.aul.t-online.de [172.20.26.133]) by mailout11.t-online.de (Postfix) with SMTP id B2EC7458E9C for ; Tue, 11 Aug 2015 20:17:01 +0200 (CEST) Received: from fli4l.lan.fli4l (XV4HtEZXrhPRNUk8Sha0x6A-uhrAPjiOExvjEjM8Q0R-SJ4gXvS52kuJndZ7t5Xg3q@[79.247.160.183]) by fwd28.t-online.de with (TLSv1:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1ZPE6e-1nPpbM0; Tue, 11 Aug 2015 20:17:00 +0200 Received: from mahler.lan.fli4l ([192.168.1.1]:55326 helo=kuhls.lan.fli4l) by fli4l.lan.fli4l with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-SHA256:128) (Exim 4.86) (envelope-from ) id 1ZPE6d-0003Gz-Ny; Tue, 11 Aug 2015 20:17:00 +0200 From: Bernd Kuhls To: buildroot@buildroot.org Date: Tue, 11 Aug 2015 20:16:47 +0200 Message-Id: <1439317015-8031-3-git-send-email-bernd.kuhls@t-online.de> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1439317015-8031-1-git-send-email-bernd.kuhls@t-online.de> References: <1439317015-8031-1-git-send-email-bernd.kuhls@t-online.de> X-ID: XV4HtEZXrhPRNUk8Sha0x6A-uhrAPjiOExvjEjM8Q0R-SJ4gXvS52kuJndZ7t5Xg3q X-TOI-MSGID: f5bae3dc-e2d8-4e54-8589-c5d5e41da4cc Cc: Bernd Kuhls Subject: [Buildroot] [PATCH/next 02/10] package/libyuv: 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: Bernd Kuhls --- package/Config.in | 1 + package/libyuv/0001-i386-sse2.patch | 16 ++++++++++++++++ package/libyuv/Config.in | 12 ++++++++++++ package/libyuv/libyuv.mk | 18 ++++++++++++++++++ 4 files changed, 47 insertions(+) create mode 100644 package/libyuv/0001-i386-sse2.patch create mode 100644 package/libyuv/Config.in create mode 100644 package/libyuv/libyuv.mk diff --git a/package/Config.in b/package/Config.in index 5b48710..bf4810f 100644 --- a/package/Config.in +++ b/package/Config.in @@ -953,6 +953,7 @@ menu "Multimedia" source "package/libplayer/Config.in" source "package/libtheora/Config.in" source "package/live555/Config.in" + source "package/libyuv/Config.in" source "package/mediastreamer/Config.in" source "package/x264/Config.in" endmenu diff --git a/package/libyuv/0001-i386-sse2.patch b/package/libyuv/0001-i386-sse2.patch new file mode 100644 index 0000000..b8ecb34 --- /dev/null +++ b/package/libyuv/0001-i386-sse2.patch @@ -0,0 +1,16 @@ +Fix compilation on non-sse2 platforms + +Signed-off-by: Bernd Kuhls + +diff -uNr libyuv-1411.org/include/libyuv/scale_row.h libyuv-1411/include/libyuv/scale_row.h +--- libyuv-1411.org/include/libyuv/scale_row.h 2015-05-22 23:39:21.000000000 +0200 ++++ libyuv-1411/include/libyuv/scale_row.h 2015-05-25 12:35:17.000000000 +0200 +@@ -33,7 +33,7 @@ + + // The following are available on all x86 platforms: + #if !defined(LIBYUV_DISABLE_X86) && \ +- (defined(_M_IX86) || defined(__x86_64__) || defined(__i386__)) ++ (defined(_M_IX86) || defined(__x86_64__) || (defined(__i386__) && defined(__SSE2__))) + #define HAS_FIXEDDIV1_X86 + #define HAS_FIXEDDIV_X86 + #define HAS_SCALEADDROWS_SSE2 diff --git a/package/libyuv/Config.in b/package/libyuv/Config.in new file mode 100644 index 0000000..29dcaa4 --- /dev/null +++ b/package/libyuv/Config.in @@ -0,0 +1,12 @@ +config BR2_PACKAGE_LIBYUV + bool "libyuv" + depends on BR2_INSTALL_LIBSTDCPP + depends on !BR2_STATIC_LIBS + help + libyuv is an open source project that includes YUV scaling + and conversion functionality. + + https://code.google.com/p/libyuv + +comment "libyuv needs a toolchain w/ C++, dynamic library" + depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS diff --git a/package/libyuv/libyuv.mk b/package/libyuv/libyuv.mk new file mode 100644 index 0000000..770b2dc --- /dev/null +++ b/package/libyuv/libyuv.mk @@ -0,0 +1,18 @@ +################################################################################ +# +# libyuv +# +################################################################################ + +LIBYUV_VERSION = 1ebf86795cb213a37f06eb1ef3713cff080568ea +# we use the FreeSwitch fork because there is currently no alternative +# for https://chromium.googlesource.com/libyuv/libyuv which will be +# deactivated in 2015. +LIBYUV_SITE = https://freeswitch.org/stash/scm/sd/libyuv.git +LIBYUV_SITE_METHOD = git +LIBYUV_LICENSE = BSD-4c +LIBYUV_LICENSE_FILES = LICENSE +LIBYUV_INSTALL_STAGING = YES +LIBYUV_DEPENDENCIES = $(if $(BR2_PACKAGE_JPEG),jpeg) + +$(eval $(cmake-package))