# fss-0002
# openxml format would be nice, but it depends on boost libraries.
# rsvg plugin fails to compile

main:
  ./configure $CONF --with-gtk2 --enable-vi-keybinding --enable-clipart --enable-templates --enable-plugins="passepartout applix docbook xslfo sdw mht pdb bmp hrtext mswrite google urldict opendocument t602 kword babelfish wmf gimp clarisworks gdict latex eml wml grammar pdf paint mif openwriter loadbindings garble presentation hancom command s5 iscii freetranslation wikipedia opml" --with-pic --with-gio RSVG_CFLAGS="-I${TC}include/librsvg-2 -I${TC}include/glib-2.0" RSVG_LIBS="-pthread -lrsvg"
  make
  make pkgconfigdir=${TC}lib/pkgconfig/ install
  chmod ugo-x /lib/libabiword-*.la
  mv -v /lib/libabiword-*.la ${TC}lib/
  chgrp -R e_text /bin/abiword /lib/abiword-*/ /share/abiword-* /lib/libabiword-*.so*
  chmod o-rx /bin/abiword /lib/abiword-*/ /share/abiword-* /lib/libabiword-*.so*
  cp -v ${PR}document_processor.desktop /share/applications/
