Date: Thu, 9 Aug 2001 20:31:25 -0700 (PDT) From: John Merryweather Cooper <jmcoopr@webmail.bmi.net> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/29585: Update Plugger-3.3 to use Mozilla, etc. Message-ID: <200108100331.f7A3VPM80395@johncoop.MSHOME>
next in thread | raw e-mail | index | archive | help
>Number: 29585 >Category: ports >Synopsis: Update Plugger-3.3 to use Mozilla, etc. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Aug 09 20:40:04 PDT 2001 >Closed-Date: >Last-Modified: >Originator: John Merryweather Cooper >Release: FreeBSD 4.4-PRERELEASE i386 >Organization: >Environment: System: FreeBSD johncoop.MSHOME 4.4-PRERELEASE FreeBSD 4.4-PRERELEASE #0: Mon Aug 6 21:38:31 PDT 2001 root@johncoop.MSHOME:/usr/obj/usr/src/sys/JOHNCOOP i386 >Description: Given that native Netscape is marked FORBIDDEN in ports, Plugger has been well nuy useless. However, I have found it works well with Mozilla. I have update the port. In particular, CFLAGS is now respected. I think I have also rationalized the configuration install. Also, I've modified pluggerrc so that things should work-out-of- the-box even for those of us not equipped with "authentic" Sound Blaster(tm) hardware. >How-To-Repeat: N/A >Fix: diff -ruN plugger/Makefile plugger.new/Makefile --- plugger/Makefile Thu Apr 5 23:05:55 2001 +++ plugger.new/Makefile Thu Aug 9 20:17:21 2001 @@ -2,21 +2,30 @@ # Date created: 11 Februrary 1999 # Whom: Jay Sachs <sachs@cs.williams.edu> # -# $FreeBSD: ports/www/plugger/Makefile,v 1.8 2001/04/06 06:05:55 mharo Exp $ +# $FreeBSD$ # PORTNAME= plugger PORTVERSION= 3.3 -CATEGORIES= www +PORTREVISION= 1 +CATEGORIES= www audio graphics MASTER_SITES= http://fredrik.hubbe.net/plugger/ \ ftp://ftp.netscape.com/pub/sdk/plugin/unix/ DISTFILES= ${DISTNAME}${EXTRACT_SUFX} unix-sdk-3.0b5.tar.Z -MAINTAINER= ports@FreeBSD.org +MAINTAINER= jmcoopr@webmail.bmi.net -RUN_DEPENDS= ${LOCALBASE}/lib/netscape/plugins:${PORTSDIR}/www/netscape47-navigator +RUN_DEPENDS= ${X11BASE}/bin/mozilla:${PORTSDIR}/www/mozilla \ + ${LOCALBASE}/bin/mtvp:${PORTSDIR}/graphics/mtv \ + ${X11BASE}/bin/xanim:${PORTSDIR}/graphics/xanim \ + ${LOCALBASE}/bin/timidity:${PORTSDIR}/audio/timidity++ \ + ${LOCALBASE}/bin/nspmod:${PORTSDIR}/audio/nspmod \ + ${LOCALBASE}/bin/splay:${PORTSDIR}/audio/splay \ + ${LOCALBASE}/bin/wavplay:${PORTSDIR}/audio/wavplay \ + ${LOCALBASE}/bin/sidplay:${PORTSDIR}/audio/sidplay \ + ${LOCALBASE}/bin/xloadimage:${PORTSDIR/x11/xloadimage -#BROKEN_ELF= "Needs a.out c++rt0.o file" +USE_X_PREFIX= yes MAN7= plugger.7 MANCOMPRESSED= no @@ -25,15 +34,15 @@ post-patch: ${MV} ${WRKSRC}/plugger.c ${WRKSRC}/plugger.c.orig ${SED} \ - -e 's#/usr/local/#${PREFIX}/#' \ + -e 's#/usr/local/#${X11BASE}/#' \ ${WRKSRC}/plugger.c.orig > ${WRKSRC}/plugger.c do-install: - ${INSTALL_DATA} ${WRKSRC}/plugger.so ${PREFIX}/lib/netscape/plugins - ${INSTALL_MAN} ${WRKSRC}/plugger.7 ${MANPREFIX}/man/man7 - ${INSTALL_DATA} ${WRKSRC}/pluggerrc ${PREFIX}/etc/pluggerrc.sample + ${INSTALL_MAN} ${WRKSRC}/plugger.7 ${X11BASE}/man/man7 + ${INSTALL_PROGRAM} ${WRKSRC}/plugger.so ${X11BASE}/lib/mozilla/plugins + ${INSTALL_DATA} -b ${WRKSRC}/pluggerrc /etc post-install: - @${CAT} ${PKGMESSAGE} | ${SED} -e 's:/usr/local:${PREFIX}:' + @${CAT} ${PKGMESSAGE} | ${SED} -e 's:/usr/local:${X11BASE}:' .include <bsd.port.mk> diff -ruN plugger/files/patch-Makefile plugger.new/files/patch-Makefile --- plugger/files/patch-Makefile Wed Dec 31 16:00:00 1969 +++ plugger.new/files/patch-Makefile Thu Aug 9 16:47:11 2001 @@ -0,0 +1,41 @@ +--- Makefile Tue Mar 6 16:37:41 2001 ++++ Makefile.new Thu Aug 9 16:46:37 2001 +@@ -1,8 +1,8 @@ + # Where is your Plugin Source Development Kit from Netscape? +-SDK=/home/hubbe/src/PluginSDK30b5 ++SDK=../PluginSDK30b5 + + # Where is your Xwindows located? +-X11=/usr/X11/ ++X11=${X11BASE} + + # + # For building rpms +@@ -10,15 +10,15 @@ + + # You may want to change this to /usr/ on + # some installations. +-prefix=/usr/local ++prefix=${PREFIX} + + # + # + RPMDIR=/usr/src/redhat + + # Choose compiler +-CC=gcc +-LD=gcc ++#CC=gcc ++#LD=gcc + BINFORMAT=bin + + any: +@@ -91,7 +91,7 @@ + BIN_FILES=plugger.so + + DEFINES=$(STREAM) -DVERSION=\"$(VERSION)\" # -DDEBUG # -DPLUGIN_TRACE +-CFLAGS=-O -I$(SDK)/include -I$(X11)/include -DXP_UNIX $(DEFINES) $(XCFLAGS) ++CFLAGS+=-I$(SDK)/include -I$(X11)/include -DXP_UNIX $(DEFINES) $(XCFLAGS) + LDFLAGS=$(XLDFLAGS) + + plugger.so: plugger.o common.o diff -ruN plugger/files/patch-aa plugger.new/files/patch-aa --- plugger/files/patch-aa Thu Apr 5 23:05:55 2001 +++ plugger.new/files/patch-aa Wed Dec 31 16:00:00 1969 @@ -1,32 +0,0 @@ ---- Makefile.orig Tue Mar 6 16:37:41 2001 -+++ Makefile Thu Apr 5 23:03:02 2001 -@@ -1,8 +1,8 @@ - # Where is your Plugin Source Development Kit from Netscape? --SDK=/home/hubbe/src/PluginSDK30b5 -+SDK=../PluginSDK30b5 - - # Where is your Xwindows located? --X11=/usr/X11/ -+X11=${X11BASE} - - # - # For building rpms -@@ -10,15 +10,15 @@ - - # You may want to change this to /usr/ on - # some installations. --prefix=/usr/local -+prefix=${PREFIX} - - # - # - RPMDIR=/usr/src/redhat - - # Choose compiler --CC=gcc --LD=gcc -+#CC=gcc -+#LD=gcc - BINFORMAT=bin - - any: diff -ruN plugger/files/patch-pluggerrc plugger.new/files/patch-pluggerrc --- plugger/files/patch-pluggerrc Wed Dec 31 16:00:00 1969 +++ plugger.new/files/patch-pluggerrc Thu Aug 9 16:41:45 2001 @@ -0,0 +1,26 @@ +--- pluggerrc Tue Mar 6 17:02:41 2001 ++++ pluggerrc.new Thu Aug 9 16:39:02 2001 +@@ -1,4 +1,4 @@ +-# Configure file for plugger version 3.0 ++# Configure file for plugger version 3.3 + # Commands which are not installed on your system will not + # be used. + # +@@ -29,7 +29,7 @@ + audio/x-mid: midi,mid: MIDI audio file + audio/midi: midi,mid: MIDI audio file + audio/x-midi: midi,mid: MIDI audio file +- many: timidity -s 65000 -a -idqqqqqqq $file ++ many: timidity -s 44100 -a -idqqqqqqq $file + : playmidi "$file" + + audio/mod: mod: Soundracker audio Module +@@ -38,7 +38,7 @@ + : xmp --nocmd "$file" 2>/dev/null + loop: nspmod -r "$file" 2>/dev/null 1>/dev/null + repeat: nspmod -l $repeat "$file" 2>/dev/null 1>/dev/null +- : tracker -q -frequency 65000 "$file" ++ : tracker -q -frequency 44100 "$file" + loop: mikmod -i -r "$file" 2>/dev/null 1>/dev/null + : mikmod -i "$file" 2>/dev/null 1>/dev/null + diff -ruN plugger/pkg-comment plugger.new/pkg-comment --- plugger/pkg-comment Fri Jun 25 15:14:27 1999 +++ plugger.new/pkg-comment Thu Aug 9 17:13:08 2001 @@ -1 +1 @@ -A multimedia front-end plugin for Netscape +A multimedia front-end plugin for Mozilla diff -ruN plugger/pkg-descr plugger.new/pkg-descr --- plugger/pkg-descr Fri Jun 25 15:14:27 1999 +++ plugger.new/pkg-descr Thu Aug 9 17:15:34 2001 @@ -1,12 +1,12 @@ Plugger is a multimedia plugin for Unix Netscape 3.0 or later that handles Quicktime, MPEG, MP2, AVI, SGI-movie, Tiff, DL, IFF-anim, -MIDI, Soundtracker, AU, WAV and Commodore 64 audio files. And now, -with Plugger 3.0, MPEG audio and video can be played streaming. +MIDI, Soundtracker, AU, WAV and Commodore 64 audio files. Since +Plugger 3.0, MPEG audio and video can be played streaming. Plugger is a very small plugin, because plugger uses external programs to show/play the different formats. WWW: http://www.hubbe.net/~hubbe/plugger.html --Jay - sachs@cs.williams.edu +--jmc +jmcoopr@webmail.bmi.net diff -ruN plugger/pkg-message plugger.new/pkg-message --- plugger/pkg-message Fri Jun 25 15:14:27 1999 +++ plugger.new/pkg-message Thu Aug 9 20:18:58 2001 @@ -3,12 +3,31 @@ ************************************************** NOTE: -Be sure to create a /usr/local/etc/pluggerrc file; use -/usr/local/etc/pluggerrc.sample as a starting point. -It should work fine as is. +Edit the /etc/pluggerrc file as needed. It should +work fine as is. If you had a previous /etc/pluggerrc +file, it will be renamed /etc/pluggerrc.old. -Also note that you will need the various external viewers -(splay, xanim, etc) in order to view embedded web content. +This Plugger port will install a default set of +multimedia utilities that I have found to work well. +Other combinations may work also. Look at the +pluggerrc file for details. + +Plugger searches for pluggerrc files in the following +order: + +~/.netscape/pluggerrc +~/.mozilla/pluggerrc +$MOZILLA_HOME/pluggerrc (MOZILLA_HOME is usually + equal to HOME) +/usr/local/netscape/pluggerrc +/etc/pluggerrc +/usr/etc/pluggerrc +/usr/local/etc/pluggerrc +./pluggerrc + +Whichever pluggerrc is found first in the above +order will be used--no merging of other pluggerrc's +occurs. You have been warned. ************************************************** ************************************************** diff -ruN plugger/pkg-plist plugger.new/pkg-plist --- plugger/pkg-plist Fri Jun 25 15:14:27 1999 +++ plugger.new/pkg-plist Thu Aug 9 19:46:51 2001 @@ -1,3 +1,2 @@ -lib/netscape/plugins/plugger.so -etc/pluggerrc.sample - +lib/mozilla/plugins/plugger.so +@unexec echo \"NOTE: If you are permanently removing this port, delete /etc/pluggerrc\" >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200108100331.f7A3VPM80395>