2014-05-17 18:10:41 +02:00
|
|
|
# $NetBSD: Makefile,v 1.18 2014/05/17 16:10:44 wiz Exp $
|
2008-06-10 20:49:39 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= duckmaze-pc-0.2
|
|
|
|
PKGNAME= duckmaze-0.2
|
2014-05-17 18:10:41 +02:00
|
|
|
PKGREVISION= 15
|
2008-06-10 20:49:39 +02:00
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=duckmaze/}
|
|
|
|
EXTRACT_SUFX= .zip
|
|
|
|
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
|
|
HOMEPAGE= http://duckmaze.sourceforge.net/
|
2012-09-15 21:12:55 +02:00
|
|
|
COMMENT= Puzzle game
|
2008-06-10 20:49:39 +02:00
|
|
|
|
|
|
|
USE_LANGUAGES= # none
|
2008-07-27 19:25:56 +02:00
|
|
|
USE_TOOLS+= pax
|
2008-06-10 20:49:39 +02:00
|
|
|
|
|
|
|
DM= ${WRKDIR}/duckmaze
|
|
|
|
|
2008-07-27 19:25:56 +02:00
|
|
|
REPLACE_PYTHON=level.py level_editor.py mopelib/mopelib.py duckmaze.py
|
|
|
|
|
2008-06-10 20:49:39 +02:00
|
|
|
do-build:
|
|
|
|
${ECHO} "#!/bin/sh" >${DM}
|
|
|
|
${ECHO} "cd ${PREFIX}/share/duckmaze" >>${DM}
|
|
|
|
${ECHO} "exec ${PYTHONBIN} duckmaze.py" >>${DM}
|
2008-07-27 19:25:56 +02:00
|
|
|
${CHMOD} a-x ${WRKSRC}/levels/level_*
|
2008-06-10 20:49:39 +02:00
|
|
|
|
|
|
|
do-install:
|
2008-07-27 19:25:56 +02:00
|
|
|
${INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/duckmaze
|
2012-09-15 21:12:55 +02:00
|
|
|
cd ${WRKSRC} && ${PAX} -rw . ${DESTDIR}${PREFIX}/share/duckmaze
|
2008-07-27 19:25:56 +02:00
|
|
|
${INSTALL_SCRIPT} ${DM} ${DESTDIR}${PREFIX}/bin
|
2008-06-10 20:49:39 +02:00
|
|
|
|
|
|
|
.include "../../lang/python/application.mk"
|
|
|
|
.include "../../devel/py-game/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|