Motif Extension: https://sourceforge.net/projects/motif/ * Install extensions: Xorg-7.7-lib-dev compiletc squashfs-tools * export CFLAGS="-mtune=generic -Os -pipe" CXXFLAGS="-mtune=generic -Os -pipe" LDFLAGS="-Wl,-O1" PKG_CONFIG_PATH=/usr/local/lib/pkgconfig * ./configure --prefix=/usr/local * Create file /usr/local/lib/libglib-2.0.la containing (matching file `ls /usr/local/lib/libglib-2.0.so.0.*`): ################################################################################### # libglib-2.0.la - a libtool library file # Generated by ltmain.sh (GNU libtool) 2.2.6 # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='libglib-2.0.so.0' # Names of this library. library_names='libglib-2.0.so.0.6400.0 libglib-2.0.so.0 libglib-2.0.so' # The name of the static archive. old_library='libglib-2.0.a' # Linker flags that can not go in dependency_libs. inherited_linker_flags='' # Libraries that this one depends upon. dependency_libs='' # Names of additional weak libraries provided by this library weak_library_names='' # Version information for libglib-2.0. current=6400 age=6400 revision=0 # Is this an already installed library? installed=yes # Should we warn about portability when linking against -modules? shouldnotlink=no # Files to dlopen/dlpreopen dlopen='' dlpreopen='' # Directory that this library needs to be installed in: libdir='/usr/local/lib' ################################################################################### * make * make check * touch /tmp/mark * make DESTDIR=/tmp/motif install also installs MWM window manager and UIL Motif user interface compiler * Remove .a files (for static linking)? - Yeah, aren't many from other lib extensions in /usr/local/lib * split /tmp/motif into motif-dev (include UIL in motif-dev) motif-doc motif-demo (though won't bother uploading the demos) and mwm * In each dir. run "find usr -not -type d > ../motif.tcz.list". * Make into extensions using mksquashfs. "mksquashfs motif motif.tcz * "md5sum motif.tcz > motif.tcz.md5.txt" etc... for i in *.tcz; do md5sum $i > $i.md5.txt; done * Make motif.tcz.dep: $ ldd /tmp/motif/usr/local/lib/libXm.so.4.0.4 linux-vdso.so.1 (0x00007fffcb1e9000) libXmu.so.6 => /usr/local/lib/libXmu.so.6 (0x00007faa3cd79000) libXt.so.6 => /usr/local/lib/libXt.so.6 (0x00007faa3cd1f000) libSM.so.6 => /usr/local/lib/libSM.so.6 (0x00007faa3cd15000) libICE.so.6 => /usr/local/lib/libICE.so.6 (0x00007faa3ccfb000) libXext.so.6 => /usr/local/lib/libXext.so.6 (0x00007faa3cce9000) libXft.so.2 => /usr/local/lib/libXft.so.2 (0x00007faa3ccd6000) libfontconfig.so.1 => /usr/local/lib/libfontconfig.so.1 (0x00007faa3cc99000) libexpat.so.1 => /usr/local/lib/libexpat.so.1 (0x00007faa3cc77000) libuuid.so.1 => /lib/libuuid.so.1 (0x00007faa3cc6f000) libbz2.so.1.0 => /usr/local/lib/libbz2.so.1.0 (0x00007faa3cc61000) libharfbuzz.so.0 => /usr/local/lib/libharfbuzz.so.0 (0x00007faa3cbdb000) libglib-2.0.so.0 => /usr/local/lib/libglib-2.0.so.0 (0x00007faa3cade000) libpcre.so.1 => /usr/local/lib/libpcre.so.1 (0x00007faa3caa0000) libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0x00007faa3c7e9000) libpthread.so.0 => /lib/libpthread.so.0 (0x00007faa3c7ca000) libgraphite2.so.3 => /usr/local/lib/libgraphite2.so.3 (0x00007faa3c5a9000) libXrender.so.1 => /usr/local/lib/libXrender.so.1 (0x00007faa3c3a0000) libX11.so.6 => /usr/local/lib/libX11.so.6 (0x00007faa3c282000) libxcb.so.1 => /usr/local/lib/libxcb.so.1 (0x00007faa3c25a000) libXau.so.6 => /usr/local/lib/libXau.so.6 (0x00007faa3c255000) libXdmcp.so.6 => /usr/local/lib/libXdmcp.so.6 (0x00007faa3c24d000) libdl.so.2 => /lib/libdl.so.2 (0x00007faa3c248000) libpng16.so.16 => /usr/local/lib/libpng16.so.16 (0x00007faa3c21b000) libz.so.1 => /usr/lib/libz.so.1 (0x00007faa3c206000) libm.so.6 => /lib/libm.so.6 (0x00007faa3c0df000) libc.so.6 => /lib/libc.so.6 (0x00007faa3bf5e000) /lib/ld-linux-x86-64.so.2 (0x00007faa3d00a000) Deps: libXft libpng harfbuzz libXmu * No more deps for mwm. * Copy motif.tcz (+ dep, md5) to "tce/optional". * tce-load -i motif * motif &