openbsd-ports/games/castle-combat/Makefile

54 lines
1.4 KiB
Makefile
Raw Normal View History

2011-09-16 05:48:08 -04:00
# $OpenBSD: Makefile,v 1.20 2011/09/16 09:48:09 espie Exp $
COMMENT= Rampart arcade game clone for X11
2007-12-04 09:43:17 -05:00
DISTNAME= castle-combat-0.8.1
2011-09-16 05:48:08 -04:00
REVISION = 5
CATEGORIES= games x11
HOMEPAGE= http://www.linux-games.com/castle-combat/
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
2007-12-04 09:43:17 -05:00
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=castle-combat/}
MODULES= lang/python
2010-11-16 06:23:25 -05:00
RUN_DEPENDS= devel/pygame \
devel/py-twisted/core \
math/py-Numeric
2007-12-04 09:43:17 -05:00
NO_BUILD= Yes
NO_REGRESS= Yes
pre-configure:
@perl -pi -e 's,!!MODPY_BIN!!,${MODPY_BIN},g' \
${WRKSRC}/castle-combat.py
@perl -pi -e 's,!!PREFIX!!,${PREFIX},g' \
${WRKSRC}/castle-combat.py \
${WRKSRC}/src/common.py \
${WRKSRC}/src/menu.py
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/castle-combat/{gfx,sound,src}
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/castle-combat
${INSTALL_SCRIPT} ${WRKSRC}/castle-combat.py \
${PREFIX}/bin/castle-combat
${INSTALL_DATA} ${WRKSRC}/data/colourba.ttf \
${PREFIX}/share/castle-combat
${INSTALL_DATA} ${WRKSRC}/src/*.py \
${PREFIX}/share/castle-combat/src
${INSTALL_DATA} ${WRKSRC}/data/gfx/* \
${PREFIX}/share/castle-combat/gfx
${INSTALL_DATA} ${WRKSRC}/data/sound/* \
${PREFIX}/share/castle-combat/sound
${INSTALL_DATA} ${WRKSRC}/data/doc/rules.html \
${WRKSRC}/data/font_read_me.html \
${PREFIX}/share/doc/castle-combat
.include <bsd.port.mk>