diff options
author | Thierry Thomas <thierry@FreeBSD.org> | 2014-03-05 14:47:32 +0000 |
---|---|---|
committer | Thierry Thomas <thierry@FreeBSD.org> | 2014-03-05 14:47:32 +0000 |
commit | 75f6614f4326606eb50716eb29435b4cab4f4ca9 (patch) | |
tree | 6def873b6b278719819a5e0fd8822d72774ad5c1 /www/dummyflash | |
parent | 8d8103d1730ab40e996e89d76bbceae27f29fb48 (diff) | |
download | ports-75f6614f4326606eb50716eb29435b4cab4f4ca9.tar.gz ports-75f6614f4326606eb50716eb29435b4cab4f4ca9.zip |
Fix the build with clang.
PR: ports/182834
Submitted by: "Julian H. Stacey" <jhs (at) berklix.com>
Rewritten by: maintainer
Notes
Notes:
svn path=/head/; revision=347114
Diffstat (limited to 'www/dummyflash')
-rw-r--r-- | www/dummyflash/files/patch-UnixShell.c | 26 | ||||
-rw-r--r-- | www/dummyflash/files/patch-makefile.freebsd (renamed from www/dummyflash/files/patch-aa) | 33 |
2 files changed, 29 insertions, 30 deletions
diff --git a/www/dummyflash/files/patch-UnixShell.c b/www/dummyflash/files/patch-UnixShell.c new file mode 100644 index 000000000000..662f71fdbe2b --- /dev/null +++ b/www/dummyflash/files/patch-UnixShell.c @@ -0,0 +1,26 @@ +--- PluginSDK30b5/examples/UnixTemplate/Source/UnixShell.c.orig 1996-07-12 15:10:28.000000000 +0930 ++++ PluginSDK30b5/examples/UnixTemplate/Source/UnixShell.c 2013-10-09 07:24:13.570473153 +1030 +@@ -48,7 +48,7 @@ + char* + NPP_GetMIMEDescription(void) + { +- return("mime/type:sample:Template Only"); ++ return("application/x-shockwave-flash:null flash:Dummy flash plugin"); + } + + NPError +@@ -58,12 +58,11 @@ + + switch (variable) { + case NPPVpluginNameString: +- *((char **)value) = "Template plugin"; ++ *((char **)value) = "Dummy flash plugin"; + break; + case NPPVpluginDescriptionString: + *((char **)value) = +- "This plugins handles nothing. This is only" +- " a template."; ++ "This is a dummy flash plugin"; + break; + default: + err = NPERR_GENERIC_ERROR; diff --git a/www/dummyflash/files/patch-aa b/www/dummyflash/files/patch-makefile.freebsd index 62557ce89965..ff01a0c5052a 100644 --- a/www/dummyflash/files/patch-aa +++ b/www/dummyflash/files/patch-makefile.freebsd @@ -1,32 +1,6 @@ ---- PluginSDK30b5/examples/UnixTemplate/Source/UnixShell.c.orig Fri Jul 12 15:10:28 1996 -+++ PluginSDK30b5/examples/UnixTemplate/Source/UnixShell.c Thu Nov 21 15:38:24 2002 -@@ -48,7 +48,7 @@ - char* - NPP_GetMIMEDescription(void) - { -- return("mime/type:sample:Template Only"); -+ return("application/x-shockwave-flash:null flash:Dummy flash plugin"); - } - - NPError -@@ -58,12 +58,11 @@ - - switch (variable) { - case NPPVpluginNameString: -- *((char **)value) = "Template plugin"; -+ *((char **)value) = "Dummy flash plugin"; - break; - case NPPVpluginDescriptionString: - *((char **)value) = -- "This plugins handles nothing. This is only" -- " a template."; -+ "This is a dummy flash plugin"; - break; - default: - err = NPERR_GENERIC_ERROR; ---- PluginSDK30b5/examples/UnixTemplate/Unix/makefile.freebsd.orig Thu Jan 1 09:30:00 1970 -+++ PluginSDK30b5/examples/UnixTemplate/Unix/makefile.freebsd Thu Nov 21 15:39:02 2002 -@@ -0,0 +1,49 @@ +--- PluginSDK30b5/examples/UnixTemplate/Unix/makefile.freebsd.orig 2013-10-09 07:24:13.572467161 +1030 ++++ PluginSDK30b5/examples/UnixTemplate/Unix/makefile.freebsd 2013-10-09 07:27:13.288470186 +1030 +@@ -0,0 +1,48 @@ +#!make +################################################################################ +# Copyright (c) 1996 Netscape Communications. All rights reserved. @@ -54,7 +28,6 @@ +# PLUGIN_DEFINES= -DXP_UNIX -DPLUGIN_TRACE +PLUGIN_DEFINES= -DXP_UNIX -I../../../include -I../Source/_gen -I${LOCALBASE}/include + -+CC= gcc +OPTIMIZER= -g +CFLAGS= $(OPTIMIZER) -fPIC $(PLUGIN_DEFINES) -I. -I$(ROOT)/usr/include + |