Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # $OpenBSD: Makefile,v 1.23 2014/09/12 06:37:12 ajacoutot Exp $
  2. COMMENT= collection of educational activities for young children
  3. DISTNAME= childsplay-2.6.5
  4. EXTRACT_SUFX= .tgz
  5. CATEGORIES= games education
  6. HOMEPAGE= http://www.childsplay.mobi/
  7. MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
  8. # GPLv3
  9. PERMIT_PACKAGE_CDROM= Yes
  10. MASTER_SITES= http://download.savannah.gnu.org/releases/childsplay/
  11. MODULES= lang/python
  12. # NO_BUILD=Yes but python(1) is used in do-install
  13. BUILD_DEPENDS= ${_MODPY_BUILD_DEPENDS}
  14. RUN_DEPENDS= databases/py-sqlalchemy \
  15. devel/pygame \
  16. x11/py-gtk2
  17. PKG_ARCH= *
  18. NO_TEST= Yes
  19. NO_BUILD= Yes
  20. MODPY_ADJ_FILES=childsplay.py
  21. pre-configure:
  22. perl -pi -e 's,/usr/local,${PREFIX},' ${WRKSRC}/pangofont.py
  23. echo '#!/bin/sh' >${WRKSRC}/childsplay.sh
  24. echo >>${WRKSRC}/childsplay.sh
  25. echo 'cd ${MODPY_SITEPKG}/childsplay' >>${WRKSRC}/childsplay.sh
  26. echo 'exec ${MODPY_BIN} childsplay.py $$@' >>${WRKSRC}/childsplay.sh
  27. do-install:
  28. ${INSTALL_DATA_DIR} ${WRKINST}/${MODPY_SITEPKG}/childsplay
  29. ${INSTALL_SCRIPT} ${WRKSRC}/childsplay.sh ${PREFIX}/bin/childsplay
  30. ${INSTALL_DATA} ${WRKSRC}/*.py \
  31. ${WRKINST}/${MODPY_SITEPKG}/childsplay
  32. cp -Rp ${WRKSRC}/locale ${PREFIX}/share
  33. ${INSTALL_DATA} ${WRKSRC}/sp_content.db \
  34. ${WRKINST}/${MODPY_SITEPKG}/childsplay
  35. .for i in SPWidgets alphabetsounds lib
  36. cp -Rp ${WRKSRC}/$i ${WRKINST}/${MODPY_SITEPKG}/childsplay
  37. .endfor
  38. ${MODPY_BIN} ${MODPY_LIBDIR}/compileall.py \
  39. ${WRKINST}/${MODPY_SITEPKG}/childsplay
  40. chown -R ${SHAREOWN}:${SHAREGRP} \
  41. ${WRKINST}/${MODPY_SITEPKG}/childsplay \
  42. ${PREFIX}/share/locale
  43. .include <bsd.port.mk>