0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-11-01 06:48:55 +00:00
Files
termux-packages/x11-packages/icewm/cross-compiling.patch
Robert Kirkman a8bf521968 addpkg(x11/icewm): 3.8.1
- Fixes https://github.com/termux/termux-packages/issues/25426

How to launch IceWM in Termux:X11:

```bash
pkg upgrade
pkg install x11-repo
pkg install termux-x11-nightly icewm xdg-menu
xdg_menu --format icewm \
    --fullmenu \
    --root-menu \
    $PREFIX/etc/xdg/menus/termux-applications.menu \
    > ~/.icewm/programs
export DISPLAY=:0 TERMUX_X11_XSTARTUP=icewm-session
termux-x11 &
```

I was on the fence about whether or not to add `xdg_menu` commands to `postinst` scripts of window managers that don't generate their own menus by default, but I decided not to,

because originally, the idea was that users of IceWM, Openbox, Fluxbox and others are supposed to have control over their own configuration files and choose their own way to set up their menu, and learn how to manually run a menu autogenerator,

I just personally found the Arch Linux branch of the `xdg_menu` generator to be the easiest to port to Termux and generate a good applications menu for IceWM.
2025-07-26 04:16:05 -05:00

41 lines
1.7 KiB
Diff

--- a/configure
+++ b/configure
@@ -22677,10 +22677,8 @@ rm -f conftest*
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcpy" >&5
$as_echo_n "checking for strlcpy... " >&6; }
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; }
+ $as_echo "yes"
+ $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
@@ -22719,10 +22716,8 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcat" >&5
$as_echo_n "checking for strlcat... " >&6; }
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; }
+ $as_echo "yes"
+ $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
@@ -22755,10 +22755,7 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++11 by default" >&5
$as_echo_n "checking for C++11 by default... " >&6; }
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; }
+ $as_echo "yes"
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */