Reenable the Mozilla PLUGIN option. Seems it was not removed after all.
Submitted by: thierry Approved by: kwm (mentor), wxs (mentor)
This commit is contained in:
parent
e142856c6a
commit
33a88010c2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=267171
1 changed files with 27 additions and 0 deletions
|
@ -55,6 +55,7 @@ OPTIONS= A52 "A52 DVD audio decoder" On \
|
|||
OCFLAGS "Optimized CFLAGS" Off \
|
||||
OGG "Ogg audio decoder support" On \
|
||||
OPENGL "OpenGL acceleration support" Off \
|
||||
PLUGIN "VLC Mozilla Plugin" Off \
|
||||
PNG "PNG graphics format support" On \
|
||||
PORTAUDIO "Portaudio library support" Off \
|
||||
PULSE "Pulse Audio support" Off \
|
||||
|
@ -444,6 +445,17 @@ CONFIGURE_ARGS+=--enable-opengl
|
|||
CONFIGURE_ARGS+=--disable-opengl
|
||||
.endif
|
||||
|
||||
.if defined(WITH_PLUGIN)
|
||||
USE_GECKO= libxul
|
||||
USE_WEBPLUGINS= gecko*
|
||||
WEBPLUGINS_FILES=libvlcplugin.so
|
||||
.include "${PORTSDIR}/www/firefox/Makefile.webplugins"
|
||||
CONFIGURE_ARGS+=--enable-mozilla \
|
||||
--with-mozilla-pkg=${LOCALBASE}/libdata/pkgconfig/mozilla-plugin.pc
|
||||
.else
|
||||
CONFIGURE_ARGS+=--disable-mozilla
|
||||
.endif
|
||||
|
||||
.if defined(WITHOUT_PNG)
|
||||
CONFIGURE_ARGS+=--disable-png
|
||||
.else
|
||||
|
@ -658,6 +670,13 @@ post-patch:
|
|||
${REINPLACE_CMD} -e 's|portaudio\.h|portaudio2/&|g' \
|
||||
${WRKSRC}/modules/audio_output/portaudio.c
|
||||
|
||||
pre-configure:
|
||||
.if defined(WITH_PLUGIN)
|
||||
${REINPLACE_CMD} -e 's|npvlcdir = $$(libdir)/mozilla/plugins|npvlcdir = ${WEBPLUGINS_DIR}|g' \
|
||||
${WRKSRC}/projects/mozilla/Makefile.am \
|
||||
${WRKSRC}/projects/mozilla/Makefile.in
|
||||
.endif
|
||||
|
||||
pre-install:
|
||||
${RM} -rf ${PLIST} ${FAKEDIR}
|
||||
${MKDIR} ${FAKEDIR}
|
||||
|
@ -677,6 +696,14 @@ pre-install:
|
|||
.if !defined(WITH_UNSAFE_PLUGINS)
|
||||
${RM} -f ${FAKEDIR}/lib/vlc/plugins/services_discovery/libsap_plugin.la
|
||||
${RM} -f ${FAKEDIR}/lib/vlc/plugins/services_discovery/libsap_plugin.so
|
||||
.endif
|
||||
.if defined(WITH_PLUGIN)
|
||||
. for ext in so la
|
||||
${ECHO_CMD} "${WEBPLUGINS_DIR}/libvlcplugin.${ext}" | \
|
||||
${SED} -e 's|${PREFIX}/||' >> ${PLIST}
|
||||
. endfor
|
||||
${ECHO_CMD} "@dirrmtry ${WEBPLUGINS_DIR}" | \
|
||||
${SED} -e 's|${PREFIX}/||' >> ${PLIST}
|
||||
.endif
|
||||
${MKDIR} ${FAKEDIR}/libdata
|
||||
${MV} ${FAKEDIR}/lib/pkgconfig ${FAKEDIR}/libdata/pkgconfig
|
||||
|
|
Loading…
Reference in a new issue