# fss-0002

main:
  sed -i -e "s|-I\${py_prefix}/include/python\${PYTHON_VERSION}|$(python-config --includes)|g" configure
  ./configure $CONF PYTHON=python
  sed -i -e 's|DIST_SUBDIRS = codegen . gtk examples tests docs|DIST_SUBDIRS = codegen . gtk examples tests|' Makefile
  sed -i -e 's|SUBDIRS = codegen . $(GTK_SUBDIR) examples tests docs|SUBDIRS = codegen . $(GTK_SUBDIR) examples tests|' Makefile
  sed -i -e "s|PYTHON_INCLUDES = |& $(python-config --includes) |g" Makefile */Makefile
  make pkgconfigdir=${TC}lib/pkgconfig/
  make pkgconfigdir=${TC}lib/pkgconfig/ install
  chgrp e_python -R /bin/pygtk-codegen-?.? /lib/pygtk /share/pygtk
  chmod o-rx -R /bin/pygtk-codegen-?.? /lib/pygtk /share/pygtk
  find /lib/pygtk /share/pygtk -type d -exec chmod g+s '{}' ';'
  rm -Rf /bin/pygtk-demo
