From patchwork Thu Sep 15 06:39:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=C3=B6rg_Krause?= X-Patchwork-Id: 670224 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3sZTLb1cVsz9s5g for ; Thu, 15 Sep 2016 16:40:23 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="key not found in DNS" (0-bit key; unprotected) header.d=embedded.rocks header.i=@embedded.rocks header.b=BjiXInB5; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id DB6C030C82; Thu, 15 Sep 2016 06:40:19 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eEdpgsadqNMB; Thu, 15 Sep 2016 06:40:12 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id CFEE72E2D0; Thu, 15 Sep 2016 06:40:11 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id BE7241C11D2 for ; Thu, 15 Sep 2016 06:40:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id B92D62E2D0 for ; Thu, 15 Sep 2016 06:40:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qxKoHbarqf+s for ; Thu, 15 Sep 2016 06:40:09 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mout02.posteo.de (mout02.posteo.de [185.67.36.142]) by silver.osuosl.org (Postfix) with ESMTPS id 4D2DF2CF92 for ; Thu, 15 Sep 2016 06:40:09 +0000 (UTC) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 3sZTLF5gf2zypL for ; Thu, 15 Sep 2016 08:40:05 +0200 (CEST) Authentication-Results: mail.embedded.rocks (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=embedded.rocks DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embedded.rocks; h=content-transfer-encoding:content-type:content-type :mime-version:references:in-reply-to:x-mailer:message-id:date :date:subject:subject:from:from:received:received; s=default; t= 1473921604; x=1474526405; bh=o8IW/9E9onXvR7XyyCm9BH0BTtWNDdaUvsB Dq9RLFNA=; b=BjiXInB5ctYhIClMbFJtCIAv9++Qm9ot4FfDB0gCcFlg7I4ffuK qzwruN37ku069BVsoxo36GeFRRpdTMIyUbU3REzGBIDZvPt7fUaOyL5MwY9gTdaJ VNRhGaQQ86fSn+k8gJ7SHsN3/M4WTG76MMVF1GjidnlJ8v8VT2tqMfmt8gPdoSgR OPWT7ZEbTpdRGro8EqKKGZ2p2v85b4/4CC38j4Q2TYkfioD4ThJNnphbxzRKrslH 8kyFsalVD3SOc7fIcSN/gzoIE5bnwRFvb61Vk4B2sqdUWhacq1Ucc9zz/+BS3RJn cajwqZNvsUbFysMCpN1OY4Ox9yCRuJ+sLYw== Received: from mail.embedded.rocks ([127.0.0.1]) by localhost (mail.embedded.rocks [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id 4ZwV9rWRo7X0; Thu, 15 Sep 2016 08:40:04 +0200 (CEST) Received: from nzxt.fritz.box (x4d02005d.dyn.telefonica.de [77.2.0.93]) (Authenticated sender: joerg.krause@embedded.rocks) by mail.embedded.rocks (Postfix) with ESMTPSA; Thu, 15 Sep 2016 08:40:04 +0200 (CEST) From: =?UTF-8?q?J=C3=B6rg=20Krause?= To: buildroot@buildroot.org Date: Thu, 15 Sep 2016 08:39:56 +0200 Message-Id: <20160915064001.8684-2-joerg.krause@embedded.rocks> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20160915064001.8684-1-joerg.krause@embedded.rocks> References: <20160915064001.8684-1-joerg.krause@embedded.rocks> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 1/6] package/libupnpp: add patch to get pkg-config file 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: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Apply a patch from upstream to install a pkg-config file for libupnpp. Fetch from: https://github.com/medoc92/libupnpp/commit/9f03bb0e7b47e2843edea6f25ed9eabbfb6412df Signed-off-by: Jörg Krause --- package/libupnpp/0002-Add-pkg-config-file.patch | 63 +++++++++++++++++++++++++ package/libupnpp/libupnpp.mk | 4 +- 2 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 package/libupnpp/0002-Add-pkg-config-file.patch diff --git a/package/libupnpp/0002-Add-pkg-config-file.patch b/package/libupnpp/0002-Add-pkg-config-file.patch new file mode 100644 index 0000000..377b5e0 --- /dev/null +++ b/package/libupnpp/0002-Add-pkg-config-file.patch @@ -0,0 +1,63 @@ +From 22ec8e3a2b54a4e1fd1340a592f49829d6cde735 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?J=C3=B6rg=20Krause?= +Date: Sun, 11 Sep 2016 22:26:33 +0200 +Subject: [PATCH] Add pkg-config file +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Add a pkg-config file. + +Fetched from: +https://github.com/medoc92/libupnpp/commit/9f03bb0e7b47e2843edea6f25ed9eabbfb6412df + +Signed-off-by: Jörg Krause +--- + Makefile.am | 3 +++ + configure.ac | 1 + + libupnpp.pc.in | 12 ++++++++++++ + 3 files changed, 16 insertions(+) + create mode 100644 libupnpp.pc.in + +diff --git a/Makefile.am b/Makefile.am +index 2d20b9b..39559e9 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -112,3 +112,6 @@ nobase_include_HEADERS = \ + libupnpp_la_LDFLAGS = -version-info $(VERSION_INFO) + + libupnpp_la_LIBADD = $(LIBUPNPP_LIBS) ++ ++pkgconfigdir = $(libdir)/pkgconfig ++pkgconfig_DATA = libupnpp.pc +diff --git a/configure.ac b/configure.ac +index 9ff2058..89525b3 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -90,4 +90,5 @@ AC_SUBST(LIBUPNPP_LIBS) + AC_SUBST(VERSION_INFO) + + AC_CONFIG_FILES([Makefile]) ++AC_CONFIG_FILES([libupnpp.pc]) + AC_OUTPUT +diff --git a/libupnpp.pc.in b/libupnpp.pc.in +new file mode 100644 +index 0000000..90f4b2b +--- /dev/null ++++ b/libupnpp.pc.in +@@ -0,0 +1,12 @@ ++prefix=@prefix@ ++exec_prefix=@exec_prefix@ ++libdir=@libdir@ ++includedir=@includedir@ ++ ++Name: @PACKAGE_NAME@ ++Description: C++ wrapper for libupnp ++Version: @PACKAGE_VERSION@ ++Requires: libcurl libupnp ++Libs: -L${libdir} -lupnpp ++Libs.private: -lexpat -lpthread -lrt ++Cflags: -I${includedir} +-- +2.9.3 + diff --git a/package/libupnpp/libupnpp.mk b/package/libupnpp/libupnpp.mk index ab1ce8b..d712c21 100644 --- a/package/libupnpp/libupnpp.mk +++ b/package/libupnpp/libupnpp.mk @@ -10,7 +10,9 @@ LIBUPNPP_LICENSE = GPLv2+ LIBUPNPP_LICENSE_FILES = COPYING LIBUPNPP_INSTALL_STAGING = YES LIBUPNPP_DEPENDENCIES = expat libcurl libupnp -# touching configure.ac in 0001-Check-for-std-future.patch +# touching configure.ac in: +# 0001-Check-for-std-future.patch +# 0002-Add-pkg-config-file.patch LIBUPNPP_AUTORECONF = YES # configure script fails to link against the dependencies of libupnp