mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
Fix the build with clang.
PR: ports/182834 Submitted by: "Julian H. Stacey" <jhs (at) berklix.com> Rewritten by: maintainer
This commit is contained in:
parent
8d8103d173
commit
75f6614f43
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=347114
26
www/dummyflash/files/patch-UnixShell.c
Normal file
26
www/dummyflash/files/patch-UnixShell.c
Normal file
@ -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;
|
@ -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
|
||||
+
|
Loading…
Reference in New Issue
Block a user