From patchwork Sun Apr 26 19:58:50 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Kuhls X-Patchwork-Id: 464737 X-Patchwork-Delegate: yann.morin.1998@free.fr Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 3C80F1400A0 for ; Mon, 27 Apr 2015 05:59:12 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 6445B89D10; Sun, 26 Apr 2015 19:59:08 +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 XW-nuK0OTndn; Sun, 26 Apr 2015 19:59:05 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id E62F088943; Sun, 26 Apr 2015 19:59:04 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id DAF5B1C2333 for ; Sun, 26 Apr 2015 19:59:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id D582C850A5 for ; Sun, 26 Apr 2015 19:59:02 +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 qBkII3KXSJ_t for ; Sun, 26 Apr 2015 19:59:01 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailout03.t-online.de (mailout03.t-online.de [194.25.134.81]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 222268405A for ; Sun, 26 Apr 2015 19:59:01 +0000 (UTC) Received: from fwd22.aul.t-online.de (fwd22.aul.t-online.de [172.20.26.127]) by mailout03.t-online.de (Postfix) with SMTP id 8CBC62133B7 for ; Sun, 26 Apr 2015 21:58:58 +0200 (CEST) Received: from fli4l.lan.fli4l (Gvl6S4ZJohubh7xL0KUCh7mvANq5J0Qvn8RC7IrJoNUFgeZ6Ae+d30Cq0zd5YpuZzf@[87.146.216.185]) by fwd22.t-online.de with (TLSv1:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1YmShZ-0Fe8Xo0; Sun, 26 Apr 2015 21:58:53 +0200 Received: from fli4lbuild64.lan.fli4l ([192.168.1.51]:40814) by fli4l.lan.fli4l with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.85) (envelope-from ) id 1YmShY-0002zn-9d; Sun, 26 Apr 2015 21:58:52 +0200 From: Bernd Kuhls To: buildroot@buildroot.org Date: Sun, 26 Apr 2015 21:58:50 +0200 Message-Id: <1430078330-14821-1-git-send-email-bernd.kuhls@t-online.de> X-Mailer: git-send-email 1.7.10.4 X-ID: Gvl6S4ZJohubh7xL0KUCh7mvANq5J0Qvn8RC7IrJoNUFgeZ6Ae+d30Cq0zd5YpuZzf X-TOI-MSGID: d23ed1c3-ca57-45c8-9adf-98530f05c901 Cc: Bernd Kuhls Subject: [Buildroot] [PATCH v2 1/1] package/libpjsip: 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 --- v2: various changes (Thomas) - changed portaudio dependency to avoid using third_party/portaudio/ - removed 0001-disable-tests.patch not necessary anymore since ipv6 changes in buildroot - added license information package/Config.in | 1 + package/libpjsip/Config.in | 16 ++++++++++++++ package/libpjsip/libpjsip.hash | 2 ++ package/libpjsip/libpjsip.mk | 47 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 66 insertions(+) create mode 100644 package/libpjsip/Config.in create mode 100644 package/libpjsip/libpjsip.hash create mode 100644 package/libpjsip/libpjsip.mk diff --git a/package/Config.in b/package/Config.in index 744ebc6..2a06a3d 100644 --- a/package/Config.in +++ b/package/Config.in @@ -961,6 +961,7 @@ menu "Networking" source "package/liboping/Config.in" source "package/libosip2/Config.in" source "package/libpcap/Config.in" + source "package/libpjsip/Config.in" source "package/librsync/Config.in" source "package/libshairplay/Config.in" source "package/libshout/Config.in" diff --git a/package/libpjsip/Config.in b/package/libpjsip/Config.in new file mode 100644 index 0000000..ae3c65b --- /dev/null +++ b/package/libpjsip/Config.in @@ -0,0 +1,16 @@ +config BR2_PACKAGE_LIBPJSIP + bool "libpjsip" + depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_TOOLCHAIN_HAS_THREADS # portaudio + select BR2_PACKAGE_LIBGSM + select BR2_PACKAGE_LIBSRTP + select BR2_PACKAGE_PORTAUDIO + help + PJSIP is a free and open source multimedia communication + library written in C language implementing standard based + protocols such as: SIP, SDP, RTP, STUN, TURN, and ICE. + + http://www.pjsip.org + +comment "libpjsip needs a toolchain w/ C++, threads" + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS diff --git a/package/libpjsip/libpjsip.hash b/package/libpjsip/libpjsip.hash new file mode 100644 index 0000000..c647ac4 --- /dev/null +++ b/package/libpjsip/libpjsip.hash @@ -0,0 +1,2 @@ +# From http://www.pjsip.org/release/2.4/MD5SUM.TXT +md5 39629ca3fcedbdc7dbd8c5a707060095 pjproject-2.4.tar.bz2 diff --git a/package/libpjsip/libpjsip.mk b/package/libpjsip/libpjsip.mk new file mode 100644 index 0000000..6308da1 --- /dev/null +++ b/package/libpjsip/libpjsip.mk @@ -0,0 +1,47 @@ +################################################################################ +# +# libpjsip +# +################################################################################ + +LIBPJSIP_VERSION = 2.4 +LIBPJSIP_SOURCE = pjproject-$(LIBPJSIP_VERSION).tar.bz2 +LIBPJSIP_SITE = http://www.pjsip.org/release/$(LIBPJSIP_VERSION) +LIBPJSIP_LICENSE = GPLv2+ +LIBPJSIP_LICENSE_FILES = COPYING +LIBPJSIP_INSTALL_STAGING = YES + +LIBPJSIP_DEPENDENCIES = libgsm libsrtp portaudio + +LIBPJSIP_CONF_ENV = \ + LD="$(TARGET_CC)" \ + CFLAGS="$(TARGET_CFLAGS) -DPJ_HAS_IPV6=1" + +LIBPJSIP_CONF_OPTS = \ + --with-external-gsm \ + --with-external-pa \ + --with-external-srtp \ + --disable-sound \ + --disable-resample \ + --disable-video \ + --disable-opencore-amr + +ifeq ($(BR2_PACKAGE_OPENSSL),y) +LIBPJSIP_DEPENDENCIES += openssl +LIBPJSIP_CONF_OPTS += --with-ssl=$(STAGING_DIR)/usr +else +LIBPJSIP_CONF_OPTS += --disable-ssl +endif + +ifeq ($(BR2_PACKAGE_SPEEX),y) +LIBPJSIP_CONF_OPTS += --with-external-speex +LIBPJSIP_DEPENDENCIES += speex +else +LIBPJSIP_CONF_OPTS += --disable-speex-codec --disable-speex-aec +endif + +ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBUUID),y) +LIBPJSIP_DEPENDENCIES += util-linux +endif + +$(eval $(autotools-package))