From owner-svn-ports-all@FreeBSD.ORG Thu Mar 6 22:29:16 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4B10A333; Thu, 6 Mar 2014 22:29:16 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2DBB530D; Thu, 6 Mar 2014 22:29:16 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s26MTG9S035712; Thu, 6 Mar 2014 22:29:16 GMT (envelope-from nox@svn.freebsd.org) Received: (from nox@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s26MTFId035709; Thu, 6 Mar 2014 22:29:15 GMT (envelope-from nox@svn.freebsd.org) Message-Id: <201403062229.s26MTFId035709@svn.freebsd.org> From: Juergen Lock Date: Thu, 6 Mar 2014 22:29:15 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r347330 - in head/www/npapi-vlc: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Mar 2014 22:29:16 -0000 Author: nox Date: Thu Mar 6 22:29:15 2014 New Revision: 347330 URL: http://svnweb.freebsd.org/changeset/ports/347330 QAT: https://qat.redports.org/buildarchive/r347330/ Log: - Add missing deps. - Add clang fixes cherry-picked from git head. [1] PR: ports/186894 Submitted by: Mitja Obtained from: http://git.videolan.org/?p=npapi-vlc.git;a=log [1] Added: head/www/npapi-vlc/files/ head/www/npapi-vlc/files/patch-be7ae9d9f73b45decd63c8e90d992800b5a882f8 (contents, props changed) head/www/npapi-vlc/files/patch-f4a86b5994a797a36d94bb4cc8033efad3e7632b (contents, props changed) Modified: head/www/npapi-vlc/Makefile Modified: head/www/npapi-vlc/Makefile ============================================================================== --- head/www/npapi-vlc/Makefile Thu Mar 6 22:20:06 2014 (r347329) +++ head/www/npapi-vlc/Makefile Thu Mar 6 22:29:15 2014 (r347330) @@ -9,14 +9,17 @@ MASTER_SITES= http://download.videolan.o MAINTAINER= ports@FreeBSD.org COMMENT= Embeds vlc-player in web-browsers -LIB_DEPENDS= libvlc.so:${PORTSDIR}/multimedia/vlc +LIB_DEPENDS= libvlc.so:${PORTSDIR}/multimedia/vlc \ + libxul.so:${PORTSDIR}/www/libxul -USES= webplugin:native +USES= webplugin:native pkgconfig USE_XZ= yes +USE_GNOME= gtk20 WEBPLUGIN_NAME= # WEBPLUGIN_FILES=libvlcplugin.so GNU_CONFIGURE= yes PLIST_FILES= ${WEBPLUGIN_DIR:S,^${PREFIX}/,,}${WEBPLUGIN_FILES} +PATCH_STRIP= -p1 do-install: ${MKDIR} ${STAGEDIR}${WEBPLUGIN_DIR} Added: head/www/npapi-vlc/files/patch-be7ae9d9f73b45decd63c8e90d992800b5a882f8 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/npapi-vlc/files/patch-be7ae9d9f73b45decd63c8e90d992800b5a882f8 Thu Mar 6 22:29:15 2014 (r347330) @@ -0,0 +1,92 @@ +From: Felix Paul Kuehne +Date: Wed, 12 Feb 2014 12:15:21 +0000 (+0100) +Subject: nporuntime: move protected definitions to public as they are accessed by out of class... +X-Git-Url: http://git.videolan.org/?p=npapi-vlc.git;a=commitdiff_plain;h=be7ae9d9f73b45decd63c8e90d992800b5a882f8 + +nporuntime: move protected definitions to public as they are accessed by out of class selectors + +Fix compilation with clang++, part 2 +--- + +diff --git a/npapi/control/nporuntime.h b/npapi/control/nporuntime.h +index b279ade..6bb89ca 100644 +--- a/npapi/control/nporuntime.h ++++ b/npapi/control/nporuntime.h +@@ -74,6 +74,31 @@ public: + static char* stringValue(const NPString &v); + static char* stringValue(const NPVariant &v); + ++ bool isValid() ++ { ++ return _instance != NULL; ++ }; ++ ++ enum InvokeResult ++ { ++ INVOKERESULT_NO_ERROR = 0, /* returns no error */ ++ INVOKERESULT_GENERIC_ERROR = 1, /* returns error */ ++ INVOKERESULT_NO_SUCH_METHOD = 2, /* throws method does not exist */ ++ INVOKERESULT_INVALID_ARGS = 3, /* throws invalid arguments */ ++ INVOKERESULT_INVALID_VALUE = 4, /* throws invalid value in assignment */ ++ INVOKERESULT_OUT_OF_MEMORY = 5, /* throws out of memory */ ++ }; ++ ++ virtual InvokeResult getProperty(int index, NPVariant &result); ++ virtual InvokeResult setProperty(int index, const NPVariant &value); ++ virtual InvokeResult removeProperty(int index); ++ virtual InvokeResult invoke(int index, const NPVariant *args, uint32_t argCount, NPVariant &result); ++ virtual InvokeResult invokeDefault(const NPVariant *args, uint32_t argCount, NPVariant &result); ++ ++ bool returnInvokeResult(InvokeResult result); ++ ++ static InvokeResult invokeResultString(const char *,NPVariant &); ++ + protected: + void *operator new(size_t n) + { +@@ -89,11 +114,6 @@ protected: + NPN_MemFree(p); + }; + +- bool isValid() +- { +- return _instance != NULL; +- }; +- + RuntimeNPObject(NPP instance, const NPClass *aClass) : + _instance(instance) + { +@@ -102,16 +122,6 @@ protected: + }; + virtual ~RuntimeNPObject() {}; + +- enum InvokeResult +- { +- INVOKERESULT_NO_ERROR = 0, /* returns no error */ +- INVOKERESULT_GENERIC_ERROR = 1, /* returns error */ +- INVOKERESULT_NO_SUCH_METHOD = 2, /* throws method does not exist */ +- INVOKERESULT_INVALID_ARGS = 3, /* throws invalid arguments */ +- INVOKERESULT_INVALID_VALUE = 4, /* throws invalid value in assignment */ +- INVOKERESULT_OUT_OF_MEMORY = 5, /* throws out of memory */ +- }; +- + friend void RuntimeNPClassDeallocate(NPObject *npobj); + friend void RuntimeNPClassInvalidate(NPObject *npobj); + template static bool RuntimeNPClassGetProperty(NPObject *npobj, NPIdentifier name, NPVariant *result); +@@ -125,16 +135,6 @@ protected: + uint32_t argCount, + NPVariant *result); + +- virtual InvokeResult getProperty(int index, NPVariant &result); +- virtual InvokeResult setProperty(int index, const NPVariant &value); +- virtual InvokeResult removeProperty(int index); +- virtual InvokeResult invoke(int index, const NPVariant *args, uint32_t argCount, NPVariant &result); +- virtual InvokeResult invokeDefault(const NPVariant *args, uint32_t argCount, NPVariant &result); +- +- bool returnInvokeResult(InvokeResult result); +- +- static InvokeResult invokeResultString(const char *,NPVariant &); +- + bool isPluginRunning() + { + return (_instance->pdata != NULL); Added: head/www/npapi-vlc/files/patch-f4a86b5994a797a36d94bb4cc8033efad3e7632b ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/npapi-vlc/files/patch-f4a86b5994a797a36d94bb4cc8033efad3e7632b Thu Mar 6 22:29:15 2014 (r347330) @@ -0,0 +1,29 @@ +From: Felix Paul Kuehne +Date: Wed, 12 Feb 2014 12:12:07 +0000 (+0100) +Subject: nporuntime: do not mix friend declarations with static implementations +X-Git-Url: http://git.videolan.org/?p=npapi-vlc.git;a=commitdiff_plain;h=f4a86b5994a797a36d94bb4cc8033efad3e7632b + +nporuntime: do not mix friend declarations with static implementations + +Fix compilation with clang++, part one +--- + +diff --git a/npapi/control/nporuntime.h b/npapi/control/nporuntime.h +index d67ec8c..b279ade 100644 +--- a/npapi/control/nporuntime.h ++++ b/npapi/control/nporuntime.h +@@ -114,10 +114,10 @@ protected: + + friend void RuntimeNPClassDeallocate(NPObject *npobj); + friend void RuntimeNPClassInvalidate(NPObject *npobj); +- template friend bool RuntimeNPClassGetProperty(NPObject *npobj, NPIdentifier name, NPVariant *result); +- template friend bool RuntimeNPClassSetProperty(NPObject *npobj, NPIdentifier name, const NPVariant *value); +- template friend bool RuntimeNPClassRemoveProperty(NPObject *npobj, NPIdentifier name); +- template friend bool RuntimeNPClassInvoke(NPObject *npobj, NPIdentifier name, ++ template static bool RuntimeNPClassGetProperty(NPObject *npobj, NPIdentifier name, NPVariant *result); ++ template static bool RuntimeNPClassSetProperty(NPObject *npobj, NPIdentifier name, const NPVariant *value); ++ template static bool RuntimeNPClassRemoveProperty(NPObject *npobj, NPIdentifier name); ++ template static bool RuntimeNPClassInvoke(NPObject *npobj, NPIdentifier name, + const NPVariant *args, uint32_t argCount, + NPVariant *result); + friend bool RuntimeNPClassInvokeDefault(NPObject *npobj,