1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-09 06:51:44 +00:00
freebsd-ports/lang/silq/Makefile
2023-04-23 09:09:58 +00:00

47 lines
1.1 KiB
Makefile

PORTNAME= silq
PORTVERSION= 20230412
PORTREVISION= 1
CATEGORIES= lang math science
DIST_SUBDIR= silq
MAINTAINER= se@FreeBSD.org
COMMENT= Silq from ETH Zuerich
WWW= https://silq.ethz.ch/
LICENSE= BSL
LICENSE_FILE= ${WRKSRC}/LICENSE
ONLY_FOR_ARCHS= amd64
ONLY_FOR_ARCHS_REASON= unknown status of the D language compiler (lang/ldc) on ${ARCH}
BUILD_DEPENDS= ldmd2:lang/ldc \
llvm${LLVM_VERSION}>0:devel/llvm${LLVM_VERSION}
USE_GITHUB= yes
GH_TUPLE= eth-sri:silq:e9750cb \
tgehr:ast:072796e:ast/ast \
tgehr:util:a4532a4:util/util
OPTIONS_DEFINE= EXAMPLES
LLVM_VERSION= 10
.include <bsd.port.options.mk>
do-build:
cd ${WRKSRC}; ldmd2 -O -inline -J. -Jlibrary *.d ast/*.d util/*.d -linker=lld${LLVM_VERSION} -of=silq
do-test:
cd ${WRKSRC}/test; ldmd2 -O runtests.d -linker=lld${LLVM_VERSION} -of=runtests
cd ${WRKSRC}/test; ./runtests
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/silq ${STAGEDIR}${PREFIX}/bin/
.if ${PORT_OPTIONS:MEXAMPLES}
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC}/test && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} "-name *\.slq"
.endif
.include <bsd.port.mk>