libSDL1.2
http://www.libsdl.org/download-1.2.php
tar -zxvf SDL-1.2.15.tar.gz
cd SDL-1.2.15
./configure --enable-shared -enable-video-fbcon --host=arm-linux CC=arm-linux-gnueabihf-gcc
make
libSDL_image1.2
http://www.libsdl.org/projects/SDL_image/release-1.2.html
tar -zxf SDL_image-1.2.12.tar.gz
cd SDL_image-1.2.12
./configure --host=arm-linux --enable-shared --with-sdl-prefix=/home/fhc/IMX6/SDL-1.2.15 CC=arm-linux-gnueabihf-gcc CFLAGS=-O3 CPPFLAGS=-I/home/fhc/IMX6/SDL-1.2.15/include LDFLAGS=-L/home/fhc/IMX6/SDL-1.2.15/build/.libs LIBS=-lSDL
make
freetype2
https://github.com/aseprite/freetype2
sed -ri "s:.*(AUX_MODULES.*valid):\1:" modules.cfg
sed -r "s:.*(#.*SUBPIXEL_RENDERING) .*:\1:" -i include/freetype/config/ftoption.h
./configure --disable-static --enable-shared --prefix=$PWD/_INSTALL --enable-freetype-config