forked from Lainports/freebsd-ports
Don't use Clang if we need to use GCC PR: 251030 Approved by: yuri (maintainer timeout) MFH: 2020Q4 (fix build blanket)
26 lines
562 B
Makefile
26 lines
562 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= quickjs
|
|
DISTVERSION= 2020.09.06
|
|
CATEGORIES= lang devel
|
|
MASTER_SITES= https://bellard.org/${PORTNAME}/
|
|
DISTNAME= ${PORTNAME}-${DISTVERSION:S/./-/g}
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= Embeddable Javascript interpreter in C
|
|
|
|
LICENSE= MIT
|
|
|
|
USES= compiler:c11 gmake tar:xz
|
|
|
|
EXTRA_PATCHES= ${FILESDIR}/extra-${CHOSEN_COMPILER_TYPE}-patch-Makefile
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${CHOSEN_COMPILER_TYPE} == gcc
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's/%%GCC_DEFAULT%%/${GCC_DEFAULT}/' \
|
|
${WRKSRC}/Makefile
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|