freebsd-ports/lang/p5-JavaScript-SpiderMonkey/Makefile
Koop Mast b56e9c435e Move spidermonkey17's headers out of LOCALBASE and in there own subdir. [1]
This fixes build issues with other spidermonkey using ports when
SM 1.7 is installed, due to SM 1.7's headers being found first. [2]

Update SM 1.7 users to take this change into account.

PR:		219761 [1], 214724 [2], 202246 [2]
Approved by:	maintainer timeout (nearly 2 months)
2017-07-30 14:34:27 +00:00

27 lines
588 B
Makefile

# Created by: kappa@FreeBSD.org.ua
# $FreeBSD$
PORTNAME= JavaScript-SpiderMonkey
PORTVERSION= 0.21
PORTREVISION= 2
CATEGORIES= lang perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Perl interface to Mozilla JavaScript implementation
LICENSE= ART10 GPLv1
LICENSE_COMB= dual
LIB_DEPENDS= libjs.so:lang/spidermonkey17
TEST_DEPENDS= p5-Log-Log4perl>=0:devel/p5-Log-Log4perl
USE_PERL5= configure
USES= perl5
CFLAGS+= -I${LOCALBASE}/include/js-1.7/
post-patch:
@${REINPLACE_CMD} -e 's|libjs.a|libjs.so|' ${WRKSRC}/Makefile.PL
.include <bsd.port.mk>