aboutsummaryrefslogtreecommitdiff
path: root/www/dummyflash/files/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'www/dummyflash/files/patch-aa')
-rw-r--r--www/dummyflash/files/patch-aa78
1 files changed, 78 insertions, 0 deletions
diff --git a/www/dummyflash/files/patch-aa b/www/dummyflash/files/patch-aa
new file mode 100644
index 000000000000..75e478397eac
--- /dev/null
+++ b/www/dummyflash/files/patch-aa
@@ -0,0 +1,78 @@
+--- 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 @@
++#!make
++################################################################################
++# Copyright (c) 1996 Netscape Communications. All rights reserved.
++################################################################################
++#
++# Template plugin makefile
++#
++# Platform: SunOS 4.1
++#
++# The output of the make process will be nptemplate.so
++# Install this file either in
++# /usr/lib/netscape/plugins/
++# (or)
++# ~/.netscape/plugins/
++# (or) in any convenient directory and point environment variable
++# NPX_PLUGIN_PATH to point to the directory. It is advisable
++# that the plugins (.so) are the only files in that directory.
++#
++# This makefile contains some of our defines for the compiler:
++#
++# XP_UNIX This needs to get defined for npapi.h on unix platforms.
++# PLUGIN_TRACE Enable this define to get debug prints whenever the plugin
++# api gets control.
++
++# PLUGIN_DEFINES= -DXP_UNIX -DPLUGIN_TRACE
++PLUGIN_DEFINES= -DXP_UNIX -I../../../include -I../Source/_gen -I/usr/X11R6/include
++
++CC= gcc
++OPTIMIZER= -g
++CFLAGS= $(OPTIMIZER) $(PLUGIN_DEFINES) -I. -I$(ROOT)/usr/include
++
++SRC= ../Source/UnixShell.c ../Source/stubs.c
++OBJ= UnixShell.o stubs.o
++
++SHAREDTARGET=dummyflash.so
++
++default all: $(SHAREDTARGET)
++
++$(SHAREDTARGET): $(OBJ)
++ $(LD) -shared -o $(SHAREDTARGET) $(OBJ) $(LDFLAGS)
++
++UnixShell.o: ../Source/UnixShell.c
++ $(CC) -c $(CFLAGS) ../Source/UnixShell.c
++
++stubs.o: ../Source/stubs.c
++ $(CC) -c $(CFLAGS) ../Source/stubs.c
++
++clean:
++ $(RM) $(OBJ) $(SHAREDTARGET)