#!/bin/bash
[ "$UID" != 0 ] && { exec sudo bash "$0" && exit 0; }
echo "Установка пакетов для сборки GraphicsMagick на Void."
xbps-install -y -Rs make gcc binutils-devel libjxl-devel
xbps-install -y -Rs lcms2-devel freetype-devel libXext-devel libSM-devel libICE-devel libX11-devel liblzma-devel bzip2-devel zlib-devel libltdl-devel libgomp-devel
xbps-install -y -Rs perl libjpeg-turbo-devel libpng-devel tiff-devel libwebp-devel fontconfig-devel libXt-devel libxml2-devel libwmf-devel ghostscript-devel
#./configure LIBS=-llcms2 --with-quantum-depth=16 --with-gs-font-dir=/usr/share/fonts/Type1 --with-modules --without-jp2 --with-jxl --disable-shared --disable-static --disable-compressed-files || exit 1
#make || exit 1
#make install || exit 1
