- Pass nspr flags to configure, instead of patching them in

PR:		ports/107320
Submitted by:	Max Brazhnikov <makc@issp.ac.ru> (maintainer)
This commit is contained in:
Pav Lucistnik 2006-12-31 14:04:18 +00:00
parent acadeb64b5
commit 98a0654f9b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=181148

View file

@ -68,15 +68,12 @@ PLIST_SUB+= MOZILLA_PLUGIN="@comment "
USE_GECKO= firefox mozilla xulrunner firefox15
.include "${PORTSDIR}/www/mozilla/bsd.gecko.mk"
LIB_DEPENDS+= nspr4.1:${PORTSDIR}/devel/nspr
CONFIGURE_ENV+= NSPR_CFLAGS="-I${LOCALBASE}/include/nspr" \
NSPR_LIBS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS+=--disable-libjs
CFLAGS+= -I${LOCALBASE}/include/nspr
PLIST_SUB+= MOZILLA_PLUGIN=""
.endif
post-patch:
@${REINPLACE_CMD} -e "s|firefox/nspr/||g" \
${WRKSRC}/configure
post-install:
.if !defined(WITHOUT_MOZILLA_PLUGIN)
@${MKDIR} ${PREFIX}/lib/browser_plugins