2019-05-11 17:27:56 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=http://iverilog.icarus.com/
|
|
|
|
TERMUX_PKG_DESCRIPTION="Icarus Verilog compiler and simulation tool"
|
|
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2022-02-14 07:58:43 +01:00
|
|
|
TERMUX_PKG_VERSION=11.0
|
2019-05-11 17:27:56 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/steveicarus/iverilog/archive/v${TERMUX_PKG_VERSION/./_}.tar.gz
|
2022-02-14 07:58:43 +01:00
|
|
|
TERMUX_PKG_SHA256=6327fb900e66b46803d928b7ca439409a0dc32731d82143b20387be0833f1c95
|
2021-10-04 12:43:31 +02:00
|
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
|
|
TERMUX_PKG_AUTO_UPDATE_TAG_REGEXP="\d+.\d+"
|
2019-05-11 17:27:56 +02:00
|
|
|
TERMUX_PKG_DEPENDS="libbz2, libc++, readline, zlib"
|
2019-07-20 10:42:33 +02:00
|
|
|
TERMUX_PKG_BREAKS="iverilog-dev"
|
|
|
|
TERMUX_PKG_REPLACES="iverilog-dev"
|
2019-05-11 17:27:56 +02:00
|
|
|
|
|
|
|
termux_step_pre_configure() {
|
|
|
|
LDFLAGS+=" -lm"
|
|
|
|
aclocal
|
|
|
|
autoconf
|
2021-11-18 08:13:13 +01:00
|
|
|
export CFLAGS+=" -fcommon"
|
2022-02-14 07:58:43 +01:00
|
|
|
|
|
|
|
local _BUILD_LIB=$TERMUX_PKG_BUILDDIR/_build/lib
|
|
|
|
mkdir -p $_BUILD_LIB
|
|
|
|
for l in bz2 termcap; do
|
|
|
|
echo '!<arch>' > $_BUILD_LIB/lib${l}.a
|
|
|
|
done
|
|
|
|
export LDFLAGS_FOR_BUILD+=" -L$_BUILD_LIB"
|
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_post_configure() {
|
|
|
|
find . -name Makefile | xargs -n 1 sed -i \
|
|
|
|
-e 's:@EXTRALIBS@::g' \
|
|
|
|
-e 's:@MINGW32@:no:g' \
|
|
|
|
-e 's:@PICFLAG@:-fPIC:g' \
|
|
|
|
-e 's:@install_suffix@::g' \
|
|
|
|
-e 's:@rdynamic@:-rdynamic:g' \
|
|
|
|
-e 's:@shared@:-shared:g'
|
2019-05-11 17:27:56 +02:00
|
|
|
}
|