From patchwork Sun Jan 12 17:53:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Hadjinlian X-Patchwork-Id: 309620 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 C72A52C0081 for ; Mon, 13 Jan 2014 04:54:24 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 7C09E8B923; Sun, 12 Jan 2014 17:54:15 +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 vEVN3VV2K1BE; Sun, 12 Jan 2014 17:54:13 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id F18758B931; Sun, 12 Jan 2014 17:54:12 +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 E53161C107C for ; Sun, 12 Jan 2014 17:54:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id DDB0E822DC for ; Sun, 12 Jan 2014 17:54:09 +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 boQdYZDjwOXO for ; Sun, 12 Jan 2014 17:54:09 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by whitealder.osuosl.org (Postfix) with ESMTPS id E317485416 for ; Sun, 12 Jan 2014 17:54:08 +0000 (UTC) Received: by mail-we0-f182.google.com with SMTP id w62so584626wes.13 for ; Sun, 12 Jan 2014 09:54:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=8KxzVRoYAEqxsE0XIkaOyjRcD/nQ3haRbLhSa82sbFM=; b=GWpLJaSQHPeQCMxY4xhpEfKkV/z62DZF1Vmk4pDqkyOPWAynHM8WzXB+FrhS6C+2sg JUpHj7TymhC9XfcRnwCT3aaGxrB71JlNmes4PcaVIOhvTpXkt9Bas6QH2SjBoYViilhy sYHUs30cGS2ImtuLL7t8yiYBKqZ6FtBdpsRhLHE/2sRAj/lqD909/KSScHQtQIgBEbrm hqE3bXkP4eU1EDPlyjLFng9eRmphHceKT683Jb/K7Rwvwy2AIQ7SIFLwyxOCn9O6eDff m/q/21vLh4boy4iNSYc/MB1aKbTz4aP8rjtQntaJZ1G2dwR1ZpnE0tDu8vpcmYesQAzr k0xA== X-Received: by 10.194.201.65 with SMTP id jy1mr17918957wjc.43.1389549247551; Sun, 12 Jan 2014 09:54:07 -0800 (PST) Received: from localhost (13-105-190-109.dsl.ovh.fr. [109.190.105.13]) by mx.google.com with ESMTPSA id y13sm9389650wjr.8.2014.01.12.09.54.06 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 12 Jan 2014 09:54:06 -0800 (PST) From: Maxime Hadjinlian To: buildroot@busybox.net Date: Sun, 12 Jan 2014 18:53:23 +0100 Message-Id: <1389549208-19078-10-git-send-email-maxime.hadjinlian@gmail.com> X-Mailer: git-send-email 1.8.5.2 In-Reply-To: <1389549208-19078-1-git-send-email-maxime.hadjinlian@gmail.com> References: <1389549208-19078-1-git-send-email-maxime.hadjinlian@gmail.com> Subject: [Buildroot] [PATCH 09/14] librtmp: 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 rtmpdump - RTMPDump Real-Time Messaging Protocol API This package was originally found at : https://github.com/huceke/buildroot-rbp By gimli Note that this package will only install librtmp in this state. Hence the name librtmp instead of rtmpdump Signed-off-by: Maxime Hadjinlian --- package/Config.in | 1 + package/librtmp/Config.in | 8 ++++++++ package/librtmp/librtmp.mk | 51 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 package/librtmp/Config.in create mode 100644 package/librtmp/librtmp.mk diff --git a/package/Config.in b/package/Config.in index 464098d..9094abd 100644 --- a/package/Config.in +++ b/package/Config.in @@ -542,6 +542,7 @@ source "package/libpng/Config.in" source "package/libqrencode/Config.in" source "package/libraw/Config.in" source "package/librsvg/Config.in" +source "package/librtmp/Config.in" source "package/libsvg/Config.in" source "package/libsvg-cairo/Config.in" source "package/libsvgtiny/Config.in" diff --git a/package/librtmp/Config.in b/package/librtmp/Config.in new file mode 100644 index 0000000..b04b9f6 --- /dev/null +++ b/package/librtmp/Config.in @@ -0,0 +1,8 @@ +config BR2_PACKAGE_LIBRTMP + bool "librtmp" + select BR2_PACKAGE_ZLIB + help + rtmpdump - RTMPDump Real-Time Messaging Protocol API + Only librtmp is installed by this package. + + http://rtmpdump.mplayerhq.hu diff --git a/package/librtmp/librtmp.mk b/package/librtmp/librtmp.mk new file mode 100644 index 0000000..dabbe03 --- /dev/null +++ b/package/librtmp/librtmp.mk @@ -0,0 +1,51 @@ +############################################################# +# +#librtmp +# +############################################################# + +LIBRTMP_VERSION = e0056c51cc1710c9a44d2a2c4e2f344fa9cabcf4 +LIBRTMP_SITE = git://git.ffmpeg.org/rtmpdump +LIBRTMP_INSTALL_STAGING = YES +# Note that LIBRTMP is GPLv2 but librtmp has its own license and since we only +# care about the librtmp, it's LGPLv2.1+ +LIBRTMP_LICENSE = LGPLv2.1+ +LIBRTMP_LICENSE_FILES = librtmp/COPYING +LIBRTMP_DEPENDENCIES = zlib +ifeq ($(BR2_PACKAGE_GNUTLS),y) + LIBRTMP_DEPENDENCIES += gnutls +else + ifeq ($(BR2_PACKAGE_POLARSSL),y) + LIBRTMP_DEPENDENCIES += polarssl + else + LIBRTMP_DEPENDENCIES += openssl + endif +endif + +ifeq ($(BR2_PREFER_STATIC_LIB),y) + LIBRTMP_PIC = +else + LIBRTMP_PIC = -fPIC +endif + +define LIBRTMP_BUILD_CMDS + $(MAKE) $(TARGET_CONFIGURE_OPTS) CFLAGS="$(TARGET_CFLAGS) $(LIBRTMP_PIC)" CROSS_COMPILE="$(TARGET_CROSS)" -C $(@D)/librtmp +endef + +define LIBRTMP_FIX_PREFIX + sed -ie "s|prefix=/usr/local|prefix=/usr|" $(@D)/librtmp/Makefile +endef + +define LIBRTMP_INSTALL_STAGING_CMDS + mkdir -p $(STAGING_DIR)/usr/local/lib + $(MAKE) -C $(@D)/librtmp install DESTDIR=$(STAGING_DIR) +endef + +define LIBRTMP_INSTALL_TARGET_CMDS + mkdir -p $(STAGING_DIR)/usr/local/lib + $(MAKE) -C $(@D)/librtmp install DESTDIR=$(TARGET_DIR) +endef + +LIBRTMP_POST_EXTRACT_HOOKS += LIBRTMP_FIX_PREFIX + +$(eval $(generic-package))