2004-01-30 03:39:48 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.2 2004/01/30 08:39:48 xsa Exp $
|
2003-10-10 12:10:13 -04:00
|
|
|
|
|
|
|
COMMENT= "connect four of stones in a straight line"
|
|
|
|
|
|
|
|
V= 2.1.4
|
|
|
|
DISTNAME= 4stAttack-${V}
|
|
|
|
PKGNAME= forcedattack-${V}
|
|
|
|
CATEGORIES= games
|
|
|
|
|
|
|
|
HOMEPAGE= http://forcedattack.sourceforge.net/
|
|
|
|
|
2004-01-30 03:39:48 -05:00
|
|
|
MAINTAINER= Xavier Santolaria <xsa@openbsd.org>
|
2003-10-10 12:10:13 -04:00
|
|
|
|
|
|
|
# GPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=forcedattack/}
|
|
|
|
|
|
|
|
MODULES= python
|
|
|
|
|
|
|
|
RUN_DEPENDS+= :pygame-*:devel/pygame
|
|
|
|
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
|
|
|
GAMEDIR= ${PREFIX}/share/forcedattack
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
@perl -pi -e "s,%%LOCALBASE%%,${LOCALBASE},g;" \
|
|
|
|
-e "s,%%PYTHON%%,${LOCALBASE}/bin/python${MODPY_VERSION},g;" \
|
|
|
|
${WRKSRC}/4stattack
|
|
|
|
@perl -pi -e 's,python,python${MODPY_VERSION},g' ${WRKSRC}/4stattack.py
|
|
|
|
|
|
|
|
${MODPY_BIN} ${MODPY_LIBDIR}/compileall.py ${WRKSRC}
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/4stattack ${PREFIX}/bin
|
|
|
|
${INSTALL_DATA_DIR} ${GAMEDIR}
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/*.{py,pyc} ${GAMEDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.{ini,ttf} ${GAMEDIR}
|
|
|
|
cd ${WRKSRC}; tar cf - data gui kde players | tar xf - -C ${GAMEDIR}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|