Subject: flash plugins for many browsers
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 10/29/2003 14:42:16
In January, I successfully used install_flash_player_6_linux tar ball from
Macromedia and copied the libflashplayer.so and flashplayer.xpt files to
the /usr/pkg/lib/phoenix-linux/plugins/ directory. On NetBSD, using
Linux compatibility.

Today, I used flashplayer.xp and libflashplayer.so from today's
install_flash_player_6_linux.tar.gz with MozillaFirebird (under Linux
installed with pkgsrc). It appears to work fine.

The install_flash_player_6_linux.tar.gz I retrieved from
Macromedia today appears to have different checksum.
-SHA1 (install_flash_player_6_linux.tar.gz) = ecddda28954ce26882cea0f6578af326d7c6e76c
-Size (install_flash_player_6_linux.tar.gz) = 706066 bytes
+SHA1 (install_flash_player_6_linux.tar.gz) = 2088edbae9816b04cf13ad6b82b0847e917ba234
+Size (install_flash_player_6_linux.tar.gz) = 707027 bytes

It may be good to have these *flash* packages work with different browsers
(that support Netscape-style plugins).

For example:

--- graphics/moz-bin-flash/Makefile	2003/08/28 20:05:19	1.2
+++ graphics/moz-bin-flash/Makefile	2003/10/29 22:35:18
@@ -10,7 +10,13 @@
 HOMEPAGE=	http://www.macromedia.com/
 COMMENT=	Flash player for the linux version of mozilla (binary pkg)

+.include "../../mk/bsd.prefs.mk"
+
+.if (${OPSYS} == "Linux") && (${MACHINE_ARCH} == "i386")
+USE_X11=	YES # defined so will get installed to same PREFIX
+.else
 DEPENDS+=	mozilla-bin-[0-9]*:../../www/mozilla-bin
+.endif

 CONFLICTS+=	mozilla-flash-bin-[0-9]*

@@ -24,12 +30,15 @@
 DOCDIR=		share/doc/moz-bin-flash
 PLIST_SUBST+=	DOCDIR="${DOCDIR}"

+MOZILLA_TYPE?=	mozilla-linux
+PLIST_SUBST+=	MOZILLA_TYPE="${MOZILLA_TYPE}"
+
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/libflashplayer.so ${PREFIX}/lib/mozilla-linux/plugins
-	${INSTALL_DATA} ${WRKSRC}/flashplayer.xpt ${PREFIX}/lib/mozilla-linux/components
+	${INSTALL_PROGRAM} ${WRKSRC}/libflashplayer.so ${PREFIX}/lib/${MOZILLA_TYPE}/plugins
+	${INSTALL_DATA} ${WRKSRC}/flashplayer.xpt ${PREFIX}/lib/${MOZILLA_TYPE}/components

 	${INSTALL_DATA_DIR} ${PREFIX}/${DOCDIR}
 	${INSTALL_DATA}	${WRKSRC}/readme.txt ${PREFIX}/${DOCDIR}
-	${INSTALL_DATA} ${WRKSRC}/ReadMe.htm ${PREFIX}/${DOCDIR}
+	${INSTALL_DATA} ${WRKSRC}/readme.htm ${PREFIX}/${DOCDIR}

 .include "../../mk/bsd.pkg.mk"
Index: graphics/moz-bin-flash/PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/graphics/moz-bin-flash/PLIST,v
retrieving revision 1.1.1.1
diff -b -u -r1.1.1.1 PLIST
--- graphics/moz-bin-flash/PLIST	2003/04/19 04:42:46	1.1.1.1
+++ graphics/moz-bin-flash/PLIST	2003/10/29 22:35:18
@@ -1,6 +1,6 @@
 @comment $NetBSD: PLIST,v 1.1.1.1 2003/04/19 04:42:46 rh Exp $
-lib/mozilla-linux/components/flashplayer.xpt
-lib/mozilla-linux/plugins/libflashplayer.so
+lib/${MOZILLA_TYPE}/components/flashplayer.xpt
+lib/${MOZILLA_TYPE}/plugins/libflashplayer.so
 ${DOCDIR}/readme.txt
-${DOCDIR}/ReadMe.htm
+${DOCDIR}/readme.htm
 @dirrm ${DOCDIR}

By the way, why does it have DOCDIR in PLIST? When can it be customized?

(Ignore the USE_X11 above -- that is because I force X-related to X11BASE.
Which has been working great!)

I also tried pkgsrc moz-flash (open source libflash) with MozillaFirebird
under Linux and i386 but it made MozillaFirebird crash on shockwave sites.

Also related: the download site and homepage for libflash and moz-flash
are now down. (See http://www.swift-tools.com/ .)


Does anyone use moz-flash or moz-bin-flash or ns-flash (is that available
or out-dated?) with Konqueror or opera?

If so, the packages themselves should be customized to allow easy
installation and not force "mozilla".

   Jeremy C. Reed
   http://bsd.reedmedia.net/