diff options
author | Norikatsu Shigemura <nork@FreeBSD.org> | 2003-11-20 16:15:23 +0000 |
---|---|---|
committer | Norikatsu Shigemura <nork@FreeBSD.org> | 2003-11-20 16:15:23 +0000 |
commit | 00f93a4696241fd0ca57cbe6adecbd662fab4d1a (patch) | |
tree | 78f48703c208f4f6097e56912c7bb1ad4a99f32f | |
parent | Add home page. (diff) |
Add linuxpluginwrapper 20031120, a wrapper allowing use of
linux-plugins like flash6(almost stable) and acroread5(unstable,
you can use only one shot from boot) with native browsers.
Flash6 |mozilla | firebird | galeon | ephiphany | opera | konquere
------------+--------+----------+--------+-----------+-------+----------
4-stable[*] | OK | OK | OK | OK | OK | OK but...
5-current | OK | OK | OK | OK | NG | OK but...
For konquere user: Please set plugins directory by hand.
Acrobat |mozilla | firebird | galeon | ephiphany | opera | konquere
------------+--------+----------+--------+-----------+-------+----------
4-stable[*] | ONLY
5-current | ONE SHOT USE
[*] patched with http://people.FreeBSD.org/~nork/libmap_4stable.diff
[1] port to NetBSD and try to use realplayer plugin.
[2] use linux-threads.
[3] map libc.so.6 -> pluginwrapper.so idea
Submitted by: Takahiro Igarashi <thir@thir.org> [1]
Joe Kelsey <joek@mail.flyingcroc.net> [2]
t3rra yi <t3rra@hotmail.com> [3]
Tested by: members of C BSD Users Group in Tokyo, Japan (C is Capital?)
and
many many many many many many many people!
Desired by: ume as Trekkie
Yoshihiko Sarumaru <sarumaru@yamayuri.org>
Reviewed by: simokawa, ume, takawata, nectar
Repo copied by: joe (cvs)
Approved by: marcus (portmgr)
Notes
Notes:
svn path=/head/; revision=94495
-rw-r--r-- | www/linuxpluginwrapper/Makefile | 77 | ||||
-rw-r--r-- | www/linuxpluginwrapper/distinfo | 2 | ||||
-rw-r--r-- | www/linuxpluginwrapper/pkg-descr | 6 | ||||
-rw-r--r-- | www/linuxpluginwrapper/pkg-message | 29 | ||||
-rw-r--r-- | www/linuxpluginwrapper/pkg-plist | 11 |
5 files changed, 103 insertions, 22 deletions
diff --git a/www/linuxpluginwrapper/Makefile b/www/linuxpluginwrapper/Makefile index b51463e0535d..bc2b91110781 100644 --- a/www/linuxpluginwrapper/Makefile +++ b/www/linuxpluginwrapper/Makefile @@ -1,36 +1,81 @@ -# New ports collection makefile for: flashpluginwrapper -# Date Created: 13 November 2002 -# Whom: Pete Fritchman <petef@FreeBSD.org> +# New ports collection makefile for: linuxpluginwrapper +# Date Created: 2003-06-15 +# Whom: nork@FreeBSD.org # # $FreeBSD$ # -PORTNAME= flashpluginwrapper -PORTVERSION= 0.20021113 +PORTNAME= linuxpluginwrapper +PORTVERSION= 20031120 CATEGORIES= www linux -MASTER_SITES= ${MASTER_SITE_LOCAL} \ - http://absolutbsd.org/~petef/ -MASTER_SITE_SUBDIR= petef +MASTER_SITES= ${MASTER_SITE_LOCAL} +MASTER_SITE_SUBDIR= nork MAINTAINER= nork@FreeBSD.org -COMMENT= A wrapper allowing use of linux-flashplugin with native mozilla +COMMENT= A wrapper allowing use of linux-plugins with native browsers -RUN_DEPENDS= ${LOCALBASE}/lib/flash/libflashplayer.so:${PORTSDIR}/www/linux-flashplugin +.include <bsd.port.pre.mk> + +LIB_DEPENDS= lthread.${LTHREAD_MAJOR}:${PORTSDIR}/devel/linuxthreads +RUN_DEPENDS= ${LOCALBASE}/Acrobat5/Browsers/intellinux/nppdf.so:${PORTSDIR}/print/acroread5 +RUN_DEPENDS+= ${LOCALBASE}/lib/linux-flashplugin6/libflashplayer.so:${PORTSDIR}/www/linux-flashplugin6 USE_XLIB= yes USE_REINPLACE= yes ONLY_FOR_ARCHS= i386 PKGMESSAGE= ${WRKDIR}/pkg-message +CONFLICTS= flashpluginwrapper-* -post-patch: - @${REINPLACE_CMD} -e 's,/usr/X11R6,${X11BASE},' \ - -e 's,/usr/local,${PREFIX},' ${WRKSRC}/Makefile +.if ${OSVERSION} >= 500035 && defined(LINUXTHREADS_WRAP_API) +LTHREAD_MAJOR= 5 +.elif ${OSVERSION} >= 500035 +LTHREAD_MAJOR= 3 +.elif ${OSVERSION} < 500035 && defined(LINUXTHREADS_WRAP_API) +LTHREAD_MAJOR= 4 +.elif ${OSVERSION} < 500035 +LTHREAD_MAJOR= 2 +.endif -post-install: +.if ${OSVERSION} >= 500000 +LIBMAPCONF= ${WRKSRC}/misc/libmap.conf-FreeBSD5.x +.else +LIBMAPCONF= ${WRKSRC}/misc/libmap.conf-FreeBSD4.x +.endif + +.if ${OSVERSION} >= 501105 +RTLD= /libexec/ld-elf.so.1 +.else +RTLD= /usr/libexec/ld-elf.so.1 +.endif + +.if defined(WITH_DEBUG) +CFLAGS+= -DDEBUG=1 +.endif + +.if !defined(PACKAGE_BUILDING) +pre-everything:: + @if ! ${GREP} libmap.conf ${RTLD} > /dev/null 2>&1; then \ + ${ECHO_MSG} 'Please enable libmap.conf(5) feature for rtld(1).'; \ + ${FALSE}; \ + fi +.endif + +post-build: @${SED} -e 's,%%PREFIX%%,${PREFIX},' \ -e 's,%%LOCALBASE%%,${LOCALBASE},' \ -e 's,%%X11BASE%%,${X11BASE},' \ - < ${FILESDIR}/pkg-message.in > ${PKGMESSAGE} + -e 's,%%LTHREADSHMAJOR%%,${LTHREADSHMAJOR},' \ + -e '/^%%LIBMAPCONF%%$$/r ${LIBMAPCONF}' \ + -e '/^%%LIBMAPCONF%%$$/d' \ + < ${.CURDIR}/pkg-message > ${PKGMESSAGE} + +pre-install: + @${MKDIR} ${X11BASE}/lib/browser_plugins + @${LN} -sf ${LOCALBASE}/Acrobat5/Browsers/intellinux/nppdf.so ${X11BASE}/lib/browser_plugins/ + @${LN} -sf ${LOCALBASE}/lib/linux-flashplugin6/flashplayer.xpt ${X11BASE}/lib/browser_plugins/ + @${LN} -sf ${LOCALBASE}/lib/linux-flashplugin6/libflashplayer.so ${X11BASE}/lib/browser_plugins/ + +post-install: @${CAT} ${PKGMESSAGE} -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/www/linuxpluginwrapper/distinfo b/www/linuxpluginwrapper/distinfo index 72d9515311c5..18b7e72fa5cd 100644 --- a/www/linuxpluginwrapper/distinfo +++ b/www/linuxpluginwrapper/distinfo @@ -1 +1 @@ -MD5 (flashpluginwrapper-0.20021113.tar.gz) = 500f35313a34e4db865104e306f48431 +MD5 (linuxpluginwrapper-20031120.tar.gz) = 7d87aa82b5ae6ae7386c790de839dc6f diff --git a/www/linuxpluginwrapper/pkg-descr b/www/linuxpluginwrapper/pkg-descr index 323ae1a1c2e7..c02c1e688ddc 100644 --- a/www/linuxpluginwrapper/pkg-descr +++ b/www/linuxpluginwrapper/pkg-descr @@ -1,4 +1,2 @@ -A wrapper that allows the use of the Linux flash plugin to work with -a FreeBSD-native binary of mozilla. - -WWW: http://tmp.ninth-nine.com/FlashPluginWrapper/ +A wrapper that allows the use of the Linux plugins to work with +a FreeBSD-native binary of browser supported NSPR. diff --git a/www/linuxpluginwrapper/pkg-message b/www/linuxpluginwrapper/pkg-message new file mode 100644 index 000000000000..b0e99a687d78 --- /dev/null +++ b/www/linuxpluginwrapper/pkg-message @@ -0,0 +1,29 @@ + + DDDD OOOO NN NN TTTTTT NN NN EEEE EEEE DDDD !! + DD DD OO OO NNN NN TT NNN NN EE EE DD DD !! + DD DD OO OO NN NNN TT NN NNN EEEE EEEE DD DD !! + DD DD OO OO NN NN TT NN NN EE EE D DD + DDDD OOOO NN NN TT NN NN EEEE EEEE DDDD !! + +================================================================ +** PLEASE REMOVE FOLLOWING LINES FROM %%X11BASE%%/bin/mozilla ** + +LD_PRELOAD=%%PREFIX%%/lib/pluginwrapper.so +export LD_PRELOAD +================================================================ + + DDDD OOOO NN NN TTTTTT NN NN EEEE EEEE DDDD !! + DD DD OO OO NNN NN TT NNN NN EE EE DD DD !! + DD DD OO OO NN NNN TT NN NNN EEEE EEEE DD DD !! + DD DD OO OO NN NN TT NN NN EE EE D DD + DDDD OOOO NN NN TT NN NN EEEE EEEE DDDD !! + + +Setup your /etc/libmap.conf. +- - - - - - - - - - - - - - - - - - - - - - - - - - - - +%%LIBMAPCONF%% +- - - - - - - - - - - - - - - - - - - - - - - - - - - - + +Now start browser and go to 'about:plugins' and the new plugins +are enabled! + diff --git a/www/linuxpluginwrapper/pkg-plist b/www/linuxpluginwrapper/pkg-plist index b0efcdfe7ec3..30ba6621c9db 100644 --- a/www/linuxpluginwrapper/pkg-plist +++ b/www/linuxpluginwrapper/pkg-plist @@ -1 +1,10 @@ -lib/libflashplayer.so.1 +lib/pluginwrapper/flash6.so +lib/pluginwrapper/acrobat.so +@unexec /bin/rm -f %%X11BASE%%/lib/browser_plugins/nppdf.so +@unexec /bin/rm -f %%X11BASE%%/lib/browser_plugins/flashplayer.xpt +@unexec /bin/rm -f %%X11BASE%%/lib/browser_plugins/libflashplayer.so +@exec /bin/ln -sf %%LOCALBASE%%/Acrobat5/Browsers/intellinux/nppdf.so %%X11BASE%%/lib/browser_plugins/ +@exec /bin/ln -sf %%LOCALBASE%%/linux-flashplugin6/flashplayer.xpt %%X11BASE%%/lib/browser_plugins/ +@exec /bin/ln -sf %%LOCALBASE%%/linux-flashplugin6/libflashplayer.so %%X11BASE%%/lib/browser_plugins/ +@dirrm lib/pluginwrapper +@unexec rmdir %%X11BASE%%/lib/browser_plugins 2>/dev/null || true |