freebsd-ports/lang/quickjs/Makefile
Piotr Kubaj aa99f2904c lang/quickjs: fix build on GCC architectures
Don't use Clang if we need to use GCC

PR:		251030
Approved by:	yuri (maintainer timeout)
MFH:		2020Q4 (fix build blanket)
2020-11-25 17:49:35 +00:00

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>