söndag 7 april 2019

libfontconfig for AmigaOS 4

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

Inga kommentarer:

Skicka en kommentar