Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 May 2004 02:59:09 -0700 (PDT)
From:      "Roman Y. Bogdanov" <sam@brj.pp.ru>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/67032: flashplugin for firefox port
Message-ID:  <200405220959.i4M9x99K092954@www.freebsd.org>
Resent-Message-ID: <200405221000.i4MA0jfc097298@freefall.freebsd.org>

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

>Number:         67032
>Category:       ports
>Synopsis:       flashplugin for firefox port
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 22 03:00:45 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Roman Y. Bogdanov
>Release:        5.2.1
>Organization:
n/a
>Environment:
FreeBSD brj.pp.ru 5.2.1-RELEASE-p7 FreeBSD 5.2.1-RELEASE-p7 #0: Wed May 19 19:07:17 KRAST 2004     root@brj.pp.ru:/usr/obj/usr/src/sys/brj-5x  i386
>Description:
New port flash-plugin 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:				22.05.2004
X# Whom:					Roman Y. Bogdanov <sam@brj.pp.ru>
X#
X# $FreeBSD$
X#
X
XPORTNAME?=	flashplugin-firefox
XPORTVERSION=	0.4.10
XPORTREVISION=	6
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/mozilla-1.6/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?200405220959.i4M9x99K092954>