From patchwork Thu Jan 16 00:15:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Hadjinlian X-Patchwork-Id: 311505 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 690642C009F for ; Thu, 16 Jan 2014 11:16:47 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id CD5ED8BDE9; Thu, 16 Jan 2014 00:16:40 +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 8HZwx5-ljj_J; Thu, 16 Jan 2014 00:16:37 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 1FF608BDD0; Thu, 16 Jan 2014 00:16:34 +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 B85021BF9A7 for ; Thu, 16 Jan 2014 00:16:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id B2DE18C89C for ; Thu, 16 Jan 2014 00:16:32 +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 qWH1D5kgngMI for ; Thu, 16 Jan 2014 00:16:31 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wg0-f46.google.com (mail-wg0-f46.google.com [74.125.82.46]) by whitealder.osuosl.org (Postfix) with ESMTPS id 87B018C8A2 for ; Thu, 16 Jan 2014 00:16:31 +0000 (UTC) Received: by mail-wg0-f46.google.com with SMTP id x12so2443316wgg.1 for ; Wed, 15 Jan 2014 16:16:30 -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=18EmQIq8rczw8MNA8dcvPQTFsA0ao2ha8cCZSEWNGtc=; b=aM2NVZqjDoowbHX3Zlpo4FlH0CbKQhgjpFnXenRqbdB97WJ+HgaGDu1Tu5TFo+6e4M WZFJaGkOxt+WjAdbOwRktCsN7S7yRdZkt5qJmmJYW9te4zrePMy9m2q7QYVrW02LbRqr 0qS5BUfaWOY86VONT3t74gLiLnguebk4jVs0buMx0VQ6HkIlE9GH9nYSAKLdb5PPVGxn x29U1Aelt2BNJMK8NlzzOZicWv2PFU1GkuQRnLevRCyIdAFen/KMfIz/te+o0MWrVZpf npEIF9XU8Ksj3JFpxTdNjGOZHrG9/uvdwWNmnohTu/7fL8FMPHUoiIdK7AK5a3pWmSvi fIog== X-Received: by 10.180.12.146 with SMTP id y18mr5032584wib.37.1389831379365; Wed, 15 Jan 2014 16:16:19 -0800 (PST) Received: from localhost (13-105-190-109.dsl.ovh.fr. [109.190.105.13]) by mx.google.com with ESMTPSA id f9sm30842922wib.3.2014.01.15.16.16.17 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 15 Jan 2014 16:16:18 -0800 (PST) From: Maxime Hadjinlian To: buildroot@busybox.net Date: Thu, 16 Jan 2014 01:15:49 +0100 Message-Id: <1389831355-19983-7-git-send-email-maxime.hadjinlian@gmail.com> X-Mailer: git-send-email 1.8.5.2 In-Reply-To: <1389831355-19983-1-git-send-email-maxime.hadjinlian@gmail.com> References: <1389831355-19983-1-git-send-email-maxime.hadjinlian@gmail.com> Cc: gimli Subject: [Buildroot] [PATCH v2 06/12] 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 Cc: gimli --- 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 8aa4a2a..a5a7572 100644 --- a/package/Config.in +++ b/package/Config.in @@ -548,6 +548,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..3cb1b91 --- /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))