# fss-0002

main:
  ./configure $CONF --with-shm=none --disable-altivec --without-hal --disable-python
  sed -i -e '/INIT_I18N/d' plug-ins/*/*.c
  make pkgconfigdir=${TC}lib/pkgconfig/
  make pkgconfigdir=${TC}lib/pkgconfig/ install
  mv -v /bin/gimp-$(echo $version | sed -e "s|\.[[:digit:]]*$||g") /bin/gimp
  mv -v /bin/gimptool-2.0 /bin/gimp-tool
  rm -f /bin/gimp-console
  mv -v /bin/gimp-console-$(echo $version | sed -e "s|\.[[:digit:]]*$||g") /bin/gimp-console
  chmod ugo-x /lib/libgimp{,base,color,math,module,thumb,ui,widgets,config}-2.0.la
  mv -v /lib/libgimp{,base,color,math,module,thumb,ui,widgets,config}-2.0.la ${TC}lib/
  chgrp -R e_graphic /bin/gimp{,-tool,-console} /lib/libgimp{,base,color,math,module,thumb,ui,widgets,config}-2.0.so* /share/gimp/ /lib/gimp/ /etc/gimp/ /bin/gimp-console
  chmod o-rx -R /bin/gimp{,-tool,-console} /lib/libgimp{,base,color,math,module,thumb,ui,widgets,config}-2.0.so* /share/gimp/ /lib/gimp/ /etc/gimp/ /bin/gimp-console
  find /share/gimp /lib/gimp /etc/gimp -type d -exec chmod g+s '{}' ';'
  mv -v /share/aclocal/gimp-2.0.m4 ${TC}share/aclocal/
  #mv -v /lib/pkgconfig/gimp{,thumb,ui}-2.0.pc ${TC}lib/pkgconfig/
  rm -Rf /share/{locale,aclocal}
  tkis_handle_documentation doc applications /share/gtk-doc
  rm -Rf /share/application-registry
  rm -Rf /bin/gimp-remote
  rm -f /share/applications/gimp.desktop
  cp -v ${PR}image_editor.desktop /share/applications/
