0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-03-04 05:59:06 +00:00
Fredrik Fornwall 10c3013f9e fix(main/libvbisam): Fix building with current clang
Fix the following build error:
> [..]/ischeck.c:148:12: error: parameter 'ihandle' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
2024-05-14 12:19:00 +02:00

16 lines
662 B
Bash

TERMUX_PKG_HOMEPAGE=https://sourceforge.net/projects/vbisam/
TERMUX_PKG_DESCRIPTION="A replacement for IBM's C-ISAM"
TERMUX_PKG_LICENSE="GPL-2.0, LGPL-2.1"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=2.0
TERMUX_PKG_REVISION=2
TERMUX_PKG_SRCURL=https://downloads.sourceforge.net/project/vbisam/vbisam2/vbisam-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=688b776e0030cce50fd7e44cbe40398ea93431f76510c7100433cc6313eabc4f
termux_step_pre_configure() {
CFLAGS+=" -Wno-implicit-int"
cp $TERMUX_PKG_BUILDER_DIR/efgcvt_r-template.c $TERMUX_PKG_SRCDIR/libvbisam/
cp $TERMUX_PKG_BUILDER_DIR/efgcvt-dbl-macros.h $TERMUX_PKG_SRCDIR/libvbisam/
autoreconf -fi
}