nwmouse enables hardware mouse cursors for Neverwinter Nights. This ebuild needs a small patch to the script /opt/nwn/nwn, provided by games-rpg/nwn-data, to add the following lines before the call to nwmain: if [[ -f ./nwmouse.so ]]; then export XCURSOR_PATH="$(pwd)" export XCURSOR_THEME=nwmouse export LD_PRELOAD=./nwmouse.so:$LD_PRELOAD fi I'll provide a patch in bug 106789.
Created attachment 70875 [details] ebuild for nwmouse
Just curious, but what does this ebuild need elfutils for?
Bah... the stinking thing uses 32-bit ASM so can't compile on amd64... I think I need to make a binary version of this linked against the proper 32-bit emul-libs for amd64 support.
It really *is* a dirty hack, as it patches the nwmain binary on load. I think it uses elfutils to find the proper locations to patch. OTOH, there's probably no other way to install hooks into a closed binary that didn't define hooks in the first place. I have no AMD64, so I can't help there. Feel free to reject the ebuild if you think it is too limited/dirty/hackish.
Actually, I got it working fine on AMD64 by compiling it manually on x86. I think that instead of always building it from source, I'm just going to provide a pre-compiled libelf.so.1 and the libdisasm.so, along with nwmouse.so, as I got it to work on my AMD64 box fine.
Created attachment 75140 [details] games-rpg/nwmouse/nwmouse-0.1.ebuild Try out this ebuild instead... see if it works for you... if it does, I'll probably commit one like it instead, since it works on both x86 and amd64.
Created attachment 84194 [details] nwmouse-0.1.ebuild updated w/ mod-x dependencies.
OK. I need to compile up a new version of the nwmouse files so they don't have the QA warnings. I'm going to guess that this actually works for people, since I haven't heard anyone complain about it being broken.
I've added this to portage now... enjoy...