aalib: Build shared libs

This commit is contained in:
Tee KOBAYASHI 2022-03-04 08:49:16 +09:00 committed by xtkoba
parent 224386b5fb
commit 27a61c9ef5
4 changed files with 53 additions and 4 deletions

View File

@ -1,9 +1,9 @@
TERMUX_PKG_HOMEPAGE=https://sourceforge.net/projects/aa-project/
TERMUX_PKG_DESCRIPTION="A portable ASCII art graphic library"
TERMUX_PKG_LICENSE="LGPL-2.1"
TERMUX_PKG_LICENSE="LGPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.4rc5
TERMUX_PKG_REVISION=6
TERMUX_PKG_REVISION=7
TERMUX_PKG_SRCURL=https://downloads.sourceforge.net/sourceforge/aa-project/aalib-$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=fbddda9230cf6ee2a4f5706b4b11e2190ae45f5eda1f0409dc4f99b35e0a70ee
TERMUX_PKG_DEPENDS="libx11, ncurses"
TERMUX_PKG_DEPENDS="ncurses"

View File

@ -0,0 +1,29 @@
--- a/config.sub
+++ b/config.sub
@@ -216,7 +216,8 @@
# Recognize the basic CPU types without company name.
# Some are omitted here because they have special meanings below.
tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc \
- | arm | arme[lb] | arm[bl]e | armv[2345] | armv[345][lb] | strongarm | xscale \
+ | aarch64 \
+ | arm | arme[lb] | arm[bl]e | armv* | strongarm | xscale \
| pyramid | mn10200 | mn10300 | tron | a29k \
| 580 | i960 | h8300 \
| x86 | ppcbe | mipsbe | mipsle | shbe | shle \
@@ -259,6 +260,7 @@
# FIXME: clean up the formatting here.
vax-* | tahoe-* | i[234567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \
| m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | c[123]* \
+ | aarch64-* \
| arm-* | armbe-* | armle-* | armv*-* | strongarm-* | xscale-* \
| mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
| power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \
@@ -1005,7 +1007,7 @@
# The portable systems comes first.
# Each alternative MUST END IN A *, to match a version number.
# -sysv* is not here because it comes later, after sysvr4.
- -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
+ -gnu* | -android* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
| -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
| -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
| -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \

View File

@ -0,0 +1,20 @@
--- a/ltconfig
+++ b/ltconfig
@@ -1915,7 +1915,7 @@
esac
;;
-gnu*)
+gnu*|android*)
version_type=linux
need_lib_prefix=no
need_version=no
@@ -1984,7 +1984,7 @@
;;
# This must be Linux ELF.
-linux-gnu*)
+linux-gnu*|linux-android*)
version_type=linux
need_lib_prefix=no
need_version=no

View File

@ -6,7 +6,7 @@ diff -uNr aalib-1.4.0/src/aalinuxkbd.c aalib-1.4.0.mod/src/aalinuxkbd.c
{
if (!closed)
- return;
+ return 0;
+ return 1;
mypid = getpid();
if (tty_fd == -1) {
tty_fd = fileno(stdin);