Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jul 2004 20:08:20 GMT
From:      "Roman Y. Bogdanov" <sam@brj.pp.ru>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/69126: new port: flash plugin for mozilla firefox browser
Message-ID:  <200407152008.i6FK8Kg2074804@www.freebsd.org>
Resent-Message-ID: <200407152010.i6FKALob001713@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         69126
>Category:       ports
>Synopsis:       new port: flash plugin for mozilla firefox browser
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 15 20:10:20 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Roman Y. Bogdanov
>Release:        5.2.1 and current on my panicbox
>Organization:
>Environment:
FreeBSD brj.pp.ru 5.2.1-RELEASE-p9 FreeBSD 5.2.1-RELEASE-p9 #0: Thu Jul 15 01:04:50 KRAST 2004     root@brj.pp.ru:/usr/src/sys/i386/compile/brj-5x  i386
>Description:
Today I have decided to install flash plugin for a browser firefox, but have not found such in ports. For a browser mozilla plugin is present in port's tree, therefore I have decided to correct it and have made plugin for firefox.
>How-To-Repeat:
      
>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	flashplugin-firefox
#	flashplugin-firefox/files
#	flashplugin-firefox/files/patch-aa
#	flashplugin-firefox/files/patch-plugin.c
#	flashplugin-firefox/Makefile
#	flashplugin-firefox/distinfo
#	flashplugin-firefox/pkg-descr
#	flashplugin-firefox/pkg-plist
#
echo c - flashplugin-firefox
mkdir -p flashplugin-firefox > /dev/null 2>&1
echo c - flashplugin-firefox/files
mkdir -p flashplugin-firefox/files > /dev/null 2>&1
echo x - flashplugin-firefox/files/patch-aa
sed 's/^X//' >flashplugin-firefox/files/patch-aa << 'END-of-flashplugin-firefox/files/patch-aa'
X--- Makefile.orig	Tue Sep 28 05:13:38 1999
X+++ Makefile	Sat Mar 13 20:06:26 2004
X@@ -35,8 +35,8 @@
X # Linux
X SHARED=-shared
X 
X-CFLAGS=  $(OPTIMIZER) $(PLUGIN_DEFINES) -I$(FLASH) -I/usr/X11R6/include
X-LDFLAGS= $(FLASH)/libflash.a $(LIBCXX) ../Jpeg/libjpeg.a ../Zlib/libz.a
X+CFLAGS+=  $(OPTIMIZER) $(PLUGIN_DEFINES) -I$(FLASH) -I/usr/X11R6/include -fPIC
X+LDFLAGS= -L${LOCALBASE}/lib -lflash -ljpeg -lz -L$(X11BASE)/lib -lXt
X 
X SRC= plugin.c npunix.c
X OBJ= plugin.o npunix.o
X@@ -45,7 +45,7 @@
X 
X default all: $(SHAREDTARGET)
X 
X-$(SHAREDTARGET): $(OBJ) $(FLASH)/libflash.a
X+$(SHAREDTARGET): $(OBJ)
X 	$(LD) $(SHARED) -o $(SHAREDTARGET) $(OBJ) $(LDFLAGS)
X 
X plugin.o: $(FLASH)/flash.h
END-of-flashplugin-firefox/files/patch-aa
echo x - flashplugin-firefox/files/patch-plugin.c
sed 's/^X//' >flashplugin-firefox/files/patch-plugin.c << 'END-of-flashplugin-firefox/files/patch-plugin.c'
X*** plugin.c.old	Mon Jun 12 10:24:09 2000
X--- plugin.c	Mon Sep 30 00:48:40 2002
X***************
X*** 193,198 ****
X--- 193,207 ----
X  			XSync(This->dpy,False);
X  			XFreePixmap(This->dpy, This->canvas);
X  			shmdt(This->segInfo.shmaddr);
X+ #ifndef linux
X+ 			{
X+ 				struct shmid_ds buf;
X+ 
X+ 			if (shmctl(This->segInfo.shmid, IPC_RMID, &buf) < 0) {
X+ 				perror("shmctl");
X+ 				}
X+ 			}
X+ #endif
X  
X  			FlashClose(This->fh);
X  			This->fh = 0;
END-of-flashplugin-firefox/files/patch-plugin.c
echo x - flashplugin-firefox/Makefile
sed 's/^X//' >flashplugin-firefox/Makefile << 'END-of-flashplugin-firefox/Makefile'
X# New ports collection makefile for:	flashplugin-firefox
X# Date created:				16.07.2004
X# Whom:					Roman Y. Bogdanov <sam@brj.pp.ru>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	flashplugin-firefox
XPORTVERSION=	0.4.10
XPORTREVISION=	1
XCATEGORIES=	www
XMASTER_SITES=	http://www.swift-tools.net/Flash/
XDISTNAME=	flash-${PORTVERSION}
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	sam@brj.pp.ru
XCOMMENT=	A GPL standalone Flash (TM) plugin for FireFox web browser
X
XLIB_DEPENDS=	flash.0:${PORTSDIR}/graphics/libflash
XRUN_DEPENDS?=   firefox:${PORTSDIR}/www/firefox
X
XUSE_X_PREFIX=	yes
X
XWRKSRC=		${WRKDIR}/${DISTNAME}/Plugin
XPLUGIN_DIR?=	lib/firefox/lib/firefox-0.9.1/plugins
XPLIST_SUB+=	PLUGIN_DIR=${PLUGIN_DIR}
X
Xdo-install:
X	@${MKDIR} ${PREFIX}/${PLUGIN_DIR}
X	@${INSTALL_PROGRAM} ${WRKSRC}/npflash.so ${PREFIX}/${PLUGIN_DIR}
X
X.include <bsd.port.mk>
END-of-flashplugin-firefox/Makefile
echo x - flashplugin-firefox/distinfo
sed 's/^X//' >flashplugin-firefox/distinfo << 'END-of-flashplugin-firefox/distinfo'
XMD5 (flash-0.4.10.tgz) = 1473f085c599d8076fa866cd91e11598
XSIZE (flash-0.4.10.tgz) = 358995
END-of-flashplugin-firefox/distinfo
echo x - flashplugin-firefox/pkg-descr
sed 's/^X//' >flashplugin-firefox/pkg-descr << 'END-of-flashplugin-firefox/pkg-descr'
XThis is GPL standalone Flash (TM) Plugin, that comes with FlashLib
X(libflash) distribution.
X
XAuthor:	Olivier Debon <olivier@debon.net>
XWWW:	http://www.swift-tools.net/Flash/
END-of-flashplugin-firefox/pkg-descr
echo x - flashplugin-firefox/pkg-plist
sed 's/^X//' >flashplugin-firefox/pkg-plist << 'END-of-flashplugin-firefox/pkg-plist'
X%%PLUGIN_DIR%%/npflash.so
X@unexec rmdir %%PLUGIN_DIR%% 2>/dev/null || true
END-of-flashplugin-firefox/pkg-plist
exit
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407152008.i6FK8Kg2074804>