42 lines
1.0 KiB
Bash
42 lines
1.0 KiB
Bash
# Template file for 'yosys'
|
|
pkgname=yosys
|
|
# Remember to correct _gitrev on updating
|
|
_gitrev=1979e0b
|
|
version=0.22
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
make_use_env=yes
|
|
hostmakedepends="python3 bison flex pkg-config tcl"
|
|
makedepends="tcl-devel readline-devel libffi-devel zlib-devel"
|
|
depends="graphviz xdot berkeley-abc"
|
|
short_desc="Verilog RTL Synthesis Suite"
|
|
maintainer="Jasper Chan <jasperchan515@gmail.com>"
|
|
license="ISC, MIT"
|
|
homepage="http://www.clifford.at/yosys/about.html"
|
|
distfiles="https://github.com/cliffordwolf/yosys/archive/yosys-${version}.tar.gz"
|
|
checksum=2a0c29b6f66b3ee70316dd734eceb14f452445a83ccac600b97100ffd7c7a7aa
|
|
|
|
post_patch() {
|
|
vsed -i -e 's,-I[$](PREFIX)/include,,' \
|
|
-e '/CXX = gcc/d' \
|
|
-e '/LD = gcc/d' \
|
|
-e "s/^GIT_REV :=.*/GIT_REV := $_gitrev/" \
|
|
Makefile
|
|
}
|
|
|
|
do_configure() {
|
|
cat <<-EOF >Makefile.conf
|
|
ABCEXTERNAL := abc
|
|
CONFIG := gcc
|
|
LD := $CC
|
|
PREFIX := /usr
|
|
PRETTY := 0
|
|
TCL_INCLUDE := $XBPS_CROSS_BASE/usr/include
|
|
EOF
|
|
}
|
|
|
|
post_install() {
|
|
vlicense COPYING
|
|
vlicense libs/minisat/LICENSE
|
|
}
|