Building libfontconfig for AmigaOS 4
Depends on libuuid, see previous post.
1. Download fontconfig 2.13.1 (might wokr for later releases too) https://github.com/freedesktop/fontconfig/archive/2.13.1.zip
2. Change to fontconfig directory
cd fontconfig-2.13.1
3. Start the Amiga Dev Env docker container (20190313_2205 has built it, should work with latest)
sudo docker run -it --mount src="$(pwd)",target=/workdir,type=bind jaokim/amigade:latest
4. Install dependencies and stuff
apt-get install gperf make
dep-get.py -i "http://os4depot.net/share/development/library/misc/expat.lha" "http://os4depot.net/share/development/library/graphics/libfreetype.lha" "http://os4depot.net/share/development/library/misc/libicu.lha" "libuuid"
5. Set environment variables
export LDFLAGS="-static"
export LIBS="-lfreetype -luuid"
export FREETYPE_LIBS=/usr/ppc-amigaos/SDK/local/newlib/lib/libfreetype.la
export FREETYPE_CFLAGS=-I/SDK/local/common/include/freetype2
export UUID_LIBS=/SDK/local/newlib/lib/libuuid.la
6. Configure and build
./configure --host=ppc-amigaos --disable-dependency-tracking --enable-static=yes --enable-shared=no --libdir=/SDK/local/newlib/lib/ --includedir=/SDK/local/newlib/include/
make ; make install
söndag 7 april 2019
libuuid for AmigaOS 4
How to build libuuid for AmigaOS 4
Using libuuid 1.0.3
1. Download tar archive, https://sourceforge.net/projects/libuuid/, and unpack
tar -xvf libuuid-1.0.3.tar
2. Change to that directory
cd libuuid-1.0.3
3. Edit out "#include <sys/syscall.h>" (since AmigaOS doesn't have it) from randutils.c (either with #ifdefs or just remove the line -- it doesn't seem to be used)
4. Start the Amiga Dev Env docker container (20190313_2205 has built it, should work with latest)
sudo docker run -it --mount src="$(pwd)",target=/workdir,type=bind jaokim/amigade:latest
5. Configure ./configure --host=ppc-amigaos --libdir=/SDK/local/newlib/lib/ --includedir=/SDK/local/newlib/include/
6. make
make ; make install
7. Create TAR archive with all files
tar -cf libuuid-1.0.3.tar /SDK/local/newlib/lib/libuuid.a /SDK/local/newlib/lib/libuuid.la /SDK/local/newlib/lib/libuuid.so /SDK/local/newlib/lib/pkgconfig/uuid.pc /SDK/local/newlib/include/uuid/uuid.h
Done!
Prenumerera på:
Kommentarer (Atom)