瀏覽代碼

add FreeBSD support

Ivan Denisov 2 年之前
父節點
當前提交
c01d012429
共有 45 個文件被更改,包括 45 次插入9 次删除
  1. 二進制
      Dev/Mod/Linker1.odc
  2. 二進制
      Fbsd/Console.odc
  3. 二進制
      Fbsd/Docu/Build-Tool.odc
  4. 二進制
      Fbsd/Mod/Backends.odc
  5. 二進制
      Fbsd/Mod/Clipboard.odc
  6. 二進制
      Fbsd/Mod/Config.odc
  7. 二進制
      Fbsd/Mod/Console.odc
  8. 二進制
      Fbsd/Mod/Dates.odc
  9. 二進制
      Fbsd/Mod/Dialog.odc
  10. 二進制
      Fbsd/Mod/Fonts.odc
  11. 二進制
      Fbsd/Mod/GdkPixbuf.odc
  12. 二進制
      Fbsd/Mod/Gtk2Gdk.odc
  13. 二進制
      Fbsd/Mod/Gtk2Gtk.odc
  14. 二進制
      Fbsd/Mod/Gtk2Keysyms.odc
  15. 二進制
      Fbsd/Mod/Gtk2Pango.odc
  16. 二進制
      Fbsd/Mod/Gtk2Util.odc
  17. 二進制
      Fbsd/Mod/Gui.odc
  18. 二進制
      Fbsd/Mod/Init.odc
  19. 二進制
      Fbsd/Mod/IntDialog.odc
  20. 二進制
      Fbsd/Mod/IntInit.odc
  21. 二進制
      Fbsd/Mod/Lang.odc
  22. 二進制
      Fbsd/Mod/Mechanisms.odc
  23. 二進制
      Fbsd/Mod/PackedFiles.odc
  24. 二進制
      Fbsd/Mod/Ports.odc
  25. 二進制
      Fbsd/Mod/RastersPng.odc
  26. 二進制
      Fbsd/Mod/Registry.odc
  27. 二進制
      Lin/Docu/Build-Tool.odc
  28. 二進制
      Lin/Mod/Cmds.odc
  29. 二進制
      Lin/Mod/Init.odc
  30. 二進制
      Obsd/Docu/Build-Tool.odc
  31. 二進制
      Obsd/Mod/Cmds.odc
  32. 二進制
      Obsd/Mod/Console.odc
  33. 二進制
      Obsd/Mod/Dates.odc
  34. 二進制
      Obsd/Mod/Gtk2Gtk.odc
  35. 二進制
      Obsd/Mod/Init.odc
  36. 9 9
      README.md
  37. 二進制
      Std/Mod/Cmds.odc
  38. 二進制
      System/Mod/Kernel.odc
  39. 二進制
      System/Rsrc/Menus.odc
  40. 二進制
      blackboxFbsd
  41. 二進制
      blackboxInterpFbsd
  42. 27 0
      build-fbsd
  43. 二進制
      dev0fbsd
  44. 7 0
      pack-dev0fbsd
  45. 2 0
      run-dev0

二進制
Dev/Mod/Linker1.odc


二進制
Fbsd/Console.odc


二進制
Fbsd/Docu/Build-Tool.odc


二進制
Fbsd/Mod/Backends.odc


二進制
Fbsd/Mod/Clipboard.odc


二進制
Fbsd/Mod/Config.odc


二進制
Fbsd/Mod/Console.odc


二進制
Fbsd/Mod/Dates.odc


二進制
Fbsd/Mod/Dialog.odc


二進制
Fbsd/Mod/Fonts.odc


二進制
Fbsd/Mod/GdkPixbuf.odc


二進制
Fbsd/Mod/Gtk2Gdk.odc


二進制
Fbsd/Mod/Gtk2Gtk.odc


二進制
Fbsd/Mod/Gtk2Keysyms.odc


二進制
Fbsd/Mod/Gtk2Pango.odc


