Makefile 1019 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # $OpenBSD: Makefile,v 1.14 2013/03/11 11:07:38 espie Exp $
  2. COMMENT= connect four of stones in a straight line
  3. V= 2.1.4
  4. DISTNAME= 4stAttack-${V}
  5. PKGNAME= forcedattack-${V}
  6. REVISION = 6
  7. CATEGORIES= games
  8. HOMEPAGE= http://forcedattack.sourceforge.net/
  9. # GPL
  10. PERMIT_PACKAGE_CDROM= Yes
  11. MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=forcedattack/}
  12. MODULES= lang/python
  13. RUN_DEPENDS+= devel/pygame
  14. NO_TEST= Yes
  15. GAMEDIR= ${PREFIX}/share/forcedattack
  16. do-build:
  17. @perl -pi -e "s,%%LOCALBASE%%,${LOCALBASE},g;" \
  18. -e "s,%%PYTHON%%,${LOCALBASE}/bin/python${MODPY_VERSION},g;" \
  19. ${WRKSRC}/4stattack
  20. @perl -pi -e 's,python,python${MODPY_VERSION},g' ${WRKSRC}/4stattack.py
  21. ${MODPY_BIN} ${MODPY_LIBDIR}/compileall.py ${WRKSRC}
  22. do-install:
  23. ${INSTALL_PROGRAM} ${WRKSRC}/4stattack ${PREFIX}/bin
  24. ${INSTALL_DATA_DIR} ${GAMEDIR}
  25. ${INSTALL_SCRIPT} ${WRKSRC}/*.{py,pyc} ${GAMEDIR}
  26. ${INSTALL_DATA} ${WRKSRC}/*.{ini,ttf} ${GAMEDIR}
  27. cd ${WRKSRC}; tar cf - data gui kde players | tar xf - -C ${GAMEDIR}
  28. .include <bsd.port.mk>