Allow plugins to work when ephy is built against libxul.

Reported by:	Eric L. Chen <d9364104@mail.nchu.edu.tw>
Submitted by:	miwi (based on)
This commit is contained in:
Joe Marcus Clarke 2009-05-06 17:38:31 +00:00
parent 94839d4a00
commit 3b0c54705e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=233314

View file

@ -75,6 +75,12 @@ NO_WERROR= yes
CONFIGURE_ARGS+= --enable-compile-warnings=no
.endif
.if ${GECKO:Mlibxul}!=""
PLUGIN_SYMLINK= 19
.else
PLUGIN_SYMLINK= 18
.endif
.if ${HAVE_GNOME:Mpygnome2}!=""
USE_PYTHON= yes
.include "${PORTSDIR}/Mk/bsd.python.mk"
@ -98,7 +104,7 @@ post-patch:
@${REINPLACE_CMD} -e 's|execinfo.h|#|g ; \
s|-ldl"$$|"|g' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|/lib/mozilla/plugins"|/lib/browser_plugins/symlinks/gecko18"|' \
@${REINPLACE_CMD} -e 's|/lib/mozilla/plugins"|/lib/browser_plugins/symlinks/gecko${PLUGIN_SYMLINK}"|' \
${WRKSRC}/embed/mozilla/mozilla-embed-single.cpp
@${REINPLACE_CMD} -e 's|@with_engine@|mozilla|' \
${WRKSRC}/data/epiphany.pc.in