二進制
Fbsd/Mod/Gtk2Util.odc


二進制
Fbsd/Mod/Gui.odc


二進制
Fbsd/Mod/Init.odc


二進制
Fbsd/Mod/IntDialog.odc


二進制
Fbsd/Mod/IntInit.odc


二進制
Fbsd/Mod/Lang.odc


二進制
Fbsd/Mod/Mechanisms.odc


二進制
Fbsd/Mod/PackedFiles.odc


二進制
Fbsd/Mod/Ports.odc


二進制
Fbsd/Mod/RastersPng.odc


二進制
Fbsd/Mod/Registry.odc


二進制
Lin/Docu/Build-Tool.odc


二進制
Lin/Mod/Cmds.odc


二進制
Lin/Mod/Init.odc


二進制
Obsd/Docu/Build-Tool.odc


二進制
Obsd/Mod/Cmds.odc


二進制
Obsd/Mod/Console.odc


二進制
Obsd/Mod/Dates.odc


二進制
Obsd/Mod/Gtk2Gtk.odc


二進制
Obsd/Mod/Init.odc


+ 9 - 9
README.md

@@ -2,17 +2,18 @@ BlackBox Component Builder for Windows, GNU/Linux, OpenBSD, FreeBSD
 
 Tested on:
 * Windows XP, 7, 10, 11
-* OpenBSD 6.6
-* Fedora Core 17
 * Ubuntu 16.04/18.04/20.04 LTS
-* Debian 9.3, 9.4, 10.4 Xfce/Mate/GNOME/Cinnamon
 * Linux Mint 19.1/19.2/19.3/20 Cinnamon
+* Debian 9.3, 9.4, 10.4 Xfce/Mate/GNOME/Cinnamon
+* Alt Education 9.1
+* OpenBSD 6.8
+* Fedora Core 17
 * CentOS 8
 * Arch Linux 4.9.6
 * Manjaro Linux 18.0.4, 21.2.0
 * Red Hat Enterprise Linux Server 6.3
 * FreeBSD 12.1
-* Alt Education 9.1
+
 
 Download: https://blackbox.oberon.org/download
 
@@ -23,13 +24,11 @@ Installation of required packages in Debian-based systems:
 
 		apt-get install i586-libgtk+2-devel.32bit
 
-	Ubuntu 18/20 LTS, Mint 19/20:
+	Ubuntu 20/22 LTS, Mint 20/22:
 
 		sudo dpkg --add-architecture i386
 		sudo apt update
-		sudo apt install libgtk2.0-0:i386 gtk2-engines:i386 gtk2-engines-murrine:i386 libcanberra-gtk-module:i386 gnome-themes-extra:i386
-
-	Linux Mint 20 has no package 'gnome-themes-extra:i386', it can be safly ignored. There will be warning in console.
+		sudo apt install libgtk2.0-0:i386 gtk2-engines:i386 gtk2-engines-murrine:i386 libcanberra-gtk-module:i386
 
 	Debian 9.X/10.X GNOME/Xfce/KDE
 
@@ -47,8 +46,9 @@ Installation of required packages in Debian-based systems:
 
 To build BlackBox:
 
-	./build-linux
 	./build-windows
+	./build-linux
+	./build-obsd
 
 To run GUI:
 

二進制
Std/Mod/Cmds.odc


二進制
System/Mod/Kernel.odc


二進制
System/Rsrc/Menus.odc


二進制
blackboxFbsd


二進制
blackboxInterpFbsd


+ 27 - 0
build-fbsd

@@ -0,0 +1,27 @@
+#!/bin/sh
+
+echo "compiling"
+echo
+
+./run-dev0 <<DATA
+DevCompiler.CompileSubs Fbsd System Std Cons Text Form Dev Comm Fig Obx
+Kernel.Quit(0)
+DATA
+
+echo
+echo "linking gui"
+echo
+
+./run-dev0 <<DATA
+DevLinker1.LinkElfExe FreeBSD blackbox := Kernel$+ Utf FbsdKernel Files FbsdEnv FbsdFiles FbsdGui StdLoader FbsdLoader
+Kernel.Quit(0)
+DATA
+
+echo
+echo "linking interp"
+echo
+
+./run-dev0 <<DATA
+DevLinker1.LinkElfExe FreeBSD blackboxInterp := Kernel$+ Utf FbsdKernel Files FbsdEnv FbsdFiles StdLoader FbsdIntLoader
+Kernel.Quit(0)
+DATA

二進制
dev0fbsd


+ 7 - 0
pack-dev0fbsd

@@ -0,0 +1,7 @@
+#!/bin/sh
+
+./blackboxInterp <<DATA
+DevLinker1.LinkElfExe FreeBSD dev0fbsd := Kernel$+ Utf FbsdKernel Files FbsdEnv FbsdFiles FbsdPackedFiles StdLoader FbsdIntLoader
+DevPacker.PackThis dev0fbsd := Fbsd/Code/IntInit.ocf Fbsd/Code/Console.ocf System/Code/Console.ocf Std/Code/Registry.ocf Fbsd/Code/Registry.ocf Fbsd/Code/Lang.ocf System/Code/Dialog.ocf Cons/Code/Fonts.ocf System/Code/Fonts.ocf Cons/Code/Windows.ocf System/Code/Windows.ocf System/Code/Ports.ocf System/Code/Services.ocf System/Code/Stores.ocf System/Code/Strings.ocf System/Code/Math.ocf System/Code/Sequencers.ocf System/Code/Models.ocf System/Code/Views.ocf System/Code/Log.ocf System/Code/Converters.ocf System/Code/Meta.ocf System/Code/Controllers.ocf System/Code/Properties.ocf System/Code/Containers.ocf System/Code/Mechanisms.ocf System/Code/Documents.ocf System/Code/Dates.ocf System/Code/Printers.ocf System/Code/Printing.ocf Fbsd/Code/Dates.ocf Fbsd/Code/IntDialog.ocf Std/Code/Interpreter.ocf Std/Code/Dialog.ocf System/Code/Librarian.ocf Std/Code/Log.ocf Text/Code/Models.ocf Text/Code/Mappers.ocf Text/Code/Rulers.ocf Text/Code/Views.ocf Text/Code/Setters.ocf Text/Code/Controllers.ocf Cons/Code/Log.ocf Cons/Code/Interp.ocf Dev/Code/Commanders.ocf System/Code/Controls.ocf Std/Code/CFrames.ocf Dev/Code/Compiler.ocf Dev/Code/Markers.ocf Dev/Code/Selectors.ocf Dev/Code/CPM.ocf Dev/Code/CPT.ocf Dev/Code/CPB.ocf Dev/Code/CPP.ocf Dev/Code/CPS.ocf Dev/Code/CPE.ocf Dev/Code/CPV486.ocf Dev/Code/CPH.ocf Dev/Code/CPL486.ocf Dev/Code/CPC486.ocf Std/Code/TextConv.ocf Dev/Code/Linker.ocf Cons/Code/Compiler.ocf Std/Code/Api.ocf Std/Code/Cmds.ocf Std/Code/Links.ocf Dev/Code/Linker1.ocf Dev/Code/LnkBase.ocf Fbsd/Code/Chmod.ocf Dev/Code/LnkLoad.ocf Dev/Code/LnkWriteElf.ocf Dev/Code/LnkWriteElfStatic.ocf Dev/Code/LnkWritePe.ocf
+Kernel.Quit(0)
+DATA

+ 2 - 0
run-dev0

@@ -12,6 +12,8 @@ if [ "$os" = "Linux" ]; then
     exe="dev0lin"
 elif [ "$os" = "OpenBSD" ]; then
     exe="dev0obsd"
+elif [ "$os" = "FreeBSD" ]; then
+    exe="dev0fbsd"
 else
     echo "unsupported OS"
 fi