Index: ports/www/linuxpluginwrapper/Makefile =================================================================== RCS file: /home/ncvs/ports/www/linuxpluginwrapper/Makefile,v retrieving revision 1.51 diff -u -r1.51 Makefile --- ports/www/linuxpluginwrapper/Makefile 31 Dec 2005 03:03:25 -0000 1.51 +++ ports/www/linuxpluginwrapper/Makefile 4 Apr 2006 12:59:18 -0000 @@ -16,6 +16,10 @@ MAINTAINER= nork@FreeBSD.org COMMENT= A wrapper allowing use of linux-plugins with native applications +OPTIONS= FLASH "install linux-flashplugin" off \ + REALPLAYER "install linux-realplayer" off \ + ACROREAD "install acroread7" off + .include .if ${OSVERSION} >= 700009 @@ -23,10 +27,20 @@ .endif # I will remove WITH_PLUGINS knob. -.if defined(WITH_PLUGINS) +.if defined(WITH_FLASH) RUN_DEPENDS= ${X11BASE}/lib/linux-flashplugin6/libflashplayer.so:${PORTSDIR}/www/linux-flashplugin6 +WITH_PLUGINS= 1 +.endif +.if defined(WITH_REALPLAYER) RUN_DEPENDS+= ${X11BASE}/lib/linux-mozilla/plugins/nphelix.so:${PORTSDIR}/multimedia/linux-realplayer -RUN_DEPENDS+= ${LINUXBASE}/usr/local/Adobe/Acrobat7.0/Browser/intellinux/nppdf.so:${PORTSDIR}/print/acroread7 +WITH_PLUGINS= 1 +.endif +.if defined(WITH_ACROREAD) +RUN_DEPENDS+= ${X11BASE}/Adobe/Acrobat7.0/ENU/Browser/intellinux/nppdf.so:${PORTSDIR}/print/acroread7 +WITH_PLUGINS= 1 +.endif + +.if defined(WITH_PLUGINS) .if ${OSVERSION} < 500000 USE_MOTIF= yes .endif @@ -98,17 +112,23 @@ .if defined(WITH_PLUGINS) pre-install: @${MKDIR} ${X11BASE}/lib/browser_linux_plugins - @${LN} -sf ${LINUXBASE}/usr/local/Adobe/Acrobat7.0/Browser/intellinux/nppdf.so \ +.if defined(WITH_ACROREAD) + @${LN} -sf ${X11BASE}/Adobe/Acrobat7.0/ENU/Browser/intellinux/nppdf.so \ ${X11BASE}/lib/browser_linux_plugins/ +.endif +.if defined(WITH_FLASH) @${LN} -sf ${X11BASE}/lib/linux-flashplugin6/flashplayer.xpt \ ${X11BASE}/lib/browser_linux_plugins/ @${LN} -sf ${X11BASE}/lib/linux-flashplugin6/libflashplayer.so \ ${X11BASE}/lib/browser_linux_plugins/ +.endif +.if defined(WITH_REALPLAYER) @${LN} -sf ${X11BASE}/lib/linux-mozilla/plugins/nphelix.so \ ${X11BASE}/lib/browser_linux_plugins/ @${LN} -sf ${X11BASE}/lib/linux-mozilla/plugins/nphelix.xpt \ ${X11BASE}/lib/browser_linux_plugins/ .endif +.endif post-install: @${CAT} ${PKGMESSAGE}