From owner-svn-ports-head@FreeBSD.ORG Wed Mar 5 14:47:33 2014 Return-Path: Delivered-To: svn-ports-head@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 DB9FD6FA; Wed, 5 Mar 2014 14:47:32 +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 C7DA6141; Wed, 5 Mar 2014 14:47:32 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s25ElW0Z046227; Wed, 5 Mar 2014 14:47:32 GMT (envelope-from thierry@svn.freebsd.org) Received: (from thierry@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s25ElWZI046225; Wed, 5 Mar 2014 14:47:32 GMT (envelope-from thierry@svn.freebsd.org) Message-Id: <201403051447.s25ElWZI046225@svn.freebsd.org> From: Thierry Thomas Date: Wed, 5 Mar 2014 14:47:32 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r347114 - head/www/dummyflash/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-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Mar 2014 14:47:33 -0000 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" 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)