forked from Lainports/freebsd-ports
38 lines
757 B
Makefile
38 lines
757 B
Makefile
PORTNAME= quickjs
|
|
DISTVERSION= 2024.01.13-20240727
|
|
PORTREVISION= 1
|
|
CATEGORIES= lang devel
|
|
#MASTER_SITES= https://bellard.org/${PORTNAME}/
|
|
#DISTNAME= ${PORTNAME}-${DISTVERSION:S/./-/g}
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= Embeddable Javascript interpreter in C
|
|
WWW= https://bellard.org/quickjs/
|
|
|
|
LICENSE= MIT
|
|
|
|
USES= compiler:c11 cpe gmake tar:xz
|
|
USE_LDCONFIG= yes
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= bellard
|
|
GH_TAGNAME= 6e2e68f
|
|
|
|
CPE_VENDOR= ${PORTNAME}_project
|
|
|
|
CONFLICTS= quickjs
|
|
|
|
TEST_TARGET= test
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${CHOSEN_COMPILER_TYPE} == gcc
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's/%%GCC_DEFAULT%%/${GCC_DEFAULT}/' \
|
|
${WRKSRC}/Makefile
|
|
.endif
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libquickjs.so
|
|
|
|
.include <bsd.port.post.mk>
|