"Final Frontier Trader is a 2D single player space strategy, combat, and trading game. You pilot a starship which is upgradable. You can buy, sell, or trade parts and even new starships. You can even join a fleet for experience in missions and combat." This ebuild includes a makefile patch to enable optimization flags and wrapper shell script to run the game. The script was necessary because the game expected it's datafiles to be in child directories of the directory of the executable.
Repost: "Final Frontier Trader is a 2D single player space strategy, combat, and trading game. You pilot a starship which is upgradable. You can buy, sell, or trade parts and even new starships. You can even join a fleet for experience in missions and combat." This ebuild includes a makefile patch to enable optimization flags and wrapper shell script to run the game. The script was necessary because the game expected it's datafiles to be in child directories of the directory of the executable.
Did you intend to attach an ebuild?
Created attachment 26529 [details] fftrader-0.62.ebuild Haha, yes, yes I did. Thank you for reminding me.
Created attachment 26530 [details, diff] fftrader-makeflags.patch A Makefile patch.
Created attachment 26531 [details] "fftrader" shell script
just to let you guys know, fftrader 0.63 was just released on feb 29.
Created attachment 26896 [details] games-strategy/fftrader-0.63 This is a new written ebuild. It no longer depends on an external patchfile. Since i don't know what we need the data in fpk for (running ./fft after deleting everything else still works), i moved those files to /usr/share/games/fftrader and the binary to /usr/games/bin The old ebuild used CXXFLAGS/CFLAGS, but since it always crashes if i compile with CXXFLAGS/CFLAGS, i wrote the needed sed-commands but commented them out. Should be fixed using "inherit flag-o-matic", but i have no idea which part of my CXXFLAGS/CFLAGS crashes it. My CFLAGS/CXXGLAGS: "-O3 -march=pentium4 -fomit-frame-pointer -pipe -funroll-loops -fprefetch-loop-arrays"
Looks to me like the source needs lots of sed patching to get it to work right. It can't find the data files otherwise.
eGore: Worked for me, but since it's such a simple game, I'd just say to leave the Makefile as-is without any optimizations. The fpk files are extra ships and such for the game. Mr. Bones: That is precisely why I just left them in the same directory and used the wrapper script.
nope, we don't like wrapper scripts. much better to patch the source so it works correctly with the usual install locations.
Created attachment 46190 [details] fftrader-0.66.ebuild the sed foo doesnt fix the fpk/scenario directory searching properly ... otherwise this ebuild is ready :P
Hmmmm, no release from upstream for five months and no one's stepped up to fix the physfs issues. Reopen this bug for the next release. Maybe upstream will make it easier for distros to package it. Thanks.