PKGNAME=inkscape
PKGSEC=graphics
PKGDEP="desktop-file-utils gc gsl gtkmm-3 gtkspell hicolor-icon-theme \
        imagemagick libcdr libxslt lxml murrine numpy poppler popt python-3 \
        libsoup libwpg libvisio openjpeg potrace scour double-conversion \
        tinycss2"
BUILDDEP="boost cmake intltool dos2unix"
PKGSUG="texlive"
PKGDES="Vector graphics editor using the SVG file format"

ABTYPE=cmakeninja
CMAKE_AFTER=(
    '-DCMAKE_C_FLAGS_RELEASE=-DNDEBUG'
    '-DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG'
    '-DCMAKE_Fortran_FLAGS_RELEASE=-DNDEBUG'
    '-DCMAKE_VERBOSE_MAKEFILE=ON'
    '-DCMAKE_SKIP_INSTALL_RPATH=OFF'
    '-DINCLUDE_INSTALL_DIR=/usr/include'
    '-DLIB_INSTALL_DIR=/usr/lib'
    '-DSYSCONF_INSTALL_DIR=/etc'
    '-DSHARE_INSTALL_PREFIX=/usr/share'
    '-DWITH_DBUS=ON'
    '-DWITH_PROFILING=OFF'
    '-DCMAKE_SKIP_RPATH=OFF'
    '-DPOPPLER_INCLUDE_DIR=/usr/include/poppler'
)

# FIXME: /usr/include/boost/asio/detail/keyword_tss_ptr.hpp:48:(.text+0x154ec8):
# relocation truncated to fit: R_MIPS_TLS_GD against
# `boost::asio::detail::keyword_tss_ptr<boost::asio::detail::call_stack<boost::asio::detail::thread_context,
# boost::asio::detail::thread_info_base>::context>::value_' 
NOLTO__LOONGSON3=1
