mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-08 06:48:28 +00:00
4949e8270e
The visibility rules of some variables have been changed in LLD13, leading to link failures. This is no issue if LDC is built with LLVM13, but the version currently in the ports tree is too old to be build with LLVM13. As a work around and since the currently provided LDC is built with LLVM10, make this port depend on LLVM10, too. Update to the latest development source level on this occasion.
40 lines
925 B
Makefile
40 lines
925 B
Makefile
PORTNAME= silq
|
|
PORTVERSION= 20211117
|
|
CATEGORIES= lang math science
|
|
|
|
MAINTAINER= se@FreeBSD.org
|
|
COMMENT= Silq from ETH Zuerich
|
|
|
|
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:1bc7ece \
|
|
tgehr:ast:7c26e76:ast/ast \
|
|
tgehr:util:7e9f0ce: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-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>
|