freebsd-ports/cad/silice/Makefile
2023-04-23 09:09:58 +00:00

40 lines
1.3 KiB
Makefile

PORTNAME= silice
DISTVERSION= g20221229
PORTREVISION= 1
CATEGORIES= cad
MAINTAINER= yuri@FreeBSD.org
COMMENT= Language that simplifies prototyping and writing algorithms for FPGAs
WWW= https://github.com/sylefeb/Silice
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE_GPLv3
BUILD_DEPENDS= bash:shells/bash
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}edalize>0:cad/py-edalize@${PY_FLAVOR} # examples also require xtclsh from Xilinx
USES= cmake:noninja python shebangfix
USE_JAVA= yes
JAVA_VERSION= 17
USE_GITHUB= yes
GH_ACCOUNT= sylefeb
GH_PROJECT= Silice
GH_TAGNAME= 6a2beda
GH_TUPLE= sylefeb:LibSL-small:b1942d5:LibSL_small/src/libs/LibSL-small \
sylefeb:tinygpus:e6429ac:tinygpus/projects/tinygpus \
ultraembedded:fat_io_lib:0ef5c2b:fat_io_lib/learn-silice/classroom/soc_wave_player/firmware/fat_io_lib
SHEBANG_GLOB= *.sh *.py
do-install:
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/bin/silice-make.py ${STAGEDIR}${PREFIX}/bin
${REINPLACE_CMD} \
-i '' \
-e 's|frameworks_dir = os.path.realpath(os.path.join(make_dir,"../frameworks/"))|frameworks_dir = "${DATADIR}/frameworks"|' \
${STAGEDIR}${PREFIX}/bin/silice-make.py
cd ${WRKSRC} && ${COPYTREE_SHARE} frameworks ${STAGEDIR}${DATADIR}
.include <bsd.port.mk>