summaryrefslogtreecommitdiff
path: root/games/accelerator3d/Makefile
diff options
context:
space:
mode:
authorkamil <kamil@pkgsrc.org>2016-07-24 02:34:32 +0000
committerkamil <kamil@pkgsrc.org>2016-07-24 02:34:32 +0000
commitfdc6f7a79e393fcf300ee6e96f3880c990c4bca6 (patch)
treedae406af2e00bd919064b3eb06e8872e1e8c59cf /games/accelerator3d/Makefile
parent2df334e79d0879bc24c35a074de9f40ba88a92f2 (diff)
downloadpkgsrc-fdc6f7a79e393fcf300ee6e96f3880c990c4bca6.tar.gz
Import accelerator3d 0.1.1 as games/accelerator3d
Fast-paced, 3D, first-person shoot/dodge-'em-up, in the vein of Tempest or n2o.
Diffstat (limited to 'games/accelerator3d/Makefile')
-rw-r--r--games/accelerator3d/Makefile44
1 files changed, 44 insertions, 0 deletions
diff --git a/games/accelerator3d/Makefile b/games/accelerator3d/Makefile
new file mode 100644
index 00000000000..82bfed3ddb4
--- /dev/null
+++ b/games/accelerator3d/Makefile
@@ -0,0 +1,44 @@
+# $NetBSD: Makefile,v 1.1 2016/07/24 02:34:32 kamil Exp $
+
+DISTNAME= accelerator-0.1.1
+PKGNAME= ${DISTNAME:S/accelerator/accelerator3d/}
+CATEGORIES= games
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=accelerator3d/}
+EXTRACT_SUFX= .zip
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://accelerator3d.sourceforge.net/
+COMMENT= Fast-paced, 3D, first-person shoot/dodge-'em-up
+LICENSE= artistic
+
+WRKSRC= ${WRKDIR}/${PKGBASE}
+USE_LANGUAGES= # none
+
+DEPENDS+= ${PYPKGPREFIX}-game-[0-9]*:../../devel/py-game
+DEPENDS+= ${PYPKGPREFIX}-ode-[0-9]*:../../devel/py-ode
+DEPENDS+= ${PYPKGPREFIX}-OpenGL-[0-9]*:../../graphics/py-OpenGL
+
+REPLACE_PYTHON+= accelerator.py
+PYTHON_VERSIONS_INCOMPATIBLE= 34 35 # py-Numeric via py-OpenGL
+
+NO_BUILD= yes
+
+ACCELERATOR3D_DATADIR= ${PREFIX}/share/${PKGBASE}
+
+SUBST_CLASSES+= prefix
+SUBST_FILES.prefix= accelerator.py
+SUBST_MESSAGE.prefix= Fixing PREFIX path.
+SUBST_SED.prefix= -e "s|'snd'|'${PREFIX}/share/${PKGBASE}'|"
+SUBST_SED.prefix+= -e "s|'gfx'|'${PREFIX}/share/${PKGBASE}'|"
+SUBST_STAGE.prefix= pre-install
+
+INSTALLATION_DIRS+= bin share/${PKGBASE}
+
+do-install:
+ ${RUN} ${INSTALL_SCRIPT} ${WRKSRC}/accelerator.py ${DESTDIR}${PREFIX}/bin/accelerator3d
+ ${RUN} ${INSTALL_DATA} ${WRKSRC}/snd/* ${DESTDIR}${ACCELERATOR3D_DATADIR}
+ ${RUN} ${INSTALL_DATA} ${WRKSRC}/gfx/* ${DESTDIR}${ACCELERATOR3D_DATADIR}
+
+.include "../../lang/python/application.mk"
+.include "../../lang/python/pyversion.mk"
+.include "../../mk/bsd.pkg.mk"