Gentoo Archives: gentoo-commits

From: "Chi-Thanh Christopher Nguyen (chithanh)" <chithanh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-plugins/gnash/files: gnash-0.8.10-npapi-sdk.patch
Date: Mon, 27 Feb 2012 11:28:49
Message-Id: 20120227112838.454682004C@flycatcher.gentoo.org
1 chithanh 12/02/27 11:28:38
2
3 Added: gnash-0.8.10-npapi-sdk.patch
4 Log:
5 Allow building nsplugin against npapi-sdk, bug #383071.
6
7 (Portage version: 2.2.0_alpha89/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 www-plugins/gnash/files/gnash-0.8.10-npapi-sdk.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/gnash/files/gnash-0.8.10-npapi-sdk.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/gnash/files/gnash-0.8.10-npapi-sdk.patch?rev=1.1&content-type=text/plain
14
15 Index: gnash-0.8.10-npapi-sdk.patch
16 ===================================================================
17 From 983a675c94ecec54ae14593744aa9a2198466499 Mon Sep 17 00:00:00 2001
18 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@g.o>
19 Date: Thu, 15 Sep 2011 12:59:55 +0200
20 Subject: [PATCH] Support building against NPAPI-SDK as well.
21
22 ---
23 macros/npapi.m4 | 6 +++++-
24 1 files changed, 5 insertions(+), 1 deletions(-)
25
26 diff --git a/macros/npapi.m4 b/macros/npapi.m4
27 index e3bde2f..522bbb1 100644
28 --- a/macros/npapi.m4
29 +++ b/macros/npapi.m4
30 @@ -34,7 +34,11 @@ AC_DEFUN([GNASH_PATH_NPAPI],
31
32 if test x$cross_compiling = xno; then
33 if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_npapi_incl}" = x; then
34 - $PKG_CONFIG --exists mozilla-plugin && NPAPI_CFLAGS="`$PKG_CONFIG --cflags mozilla-plugin`"
35 + if $PKG_CONFIG --exists npapi-sdk; then
36 + NPAPI_CFLAGS="`$PKG_CONFIG --cflags npapi-sdk`"
37 + elif $PKG_CONFIG --exists mozilla-plugin; then
38 + NPAPI_CFLAGS="`$PKG_CONFIG --cflags mozilla-plugin`"
39 + fi
40 fi
41 fi
42
43 --
44 1.7.3.4