mirror of
https://github.com/termux/termux-packages.git
synced 2025-02-22 16:57:09 +00:00
Fixes "`error: incomplete definition of type 'struct _win_st'`" during
build.
Progress on https://github.com/termux/termux-packages/issues/21130
Copied and pasted from 05e22fdc66
`0005-aalib-m4.patch`: Fix --with-aalib-prefix argument
`0006-aalib-c99.patch`: Fix builtin-declaration-mismatch compiler warnings
`0007-aalib-free-offset-pointer.patch`: Fix free-nonheap-object compiler warning
`0008-aalib-key-down-OOB.patch`: Fix aggressive-loop-optimizations compiler warning
`0009-aalib-aalinuxkbd-return.patch`: Fix 'return' with no value compiler warning
`0010-aalib-opaque-ncurses-fix.patch`: Fix build for ncurses built with opaque-curses option
`0011-aalib-fix-aarender.patch`: Fix rendering with custom aspect ratio
`0012-aalib-mouse.patch`: Fix typo for KEY_MOUSE condition
32 lines
953 B
Bash
32 lines
953 B
Bash
TERMUX_PKG_HOMEPAGE=https://sourceforge.net/projects/aa-project/
|
|
TERMUX_PKG_DESCRIPTION="A portable ASCII art graphic library"
|
|
TERMUX_PKG_LICENSE="LGPL-2.0"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION=1.4rc5
|
|
TERMUX_PKG_REVISION=12
|
|
TERMUX_PKG_SRCURL=https://downloads.sourceforge.net/sourceforge/aa-project/aalib-$TERMUX_PKG_VERSION.tar.gz
|
|
TERMUX_PKG_SHA256=fbddda9230cf6ee2a4f5706b4b11e2190ae45f5eda1f0409dc4f99b35e0a70ee
|
|
TERMUX_PKG_DEPENDS="ncurses"
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
--infodir=$TERMUX_PREFIX/share/info
|
|
--mandir=$TERMUX_PREFIX/share/man
|
|
"
|
|
|
|
termux_step_pre_configure() {
|
|
local _bin=$TERMUX_PKG_BUILDDIR/_wrapper/bin
|
|
mkdir -p $_bin
|
|
local _cc=$(basename $CC)
|
|
cat <<-EOF > $_bin/$_cc
|
|
#!$(command -v sh)
|
|
_shared=
|
|
for f in "\$@"; do
|
|
case "\$f" in
|
|
-shared ) _shared=1 ;;
|
|
esac
|
|
done
|
|
exec "$(command -v $_cc)" "\$@" \${_shared:+-Wl,-rpath=$TERMUX_PREFIX/lib}
|
|
EOF
|
|
chmod 0700 $_bin/$_cc
|
|
export PATH=$_bin:$PATH
|
|
}
|