https://github.com/AmigaLabs/libs-ports
Having a new libc means that third-party libraries needs to be compiled and ready to be used with it in various projects, like the WebKit port, games ports etc. We maintain a repository that contains different libraries and a Makefile
that can be used to compile the library for all/some of the available libc we have in AmigaOS 4.
The benefits of having such a repository:
In the repository, every library has its own folder, which contains the following files:
lha
file, which has an SDK compatible structurelocal
folder and in there the structure of having the different libraries (static or shared), bin, documentation and header files. This should be structured in a way that the use will only need to extract it in the SDK folder.A diff file, which is only necessary if we have to patch the official release to make it work for AmigaOS 4. This is created with the following method, and applied when we initialise the compilation.
Initialise the package by downloading and extract the release
Do all the necessary changes in the code for it compile succesfully
Rename that folder to something else, like <libname>-patched
Initialise the package again. Now there should be the <libname>
folder and the <libname>-patched
Create a patch file with diff
diff -ruN <libname> <libname>-patched > patch.diff
Make changes in the Makefile init
job to apply that patch. Usually the following is needed
init: download patches
patches:
@echo "-> Apply the patches"
@patch -s -p0 < ./patch.diff