I believe the if def __apple__ does the trick. but when I tried to compile the new 4.7.3 branch I got:
Code: Select all
gtk/xboard.c: In function 'ManProc':
gtk/xboard.c:1789:5: error: too many arguments to function 'system'
system("%s ./man.command", appData.sysOpen);
^
In file included from gtk/xboard.c:85:0:
/usr/include/stdlib.h:177:6: note: declared here
int system(const char *) __DARWIN_ALIAS_C(system);
^
make[2]: *** [gtk/xboard.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
also I'm a tad worried about how sysconf is defined
right now it just says
# define SYSCONFDIR "../etc"
if this were my app it would have to be ~~/../Resources/etc
unless this were a normal "make install", then it should be it should be in the system /usr/local/etc folder!
-------
Also in my package for man.command/info.command, we would have to do the same thing. It would have to be. ~~/../Resources/etc for both! But here is the thing. If we are going to include this code in the main source, then these files should be included in source as well. right now these files are located at that directory inside my app in-order to launch the info and man pages inside the app.
info.command:
Code: Select all
cd "${0%/*}"
info -d ../share/info -f xboard.info
and man.command
Code: Select all
cd "${0%/*}"
man ../share/man/man6/xboard.6
to make them work in a normal "make install" situation, they would have to be put in the system /usr/local/etc folder.