2025-04-26

XSkat on MacOS

Maybe the first game I ever played on Linux is XSkat. The other day I wondered, if it would build on MacOS, and - yes, it does.


 

 Here the patch:

diff --git a/Imakefile b/Imakefile
index ab1b892..06fd031 100644
--- a/Imakefile
+++ b/Imakefile
@@ -19,13 +19,28 @@
 */
 
 /*DEFL=-DDEFAULT_LANGUAGE=\"german\"*/
+/* macOS-specific adjustments */
+#ifdef Darwin
+   # Use clang instead of gcc
+   CC = clang
+   # X11 paths for Homebrew
+   X11_BASE = /opt/X11
+   X11_INCLUDES = -I$(X11_BASE)/include
+   X11_LIBDIR = -L$(X11_BASE)/lib
+   # SDK paths
+   SDK_PATH = $(shell xcrun --show-sdk-path)
+   EXTRA_CFLAGS = -isysroot $(SDK_PATH) $(X11_INCLUDES)
+   EXTRA_LDFLAGS = $(X11_LIBDIR)
+#endif
+
+/* Language selection */
 DEFL=-DDEFAULT_LANGUAGE=\"english\"
 
 DEFI=-DDEFAULT_IRC_SERVER=\"irc.fu-berlin.de\"
 
 DEFINES=$(DEFL) $(DEFI)
 
-LOCAL_LIBRARIES=$(XLIBONLY)
+LOCAL_LIBRARIES=$(XLIBONLY) $(EXTRA_LDFLAGS)
 
 OBJS=skat.o ramsch.o null.o bitmaps.o xio.o xdial.o irc.o text.o
 SRCS=skat.c ramsch.c null.c bitmaps.c xio.c xdial.c irc.c text.c


I had to install a few brew packages.

brew install imake xorgproto libx11 libxext libxt

2025-04-06

IBM Adoption

 IBM  ThinkPad R50e (1834K3J)

Just randomly picked this thing up at HardOff on the weekend.

 


Says no RAM and no HDD (and has no Alt-Key).

I thought for 1.1k Yen, I'll take it home and see what it does.

The manual is on archive.org - nice.

I found some RAM (1GB) and an old IDE HDD (from a broken G4 iBook) and threw it in.

I use a variable PSU at 16.5V - power on and all is working fine!

Well, the Bios backup battery is of course dead. I'll have to replace it, if I want to keep this thing.

Then I remembered, that somewhere in my parts bin should be a Pentium M CPU that I could screw in for a nice upgrade. It came with a Celeron 1.3GHz and I upgraded it to a Pentium 1.7GHz.

Next I grabbed the Recovery CDs and installed XP. Unfortunately I don't have the original Japanese CDs, but only the German ones - but they did the trick.

XP runs fantastic on this old machine, but there is only so much one can do with XP.

I did the whole shenanigans with legacyupdate and upgrade Windows as much as possible.

Then I removed a bit of bloat-ware (Norton 2004, really not what I want to deal with).

Next I ran a geekbench2 benchmark : 1151 - what a beast :)

About: