patthoyts / kitgen

Tclkit build system
http://tclkit.googlecode.com/
31 stars 19 forks source link

Redux for kitgen on FreeBSD #5

Open zdia opened 12 years ago

zdia commented 12 years ago

On FreeBSD now all is well done. Kitgen created all binaries and I could build the sha256c.so for FreeBSD and cross-compile on my Linux host a FreeBSD runtime executable of my software project with the tclkit.

Only little patches were needed. Do you mind if I open a new page on https://github.com/patthoyts/kitgen/wiki:

How to create tclkits on FreeBSD

as a redux for my porting activity?

And I would like to suggest a little patch for the README file:

diff --git a/README b/README
index 5cc38cb..e6aa0fc 100644
--- a/README
+++ b/README
@@ -162,8 +162,10 @@ The remaining arguments of config.sh specify one or more build options:
   * `mk` - build executables using Metakit instead of vlerq

 When not specified, the default is to build all `cli`, `dyn`, `gui` variants.
+
 If you ask for Metakit executables then these are in addition to the vlerq
-binaries. That is you will get both tclkit-cli and tclkitsh.
+binaries. That is you will get both binaries: the vlerq based tclkit-cli and and the Metakit
+based tclkitsh.

 Makefile

Critcl needs the Metakit extension and I went wrong all the time by trying to use tclkit-cli critcl.kit ...

zdia commented 12 years ago

As option --enable-xft is on in Tk since 2006 I would suggest to make the following change to case *BSD in config.sh:

--- /home/dia/Projekte/git/kitgen/config.sh 
+++ /home/dia/.gvfs/SFTP als dia auf 192.168.1.13/home/dia/Projekte/kitgen/config.sh 
@@ -86,7 +86,7 @@
       echo "CC         = ${CC:=gcc}"
       echo "CFLAGS    += -I/usr/X11R6/include"
       echo "LDFLAGS    = -lm"
-      echo "GUI_OPTS   = -L/usr/X11R6/lib -lX11 -lXss"
+      echo "GUI_OPTS   = -L/usr/X11R6/lib -lX11 -lXss -lfontconfig -lXft"
       case $b64 in 1)
         echo "CFLAGS     += -m64" ;; 
       esac

No further patch is needed for compiling and linking tclkit on FreeBSD 8.2.