svn commit: r347114 - head/www/dummyflash/files
Thierry Thomas
thierry at FreeBSD.org
Wed Mar 5 14:47:33 UTC 2014
Author: thierry
Date: Wed Mar 5 14:47:32 2014
New Revision: 347114
URL: http://svnweb.freebsd.org/changeset/ports/347114
QAT: https://qat.redports.org/buildarchive/r347114/
Log:
Fix the build with clang.
PR: ports/182834
Submitted by: "Julian H. Stacey" <jhs (at) berklix.com>
Rewritten by: maintainer
Added:
head/www/dummyflash/files/patch-UnixShell.c (contents, props changed)
head/www/dummyflash/files/patch-makefile.freebsd (contents, props changed)
Deleted:
head/www/dummyflash/files/patch-aa
Added: head/www/dummyflash/files/patch-UnixShell.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/dummyflash/files/patch-UnixShell.c Wed Mar 5 14:47:32 2014 (r347114)
@@ -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;
Added: head/www/dummyflash/files/patch-makefile.freebsd
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/dummyflash/files/patch-makefile.freebsd Wed Mar 5 14:47:32 2014 (r347114)
@@ -0,0 +1,51 @@
+--- 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.
++################################################################################
++#
++# 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${LOCALBASE}/include
++
++OPTIMIZER= -g
++CFLAGS= $(OPTIMIZER) -fPIC $(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)
More information about the svn-ports-all
mailing list