Henrik Grimler
5 years ago
3 changed files with 0 additions and 99 deletions
@ -1,19 +0,0 @@ |
|||||
TERMUX_PKG_HOMEPAGE=https://benkibbey.wordpress.com/cboard/ |
|
||||
TERMUX_PKG_DESCRIPTION="PGN browser, editor and chess engine frontend" |
|
||||
TERMUX_PKG_LICENSE="GPL-2.0" |
|
||||
TERMUX_PKG_VERSION=0.7.5 |
|
||||
TERMUX_PKG_SRCURL=http://downloads.sourceforge.net/project/c-board/${TERMUX_PKG_VERSION}/cboard-${TERMUX_PKG_VERSION}.tar.bz2 |
|
||||
TERMUX_PKG_SHA256=dd748039f3531653e1573577cd814741524e1b16e16e3a841ef512e5150da6a0 |
|
||||
TERMUX_PKG_DEPENDS="libandroid-support,libandroid-glob,gnuchess, ncurses, ncurses-ui-libs" |
|
||||
|
|
||||
termux_step_pre_configure() { |
|
||||
CFLAGS+=" -DLINE_MAX=_POSIX2_LINE_MAX" |
|
||||
LDFLAGS+=" -landroid-glob" |
|
||||
|
|
||||
if $TERMUX_DEBUG; then |
|
||||
# When doing debug build, -D_FORTIFY_SOURCE=2 gives this error: |
|
||||
# /home/builder/.termux-build/cboard/src/libchess/pgn.c:2235:33: error: 'umask' called with invalid mode |
|
||||
# mode = umask(600); |
|
||||
export CFLAGS=${CFLAGS/-D_FORTIFY_SOURCE=2/} |
|
||||
fi |
|
||||
} |
|
@ -1,60 +0,0 @@ |
|||||
diff -uNr cboard-0.7.5/configure cboard-0.7.5.mod/configure
|
|
||||
--- cboard-0.7.5/configure 2018-09-27 17:48:24.000000000 +0300
|
|
||||
+++ cboard-0.7.5.mod/configure 2019-08-16 14:05:44.294565834 +0300
|
|
||||
@@ -12194,13 +12194,8 @@
|
|
||||
|
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Unix98 pty support" >&5 |
|
||||
$as_echo_n "checking for Unix98 pty support... " >&6; } |
|
||||
-if test -c "/dev/ptmx"; then
|
|
||||
- have_ptmx=yes
|
|
||||
-else
|
|
||||
- have_ptmx=no
|
|
||||
-fi
|
|
||||
-
|
|
||||
-ptmx_works=no
|
|
||||
+have_ptmx=yes
|
|
||||
+ptmx_works=yes
|
|
||||
|
|
||||
if test "x$have_ptmx" = "xyes"; then |
|
||||
ac_ext=c |
|
||||
@@ -12210,40 +12205,7 @@
|
|
||||
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
||||
|
|
||||
if test "$cross_compiling" = yes; then : |
|
||||
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
||||
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
||||
-as_fn_error $? "cannot run test program while cross compiling
|
|
||||
-See \`config.log' for more details" "$LINENO" 5; }
|
|
||||
-else
|
|
||||
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
||||
-/* end confdefs.h. */
|
|
||||
-\
|
|
||||
- #include <stdio.h>
|
|
||||
- #include <sys/types.h>
|
|
||||
- #include <sys/stat.h>
|
|
||||
- #include <fcntl.h>
|
|
||||
-
|
|
||||
- int main()
|
|
||||
- {
|
|
||||
- int fd;
|
|
||||
-
|
|
||||
- if ((fd = open("/dev/ptmx", O_RDWR)) == -1)
|
|
||||
- exit(1);
|
|
||||
-
|
|
||||
- if (ptsname(fd) == NULL)
|
|
||||
- exit(1);
|
|
||||
-
|
|
||||
- exit(0);
|
|
||||
- }
|
|
||||
-
|
|
||||
-_ACEOF
|
|
||||
-if ac_fn_c_try_run "$LINENO"; then :
|
|
||||
ptmx_works=yes |
|
||||
-else
|
|
||||
- ptmx_works=no
|
|
||||
-fi
|
|
||||
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
|
||||
- conftest.$ac_objext conftest.beam conftest.$ac_ext
|
|
||||
fi |
|
||||
|
|
||||
|
|
@ -1,20 +0,0 @@ |
|||||
diff -u -r ../cboard-0.7.5/libchess/pgn.c ./libchess/pgn.c
|
|
||||
--- ../cboard-0.7.5/libchess/pgn.c 2018-09-17 15:58:48.000000000 +0000
|
|
||||
+++ ./libchess/pgn.c 2018-12-19 00:16:27.204984323 +0000
|
|
||||
@@ -883,7 +883,6 @@
|
|
||||
time_t now; |
|
||||
char tbuf[11] = { 0 }; |
|
||||
struct tm *tp; |
|
||||
- struct passwd *pw = getpwuid (getuid ());
|
|
||||
char host[64] = { 0 }; |
|
||||
|
|
||||
time (&now); |
|
||||
@@ -904,7 +903,7 @@
|
|
||||
if (pgn_tag_add (&g->tag, (char *) "Round", (char *) "-") != E_PGN_OK) |
|
||||
warn ("pgn_tag_add()"); |
|
||||
|
|
||||
- if (pgn_tag_add (&g->tag, (char *) "White", pw->pw_gecos) != E_PGN_OK)
|
|
||||
+ if (pgn_tag_add (&g->tag, (char *) "White", (char *) "You") != E_PGN_OK)
|
|
||||
warn ("pgn_tag_add()"); |
|
||||
|
|
||||
if (pgn_tag_add (&g->tag, (char *) "Black", (char *) "?") != E_PGN_OK) |
|
Loading…
Reference in new issue