From 36f1be63193d126210b9433996d723da5eb3fa56 Mon Sep 17 00:00:00 2001 From: jasper Date: Fri, 26 Jan 2007 15:33:11 +0000 Subject: [PATCH] import mozplugger 1.7.4 MozPlugger is a browser plugin which can show many types of multimedia inside the browser. To accomplish this, MozPlugger uses external programs such as mplayer, xpdf, ... submitted by Tobias Ulmer (MAINTAINER) ok wilfried@ --- www/mozplugger/Makefile | 44 ++ www/mozplugger/distinfo | 4 + www/mozplugger/patches/patch-Makefile | 53 +++ www/mozplugger/patches/patch-mozpluggerrc | 467 ++++++++++++++++++++++ www/mozplugger/pkg/DESCR | 3 + www/mozplugger/pkg/MESSAGE | 24 ++ www/mozplugger/pkg/PLIST | 9 + 7 files changed, 604 insertions(+) create mode 100644 www/mozplugger/Makefile create mode 100644 www/mozplugger/distinfo create mode 100644 www/mozplugger/patches/patch-Makefile create mode 100644 www/mozplugger/patches/patch-mozpluggerrc create mode 100644 www/mozplugger/pkg/DESCR create mode 100644 www/mozplugger/pkg/MESSAGE create mode 100644 www/mozplugger/pkg/PLIST diff --git a/www/mozplugger/Makefile b/www/mozplugger/Makefile new file mode 100644 index 00000000000..07a122783ca --- /dev/null +++ b/www/mozplugger/Makefile @@ -0,0 +1,44 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2007/01/26 15:33:11 jasper Exp $ + +SHARED_ONLY= Yes +COMMENT= "load programs inside browser to view movies, pdfs, etc" +DISTNAME= mozplugger-1.7.4 +CATEGORIES= www + +HOMEPAGE= http://mozplugger.mozdev.org +MAINTAINER= Tobias Ulmer + +# GPLv2 +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes +WANTLIB= X11 c + +MASTER_SITES= ${HOMEPAGE}/files/ + +USE_X11= Yes +NO_REGRESS= Yes +ALL_TARGET= openbsd + +FLAVORS= debug +FLAVOR?= + +# set TMPDIR before starting browser. A 'mozdebug' +# file is generated in that location. +.if ${FLAVOR:L} == "debug" +DEBUG= -g +CFLAGS+= -DDEBUG +.endif + +do-install: + ${INSTALL_PROGRAM} ${WRKBUILD}/mozplugger-helper ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKBUILD}/mozplugger-controller ${PREFIX}/bin + ${INSTALL_DATA_DIR} ${PREFIX}/lib/mozilla-plugins + ${INSTALL_DATA} ${WRKBUILD}/mozplugger.so ${PREFIX}/lib/mozilla-plugins + ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mozplugger + ${INSTALL_DATA} ${WRKSRC}/mozpluggerrc \ + ${PREFIX}/share/examples/mozplugger + ${INSTALL_MAN} ${WRKSRC}/mozplugger.7 ${PREFIX}/man/man7 + +.include diff --git a/www/mozplugger/distinfo b/www/mozplugger/distinfo new file mode 100644 index 00000000000..344340c5faf --- /dev/null +++ b/www/mozplugger/distinfo @@ -0,0 +1,4 @@ +MD5 (mozplugger-1.7.4.tar.gz) = db4f27a72fb16c512c33f0324768bb4e +RMD160 (mozplugger-1.7.4.tar.gz) = c91274ceb5c617d3036f4e86e5320efc727af780 +SHA1 (mozplugger-1.7.4.tar.gz) = 7aaa8e95fa53f3b78d455d7ec69044a882dd3e4c +SIZE (mozplugger-1.7.4.tar.gz) = 54088 diff --git a/www/mozplugger/patches/patch-Makefile b/www/mozplugger/patches/patch-Makefile new file mode 100644 index 00000000000..32bbeb45eda --- /dev/null +++ b/www/mozplugger/patches/patch-Makefile @@ -0,0 +1,53 @@ +$OpenBSD: patch-Makefile,v 1.1.1.1 2007/01/26 15:33:11 jasper Exp $ +--- Makefile.orig Wed Jan 17 18:17:35 2007 ++++ Makefile Fri Jan 26 13:49:23 2007 +@@ -1,5 +1,5 @@ + # Where is your Xwindows located? +-X11=/usr/X11R6 ++#X11=/usr/X11R6 + + # + # For building rpms +@@ -14,8 +14,8 @@ prefix=/usr + RPMDIR=/usr/src/RPM + + # Choose compiler +-CC=gcc +-LD=gcc ++#CC=gcc ++#LD=gcc + BINFORMAT=bin + + any: +@@ -63,7 +63,7 @@ freebsd: + ${MAKE} all CC=gcc XCFLAGS=-fPIC LD=gcc XLDFLAGS=-shared X11=/usr/X11R6/ + + openbsd: +- ${MAKE} all CC=gcc XCFLAGS=-fPIC LD=gcc XLDFLAGS=-shared X11=/usr/X11R6/ ++ ${MAKE} all XCFLAGS=-fPIC LD=${CC} XLDFLAGS=-shared X11=${X11BASE} + + auto: + @case "x`uname`" in \ +@@ -93,7 +93,8 @@ BIN_FILES=mozplugger.so mozplugger-helpe + + DEFINES=$(STREAM) -DVERSION=\"$(VERSION)\" #-Wall -DDEBUG #-D__amd64__ + RPM_OPT_FLAGS=-O2 +-COMMON_CFLAGS=$(RPM_OPT_FLAGS) -Inpapi/include -I$(X11)/include -DXP_UNIX $(DEFINES) ++#COMMON_CFLAGS=$(RPM_OPT_FLAGS) -Inpapi/include -I$(X11)/include -DXP_UNIX $(DEFINES) ++COMMON_CFLAGS=-Inpapi/include -I$(X11)/include -DXP_UNIX $(DEFINES) + COMMON_LDFLAGS= + NORM_CFLAGS= + NORM_LDFLAGS= +@@ -103,9 +104,9 @@ XLIBDIR = $(X11)/lib + XLIBS=-lX11 -L$(XLIBDIR) + + LDSHARED=$(LD) $(XLDFLAGS) +-CFLAGS = $(COMMON_CFLAGS) $(NORM_CFLAGS) +-LDFLAGS=$(COMMON_LDFLAGS) $(NORM_LDFLAGS) +-SHARED_CFLAGS=$(COMMON_CFLAGS) $(XCFLAGS) ++SHARED_CFLAGS=${CFLAGS} $(COMMON_CFLAGS) $(XCFLAGS) ++CFLAGS += $(COMMON_CFLAGS) $(NORM_CFLAGS) ++LDFLAGS += $(COMMON_LDFLAGS) $(NORM_LDFLAGS) + + all: mozplugger.so mozplugger-helper mozplugger-controller + diff --git a/www/mozplugger/patches/patch-mozpluggerrc b/www/mozplugger/patches/patch-mozpluggerrc new file mode 100644 index 00000000000..9d489c078a0 --- /dev/null +++ b/www/mozplugger/patches/patch-mozpluggerrc @@ -0,0 +1,467 @@ +$OpenBSD: patch-mozpluggerrc,v 1.1.1.1 2007/01/26 15:33:13 jasper Exp $ +--- mozpluggerrc.orig Wed Jan 17 18:16:13 2007 ++++ mozpluggerrc Fri Jan 26 13:49:23 2007 +@@ -36,7 +36,7 @@ ifdef([ENABLE_HELPERS],[ + + ### MPlayer + +-define(MP_CMD,[mplayer -really-quiet -nojoystick -nofs -zoom -vo xv,x11 -ao esd,alsa,oss,arts,null -osdlevel 0 $1 /dev/audio ++#audio/basic:au,snd:Basic audio file ++#audio/x-basic:au,snd:Basic audio file ++# controls: play "$file" ++# controls: sox "$file" -t .au - > /dev/audio + +-audio/wav:wav:Microsoft wave file +-audio/x-wav:wav:Microsoft wave file +-audio/x-pn-wav:wav:Microsoft wave file +-audio/x-pn-windows-acm:wav:Microsoft wave file +- controls: play "$file" +- controls: wavplay -q "$file" +- controls noisy: bplay "$file" +- controls: splay "$file" +- HELPER(xmms -e -p "$file") +- repeat noisy swallow(alsaplayer): alsaplayer -q "$file" ++#audio/wav:wav:Microsoft wave file ++#audio/x-wav:wav:Microsoft wave file ++#audio/x-pn-wav:wav:Microsoft wave file ++#audio/x-pn-windows-acm:wav:Microsoft wave file ++# controls: play "$file" ++# controls: wavplay -q "$file" ++# controls noisy: bplay "$file" ++# controls: splay "$file" ++# HELPER(xmms -e -p "$file") ++# repeat noisy swallow(alsaplayer): alsaplayer -q "$file" + +-audio/x-pn-realaudio-plugin:rpm:RealPlayer Plugin Metafile +-audio/x-pn-realaudio:ra,rm,ram:Realaudio-plugin resource locator +-audio/x-realaudio:ra,rm,ram:RealAudio file +-application/vnd.rn-realmedia:rm:RealMedia file +-application/smil:smi:RealPlayer +-audio/vnd.rn-realaudio:ra,ram:RealAudio file +-audio/vnd.rn-realvideo:rv:RealVideo file +- nokill stream: hxplay "$file" +- nokill stream: realplay "$file" ++#audio/x-pn-realaudio-plugin:rpm:RealPlayer Plugin Metafile ++#audio/x-pn-realaudio:ra,rm,ram:Realaudio-plugin resource locator ++#audio/x-realaudio:ra,rm,ram:RealAudio file ++#application/vnd.rn-realmedia:rm:RealMedia file ++#application/smil:smi:RealPlayer ++#audio/vnd.rn-realaudio:ra,ram:RealAudio file ++#audio/vnd.rn-realvideo:rv:RealVideo file ++# nokill stream: hxplay "$file" ++# nokill stream: realplay "$file" + +-audio/x-ms-wax:wax,wma:Windows Media +- MP_AUDIO_STREAM() +- TM_AUDIO_STREAM() ++#audio/x-ms-wax:wax,wma:Windows Media ++# MP_AUDIO_STREAM() ++# TM_AUDIO_STREAM() + + ####################### + ### Documents ### + ####################### + +-image/sun-raster:rs:SUN raster image +-image/x-sun-raster:rs:SUN raster image +-image/x-rgb:rgb:RGB Image +-image/x-portable-pixmap:ppm:PPM Image +-image/x-portable-graymap:pgm:PGM Image +-image/x-portable-bitmap:pbm:PBM Image +-image/x-portable-anymap:pnm:PBM Image +-image/tiff:tiff,tif:TIFF image +-image/x-tiff:tiff,tif:TIFF image +- exits: display -window $window -backdrop "$file" +- repeat noisy swallow(gqview) fill: gqview -t "$file" +- swallow(:) maxaspect: xv -ima -igeom +9000+9000 -geometry +9000+9000 "$file" +- repeat swallow(display): display "$file" +- repeat swallow(Sdtimage) fill: sdtimage "$file" +- swallow(*qiv:) fill maxaspect: qiv -n "$file" ++#image/sun-raster:rs:SUN raster image ++#image/x-sun-raster:rs:SUN raster image ++#image/x-rgb:rgb:RGB Image ++#image/x-portable-pixmap:ppm:PPM Image ++#image/x-portable-graymap:pgm:PGM Image ++#image/x-portable-bitmap:pbm:PBM Image ++#image/x-portable-anymap:pnm:PBM Image ++#image/tiff:tiff,tif:TIFF image ++#image/x-tiff:tiff,tif:TIFF image ++# exits: display -window $window -backdrop "$file" ++# repeat noisy swallow(gqview) fill: gqview -t "$file" ++# swallow(:) maxaspect: xv -ima -igeom +9000+9000 -geometry +9000+9000 "$file" ++# repeat swallow(display): display "$file" ++# repeat swallow(Sdtimage) fill: sdtimage "$file" ++# swallow(*qiv:) fill maxaspect: qiv -n "$file" + +-image/x-xcf:xcf:Gimp Image +-image/xcf:xcf:Gimp Image +-application/x-gimp:xcf:Gimp Image +-application/gimp:xcf:Gimp Image +- exits: display -window $window -backdrop "$file" +- repeat swallow(display) fill: display "$file" ++#image/x-xcf:xcf:Gimp Image ++#image/xcf:xcf:Gimp Image ++#application/x-gimp:xcf:Gimp Image ++#application/gimp:xcf:Gimp Image ++# exits: display -window $window -backdrop "$file" ++# repeat swallow(display) fill: display "$file" + +-application/photoshop:psd:PhotoShop Image +-application/x-photoshop:psd:PhotoShop Image +- exits: display -window $window -backdrop "$file" +- repeat swallow(display) fill: display "$file" ++#application/photoshop:psd:PhotoShop Image ++#application/x-photoshop:psd:PhotoShop Image ++# exits: display -window $window -backdrop "$file" ++# repeat swallow(display) fill: display "$file" + + application/pdf:pdf:PDF file + application/x-pdf:pdf:PDF file + text/pdf:pdf:PDF file + text/x-pdf:pdf:PDF file +- repeat swallow(acroread) fill: acroread7 -openInNewWindow "$file" +- repeat swallow(documentShell) fill: acroread5 -geometry +9000+9000 +useFrontEndProgram "$file" +- repeat noisy swallow(evince) fill: evince "$file" + repeat noisy swallow(kpdf) fill: kpdf "$file" ++ repeat noisy swallow(evince) fill: evince "$file" ++ repeat swallow(acroread) fill: acroread -openInNewWindow "$file" + repeat noisy swallow(Xpdf) fill: xpdf -g +9000+9000 "$file" + GV() + +@@ -289,78 +293,79 @@ application/x-dvi:dvi:DVI file + + application/x-postscript:ps:PostScript file + application/postscript:ps:PostScript file +- GV() ++ repeat noisy swallow(kpdf) fill: kpdf "$file" + repeat noisy swallow(evince) fill: evince "$file" ++ GV() + +-application/x-rtf:rtf:Rich Text Format +-application/rtf:rtf:Rich Text Format +-text/rtf:rtf:Rich Text Format +- OO() +- repeat noisy swallow(AbiWord) fill: abiword --nosplash --geometry +9000+9000 "$file" +- repeat noisy swallow(kword): kword "$file" +- repeat noisy swallow(Ted) fill: Ted "$file" ++#application/x-rtf:rtf:Rich Text Format ++#application/rtf:rtf:Rich Text Format ++#text/rtf:rtf:Rich Text Format ++# OO() ++# repeat noisy swallow(AbiWord) fill: abiword --nosplash --geometry +9000+9000 "$file" ++# repeat noisy swallow(kword): kword "$file" ++# repeat noisy swallow(Ted) fill: Ted "$file" + +-application/x-msword:doc,dot:Microsoft Word Document +-application/msword:doc,dot:Microsoft Word Document +- OO() +- repeat noisy swallow(kword): kword "$file" +- repeat noisy swallow(AbiWord) fill: abiword --nosplash --geometry +9000+9000 "$file" ++#application/x-msword:doc,dot:Microsoft Word Document ++#application/msword:doc,dot:Microsoft Word Document ++# OO() ++# repeat noisy swallow(kword): kword "$file" ++# repeat noisy swallow(AbiWord) fill: abiword --nosplash --geometry +9000+9000 "$file" + +-application/vnd.ms-excel:xls,xlb:Microsoft Excel Document +- OO() +- repeat swallow(Gnumeric) fill: gnumeric "$file" ++#application/vnd.ms-excel:xls,xlb:Microsoft Excel Document ++# OO() ++# repeat swallow(Gnumeric) fill: gnumeric "$file" + + # OpenOffice MimeTypes (http://framework.openoffice.org/documentation/mimetypes/mimetypes.html) +-application/vnd.sun.xml.writer:sxw:OpenOffice Writer 6.0 documents +-application/so7_vnd.sun.xml.writer:sxw:OpenOffice Writer 7.0 documents +-application/vnd.sun.xml.writer.template:stw:OpenOffice Writer 6.0 templates +-application/vnd.sun.xml.writer.global:sxg:OpenOffice Writer 6.0 global documents +-application/vnd.stardivision.writer:sdw:StarWriter 5.x documents +-application/vnd.stardivision.writer-global:sgl:StarWriter 5.x global documents +-application/x-starwriter:sdw:StarWriter 4.x documents +- OO() ++#application/vnd.sun.xml.writer:sxw:OpenOffice Writer 6.0 documents ++#application/so7_vnd.sun.xml.writer:sxw:OpenOffice Writer 7.0 documents ++#application/vnd.sun.xml.writer.template:stw:OpenOffice Writer 6.0 templates ++#application/vnd.sun.xml.writer.global:sxg:OpenOffice Writer 6.0 global documents ++#application/vnd.stardivision.writer:sdw:StarWriter 5.x documents ++#application/vnd.stardivision.writer-global:sgl:StarWriter 5.x global documents ++#application/x-starwriter:sdw:StarWriter 4.x documents ++# OO() + +-application/vnd.sun.xml.calc:sxc:OpenOffice Calc 6.0 spreadsheets +-application/so7_vnd.sun.xml.calc:sxc:OpenOffice Calc 7.0 spreadsheets +-application/vnd.sun.xml.calc.template:stc:OpenOffice Calc 6.0 templates +-application/vnd.stardivision.calc:sdc:StarCalc 5.x spreadsheets +-application/x-starcalc:sdc:StarCalc 4.x spreadsheets +-application/vnd.lotus-1-2-3: 123, wk1: Lotus 1-2-3 Document +- OO() ++#application/vnd.sun.xml.calc:sxc:OpenOffice Calc 6.0 spreadsheets ++#application/so7_vnd.sun.xml.calc:sxc:OpenOffice Calc 7.0 spreadsheets ++#application/vnd.sun.xml.calc.template:stc:OpenOffice Calc 6.0 templates ++#application/vnd.stardivision.calc:sdc:StarCalc 5.x spreadsheets ++#application/x-starcalc:sdc:StarCalc 4.x spreadsheets ++#application/vnd.lotus-1-2-3: 123, wk1: Lotus 1-2-3 Document ++# OO() + +-application/vnd.sun.xml.draw:sxd:OpenOffice Draw 6.0 documents +-application/so7_vnd.sun.xml.draw:sxc:StarOffice Draw 7.0 documents +-application/vnd.sun.xml.draw.template:std:OpenOffice Draw 6.0 templates +-application/vnd.stardivision.draw:sda:StarDraw 5.x documents +-application/x-stardraw:sda:StarDraw 4.x documents +- OO() ++#application/vnd.sun.xml.draw:sxd:OpenOffice Draw 6.0 documents ++#application/so7_vnd.sun.xml.draw:sxc:StarOffice Draw 7.0 documents ++#application/vnd.sun.xml.draw.template:std:OpenOffice Draw 6.0 templates ++#application/vnd.stardivision.draw:sda:StarDraw 5.x documents ++#application/x-stardraw:sda:StarDraw 4.x documents ++# OO() + +-application/vnd.sun.xml.impress:sxi:OpenOffice Impress 6.0 presentations +-application/so7_vnd.sun.xml.impress:sxi:StarOffice 7.0 Impress presentations +-application/vnd.sun.xml.impress.template:sti:OpenOffice Impress 6.0 templates +-application/vnd.stardivision.impress:sdd:StarImpress 5.x presentations +-application/vnd.stardivision.impress-packed:sdp:StarImpress Packed 5.x files +-application/x-starimpress:sdd:StarImpress 4.x presentations +-application/vnd.ms-powerpoint:ppt:PowerPoint Slideshow +-application/mspowerpoint:ppt,ppz,pps,pot:PowerPoint Slideshow +- OO() ++#application/vnd.sun.xml.impress:sxi:OpenOffice Impress 6.0 presentations ++#application/so7_vnd.sun.xml.impress:sxi:StarOffice 7.0 Impress presentations ++#application/vnd.sun.xml.impress.template:sti:OpenOffice Impress 6.0 templates ++#application/vnd.stardivision.impress:sdd:StarImpress 5.x presentations ++#application/vnd.stardivision.impress-packed:sdp:StarImpress Packed 5.x files ++#application/x-starimpress:sdd:StarImpress 4.x presentations ++#application/vnd.ms-powerpoint:ppt:PowerPoint Slideshow ++#application/mspowerpoint:ppt,ppz,pps,pot:PowerPoint Slideshow ++# OO() + +-application/vnd.sun.xml.math:sxm:OpenOffice Math 6.0 documents +-application/so7_vnd.sun.xml.math:sxm:StarOffice 7.0 Math documents +-application/vnd.stardivision.math:smf:StarMath 5.x documents +-application/x-starmath:smf:StarMath 4.x documents +- OO() ++#application/vnd.sun.xml.math:sxm:OpenOffice Math 6.0 documents ++#application/so7_vnd.sun.xml.math:sxm:StarOffice 7.0 Math documents ++#application/vnd.stardivision.math:smf:StarMath 5.x documents ++#application/x-starmath:smf:StarMath 4.x documents ++# OO() + +-application/vnd.oasis.opendocument.text:odt,ODT:OASIS OpenDocument Text +- OO() ++#application/vnd.oasis.opendocument.text:odt,ODT:OASIS OpenDocument Text ++# OO() + +-application/vnd.oasis.opendocument.spreadsheet:ods,ODS:OASIS OpenDocument SpreadSheet +- OO() ++#application/vnd.oasis.opendocument.spreadsheet:ods,ODS:OASIS OpenDocument SpreadSheet ++# OO() + +-application/vnd.oasis.opendocument.presentation:odp,ODP:OASIS OpenDocument Presentation +- OO() ++#application/vnd.oasis.opendocument.presentation:odp,ODP:OASIS OpenDocument Presentation ++# OO() + +-chemical/x-pdb:pdb: Protein Data Bank file +-model/x-pdb:pdb: Protein Data Bank file +- swallow(rasmol) fill: rasmol "$file" +- swallow(molecule) fill: /usr/X11R6/lib/xscreensaver/molecule -delay 20000 -geometry +9000+9000 -no-spin -molecule "$file" ++#chemical/x-pdb:pdb: Protein Data Bank file ++#model/x-pdb:pdb: Protein Data Bank file ++# swallow(rasmol) fill: rasmol "$file" ++# swallow(molecule) fill: /usr/X11R6/lib/xscreensaver/molecule -delay 20000 -geometry +9000+9000 -no-spin -molecule "$file" diff --git a/www/mozplugger/pkg/DESCR b/www/mozplugger/pkg/DESCR new file mode 100644 index 00000000000..511efac8467 --- /dev/null +++ b/www/mozplugger/pkg/DESCR @@ -0,0 +1,3 @@ +MozPlugger is a browser plugin which can show many types of multimedia +inside the browser. To accomplish this, MozPlugger uses external +programs such as mplayer, xpdf, ... diff --git a/www/mozplugger/pkg/MESSAGE b/www/mozplugger/pkg/MESSAGE new file mode 100644 index 00000000000..0f3f395cd55 --- /dev/null +++ b/www/mozplugger/pkg/MESSAGE @@ -0,0 +1,24 @@ +MozPlugger by itself isn't very useful. You might want to install some +of the following packages: + +For pdf: + * kdegraphics (kpdf) + * epdfview + * evince + * xpdf + * gv + * acroread + + +For ps: + * kdegraphics (kpdf) + * evince + * gv + +For dvi: + * kdegraphics (kdvi) + * teTeX_base (xdvi) + +For wmv, asf, mp4, mov, mpeg, avi (blobs..): + * mplayer + win32-codecs + * xanim diff --git a/www/mozplugger/pkg/PLIST b/www/mozplugger/pkg/PLIST new file mode 100644 index 00000000000..16611b444a1 --- /dev/null +++ b/www/mozplugger/pkg/PLIST @@ -0,0 +1,9 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2007/01/26 15:33:11 jasper Exp $ +bin/mozplugger-controller +bin/mozplugger-helper +lib/mozilla-plugins/ +lib/mozilla-plugins/mozplugger.so +@man man/man7/mozplugger.7 +share/examples/mozplugger/ +share/examples/mozplugger/mozpluggerrc +@sample ${SYSCONFDIR}/mozpluggerrc