Fix the build with firefox.

Put the plugin in the correct place so mozilla and firefox can find it.

Approved by:	maintainer (anholt)
This commit is contained in:
Koop Mast 2005-06-30 10:29:17 +00:00
parent 07455982ca
commit 24c730e3e7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=138228

View File

@ -33,8 +33,14 @@ USE_REINPLACE= yes
USE_LIBTOOL_VER= 15
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
MOZILLA_CONFIG="${X11BASE}/lib/mozilla/mozilla-config"
LDFLAGS="-L${LOCALBASE}/lib"
.if defined(WITH_MOZILLA) && ${WITH_MOZILLA}=="firefox"
CONFIGURE_ENV+= MOZILLA_CONFIG="${X11BASE}/bin/firefox-config"
.else
CONFIGURE_ENV+= MOZILLA_CONFIG="${X11BASE}/lib/mozilla/mozilla-config"
.endif
INSTALLS_SHLIB= yes
INSTALL_WRKSRC= ${WRKSRC}/plugin
@ -42,5 +48,6 @@ PLIST_SUB= VERSION=${PORTVERSION:R}
post-patch:
@${REINPLACE_CMD} -e "s,int16_t,__int16_t," ${WRKSRC}/libswfdec/swfdec_shape.c
@${REINPLACE_CMD} -e "s,mozilla/plugins/,browser_plugins/," ${WRKSRC}/plugin/Makefile.in
.include <bsd.port.mk>