# fss-0002

main:
  sed -i -e 's|AM_LDFLAGS = |& -pthread |' Makefile.in */Makefile.in
  ./configure $CONF $DOCDIR
  find -name 'Makefile' -exec sed -i -e 's|^LDFLAGS = |& -pthread |g' '{}' ';'
  make
  make install
  chgrp -R e_graphic /bin/gtkam /share/{gtkam,images}
  chmod o-rx -R /bin/gtkam /share/{gtkam,images}
  find /share/{gtkam,images} -type d -exec chmod g+s '{}' ';'
  rm -Rf /share/{locale,gnome,omf}
  tkis_handle_documentation doc applications /share/doc
  rm -f /share/applications/gtkam.desktop
  cp -v ${PR}camera_tool.desktop /share/applications/
