Far

Far

How to compile FAR Manager under Ubuntu

sudo apt-get install mingw32 mingw32-binutils

Fix makefile_gcc
CXX = i586-mingw32msvc-g++
CC = i586-mingw32msvc-gcc
M4 = wine "H:\Downloads\Far_src\FAR2_916\tools\m4" -P -DFARBIT=$(DIRBIT)
GAWK = wine "H:\Downloads\Far_src\FAR2_916\tools\gawk"
WINDRES = i586-mingw32msvc-windres -D__FARBIT__=$(DIRBIT)
...
lng: farlang.templ
@echo generating language files
@wine "H:\Downloads\Far_src\FAR2_916\tools\lng.generator.exe" -nc -i lang.ini -ol "$(EXEDIR)" farlang.templ
Fix bugs with file/directory name cases (may not be needed in the last trunk version)
diff -rup ../FAR2_916orig/headers.hpp ./headers.hpp
--- ../FAR2_916orig/headers.hpp 2009-05-13 15:00:48.000000000 -0700
+++ ./headers.hpp 2009-06-11 15:13:24.000000000 -0700
@@ -104,7 +104,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE PO

#ifdef __GNUC__
#define __NTDDK_H
- #include <ddk\cfgmgr32.h>
+ #include <ddk/cfgmgr32.h>
#else
#include <cfgmgr32.h>
#endif
Only in .: Include
Only in .: lang.hpp
Only in .: lang.ini
diff -rup ../FAR2_916orig/makefile_gcc ./makefile_gcc
--- ../FAR2_916orig/makefile_gcc 2009-05-16 06:59:50.000000000 -0700
+++ ./makefile_gcc 2009-06-11 15:42:39.000000000 -0700
@@ -232,7 +232,7 @@ $(OBJDIR)/%.o: ./UCD/%.cpp
@echo compiling $<
@$(CXX) $(CCFLAGS) -c -o $@ $<

-$(OBJDIR)/far.rc.o: far.rc res.hpp far.ico
+$(OBJDIR)/far.rc.o: far.rc res.hpp Far.ico
@echo compiling resource file
@$(WINDRES) -i $< -o $@

diff -rup ../FAR2_916orig/nsUniversalDetectorEx.h ./nsUniversalDetectorEx.h
--- ../FAR2_916orig/nsUniversalDetectorEx.h 2009-03-10 02:46:02.000000000 -0700
+++ ./nsUniversalDetectorEx.h 2009-06-11 15:10:58.000000000 -0700
@@ -1,5 +1,5 @@
-#include "ucd/nscore.h"
-#include "ucd/nsUniversalDetector.h"
+#include "UCD/nscore.h"
+#include "UCD/nsUniversalDetector.h"

class nsUniversalDetectorEx : public nsUniversalDetector {
public:
diff -rup ../FAR2_916orig/setattr.cpp ./setattr.cpp
--- ../FAR2_916orig/setattr.cpp 2009-05-13 15:00:48.000000000 -0700
+++ ./setattr.cpp 2009-06-11 15:14:40.000000000 -0700
@@ -49,7 +49,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE PO
#include "constitle.hpp"
#include "TPreRedrawFunc.hpp"
#include "imports.hpp"
-#include "taskbar.hpp"
+#include "TaskBar.hpp"

#define DM_SETATTR (DM_USER+1)

diff -rup ../FAR2_916orig/treelist.cpp ./treelist.cpp
--- ../FAR2_916orig/treelist.cpp 2009-05-13 15:00:48.000000000 -0700
+++ ./treelist.cpp 2009-06-11 15:14:59.000000000 -0700
@@ -53,7 +53,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE PO
#include "lockscrn.hpp"
#include "macroopcode.hpp"
#include "RefreshFrameManager.hpp"
-#include "ScrBuf.hpp"
+#include "scrbuf.hpp"
#include "TPreRedrawFunc.hpp"
#include "TaskBar.hpp"
diff -rup ../FAR2_916orig/far.rc.m4 ./far.rc.m4
--- ../FAR2_916orig/far.rc.m4 2009-01-14 12:06:06.000000000 -0800
+++ ./far.rc.m4 2009-06-11 15:55:15.000000000 -0700
@@ -2,7 +2,7 @@ m4_include(`farversion.m4')m4_dnl
#include <windows.h>
#include "res.hpp"
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
-FAR_ICON ICON "far.ico"
+FAR_ICON ICON "Far.ico"
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
VS_VERSION_INFO VERSIONINFO
FILEVERSION MAJOR, MINOR, 0, BUILD
Compile
make -f makefile_gcc
Tested under Ubutntu 8.10 32bit, up to release Far alpha 916.