summaryrefslogtreecommitdiff
path: root/lang/quickjs/Makefile
blob: c260bc10e59bd44f9f2136e03dd02a0cd602a6d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

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>