Index: trunk/Makefile.conf.in =================================================================== --- trunk/Makefile.conf.in (revision 21969) +++ trunk/Makefile.conf.in (revision 21970) @@ -10,7 +10,7 @@ BINDIR=$(Install_root)@/local/prefix@/bin ETCDIR=$(Install_root)/etc DATADIR=$(Install_root)@/local/prefix@/share/pcb-rnd -MAN1DIR=$(Install_root)@/local/prefix@/share/man/man1 +MAN1DIR=$(Install_root)@/local/prefix@@/local/man1dir@ RM=@/host/fstools/rm@ CP=@/host/fstools/cp@ LN=@/host/fstools/ln@ Index: trunk/scconfig/hooks.c =================================================================== --- trunk/scconfig/hooks.c (revision 21969) +++ trunk/scconfig/hooks.c (revision 21970) @@ -58,6 +58,7 @@ printf(" --coord=32|64 set coordinate integer type's width in bits\n"); printf(" --dot_pcb_pcb=path .pcb-rnd config path under $HOME/\n"); printf(" --workaround-gtk-ctrl enable GTK control key query workaround\n"); + printf(" --man1dir=path change installation path of man1 files (under prefix)\n"); printf(" --all=plugin enable all working plugins for dynamic load\n"); printf(" --all=buildin enable all working plugins for static link\n"); printf(" --all=disable disable all plugins (compile core only)\n"); @@ -139,6 +140,10 @@ } if (strcmp(key, "coord") == 0) put("/local/pcb/dot_pcb_rnd", value); + if (strcmp(key, "man1dir") == 0) { + put("/local/man1dir", value); + return 1; + } if (strncmp(key, "workaround-", 11) == 0) { const char *what = key+11; if (strcmp(what, "gtk-ctrl") == 0) append("/local/pcb/workaround_defs", "\n#define PCB_WORKAROUND_GTK_CTRL 1"); @@ -262,6 +267,7 @@ /* DEFAULTS */ put("/local/prefix", "/usr/local"); + put("/local/man1dir", "/share/man/man1"); #undef plugin_def #undef plugin_header