From patchwork Sun Jan 19 21:04:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Hadjinlian X-Patchwork-Id: 312399 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 36D132C00AB for ; Mon, 20 Jan 2014 08:04:40 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 03E1C8B1EF; Sun, 19 Jan 2014 21:04:31 +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 5EoDEp5-H2SG; Sun, 19 Jan 2014 21:04:30 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 34B1B8B8C7; Sun, 19 Jan 2014 21:04:30 +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 28D391C23C7 for ; Sun, 19 Jan 2014 21:04:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 003E78A8C6 for ; Sun, 19 Jan 2014 21:04:26 +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 td+Arcp4oTSj for ; Sun, 19 Jan 2014 21:04:25 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-we0-f170.google.com (mail-we0-f170.google.com [74.125.82.170]) by whitealder.osuosl.org (Postfix) with ESMTPS id 631328A668 for ; Sun, 19 Jan 2014 21:04:25 +0000 (UTC) Received: by mail-we0-f170.google.com with SMTP id u57so6382015wes.15 for ; Sun, 19 Jan 2014 13:04:24 -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=fZxsRaWp9sykoV9TRLzO83ikFTHqjpBWd7otQzqTdkQ=; b=Q9bsH0HdDsiFQgfP4HfM1eDq4hlQDvEgGm+PH9VzS8p7azdw2Ggk8x9Kz6DsyXbe+F v7PdFMqyCj5Nmh93hIj/CMp5XoOcWNRxyO20vkLv0E9bFkqvNMLnZU3J0oBUmCg9EFJ1 3SRHcdEsLo7NtECp2oFiKK98ega8YA2l9dp4EQlNJTbXfiyrLrCJxLsUg7LLNKqRUx93 8gcXRYeq68IcVJEULEfCQW8IaxQ9kuMWgLPLIzm/+b3Kdd2mB5yX1qDV3GJ4wcM7WsAJ rLu39dEo6lsCIk2KybcKnFMbJILTcYgVgazI2HKIp7DLM0dlJLe+k86u8zAHwDFZRRdo 0TiA== X-Received: by 10.194.219.1 with SMTP id pk1mr11367962wjc.36.1390165463947; Sun, 19 Jan 2014 13:04:23 -0800 (PST) Received: from localhost (13-105-190-109.dsl.ovh.fr. [109.190.105.13]) by mx.google.com with ESMTPSA id cx3sm21521963wib.0.2014.01.19.13.04.22 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 19 Jan 2014 13:04:23 -0800 (PST) From: Maxime Hadjinlian To: buildroot@busybox.net Date: Sun, 19 Jan 2014 22:04:01 +0100 Message-Id: <1390165448-9130-6-git-send-email-maxime.hadjinlian@gmail.com> X-Mailer: git-send-email 1.8.5.2 In-Reply-To: <1390165448-9130-1-git-send-email-maxime.hadjinlian@gmail.com> References: <1390165448-9130-1-git-send-email-maxime.hadjinlian@gmail.com> Cc: gimli Subject: [Buildroot] [PATCH v3 05/12] rtmpdump: 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 shown librtmp instead of rtmpdump Signed-off-by: Maxime Hadjinlian Cc: gimli --- Changes v2 -> v3: - Change name librtmp->rtmpdump (Yann E. Morin) - Fix definitions order (Yann E. Morin) - Add uses of prefix instead of nasty sed (Yann E. Morin) - Fix dependency to openssl/gnutls/polarssl (Yann E. Morin) Changes v1 -> v2: - None --- package/Config.in | 1 + package/rtmpdump/Config.in | 9 ++++++++ package/rtmpdump/rtmpdump.mk | 50 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 package/rtmpdump/Config.in create mode 100644 package/rtmpdump/rtmpdump.mk diff --git a/package/Config.in b/package/Config.in index 028c4ff..3a867b0 100644 --- a/package/Config.in +++ b/package/Config.in @@ -691,6 +691,7 @@ source "package/nss-mdns/Config.in" source "package/omniorb/Config.in" source "package/openpgm/Config.in" source "package/ortp/Config.in" +source "package/rtmpdump/Config.in" source "package/slirp/Config.in" source "package/snmppp/Config.in" source "package/thrift/Config.in" diff --git a/package/rtmpdump/Config.in b/package/rtmpdump/Config.in new file mode 100644 index 0000000..d13c55b --- /dev/null +++ b/package/rtmpdump/Config.in @@ -0,0 +1,9 @@ +config BR2_PACKAGE_RTMPDUMP + bool "librtmp" + select BR2_PACKAGE_ZLIB + select BR2_PACKAGE_OPENSSL if !BR2_PACKAGE_POLARSSL && !BR2_PACKAGE_GNUTLS + help + rtmpdump - RTMPDump Real-Time Messaging Protocol API + Only librtmp is installed by this package. + + http://rtmpdump.mplayerhq.hu diff --git a/package/rtmpdump/rtmpdump.mk b/package/rtmpdump/rtmpdump.mk new file mode 100644 index 0000000..746b335 --- /dev/null +++ b/package/rtmpdump/rtmpdump.mk @@ -0,0 +1,50 @@ +################################################################################ +# +#rtmpdump +# +################################################################################ + +RTMPDUMP_VERSION = e0056c51cc1710c9a44d2a2c4e2f344fa9cabcf4 +RTMPDUMP_SITE = git://git.ffmpeg.org/rtmpdump +RTMPDUMP_INSTALL_STAGING = YES +# Note that rtmpdump is GPLv2 but librtmp has its own license and since we only +# care about librtmp, it's LGPLv2.1+ +RTMPDUMP_LICENSE = LGPLv2.1+ +RTMPDUMP_LICENSE_FILES = librtmp/COPYING +RTMPDUMP_DEPENDENCIES = zlib + +ifeq ($(BR2_PACKAGE_GNUTLS),y) + RTMPDUMP_DEPENDENCIES += gnutls + RTMPDUMP_CRYPTO=GNUTLS +else ifeq ($(BR2_PACKAGE_POLARSSL),y) + RTMPDUMP_DEPENDENCIES += polarssl + RTMPDUMP_CRYPTO=POLARSSL +else + RTMPDUMP_DEPENDENCIES += openssl + RTMPDUMP_CRYPTO=OPENSSL +endif + +ifeq ($(BR2_PREFER_STATIC_LIB),y) + RTMPDUMP_PIC = +else + RTMPDUMP_PIC = -fPIC +endif + +define RTMPDUMP_BUILD_CMDS + $(MAKE) CRYPTO=$(RTMPDUMP_CRYPTO) \ + prefix=/usr \ + $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS) $(RTMPDUMP_PIC)" \ + CROSS_COMPILE="$(TARGET_CROSS)" \ + -C $(@D)/librtmp +endef + +define RTMPDUMP_INSTALL_STAGING_CMDS + $(MAKE) prefix=/usr -C $(@D)/librtmp install DESTDIR=$(STAGING_DIR) +endef + +define RTMPDUMP_INSTALL_TARGET_CMDS + $(MAKE) prefix=/usr -C $(@D)/librtmp install DESTDIR=$(TARGET_DIR) +endef + +$(eval $(generic-package))