aboutsummaryrefslogtreecommitdiff
path: root/games/endgame-singularity/Makefile
diff options
context:
space:
mode:
authorAndrew Pantyukhin <sat@FreeBSD.org>2007-08-10 11:38:10 +0000
committerAndrew Pantyukhin <sat@FreeBSD.org>2007-08-10 11:38:10 +0000
commitc8e7147e9a9ad1fbccf689df7d9ff499d869eaf5 (patch)
tree7a457e68460703189314823e6ccf22b6f12fe8dc /games/endgame-singularity/Makefile
parentfccf8335c0e49fa6d785456a337978cb0adaae49 (diff)
downloadports-c8e7147e9a9ad1fbccf689df7d9ff499d869eaf5.tar.gz
ports-c8e7147e9a9ad1fbccf689df7d9ff499d869eaf5.zip
Notes
Diffstat (limited to 'games/endgame-singularity/Makefile')
-rw-r--r--games/endgame-singularity/Makefile50
1 files changed, 50 insertions, 0 deletions
diff --git a/games/endgame-singularity/Makefile b/games/endgame-singularity/Makefile
new file mode 100644
index 000000000000..e89614132836
--- /dev/null
+++ b/games/endgame-singularity/Makefile
@@ -0,0 +1,50 @@
+# New ports collection makefile for: endgame-singularity
+# Date created: 10 August 2007
+# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= singularity
+PORTVERSION= 0.26
+CATEGORIES= games
+MASTER_SITES= http://emhsoft.com/singularity/ CENKES
+PKGNAMEPREFIX= endgame-
+DISTNAME= ${PORTNAME}_${DISTVERSION}
+
+MAINTAINER= infofarmer@FreeBSD.org
+COMMENT= Simulates the life of a true AI
+
+RUN_DEPENDS= py*-game>=1.7.1:${PORTSDIR}/devel/py-game
+
+USE_PYDISTUTILS=yes
+USE_PYTHON= yes
+USE_SDL= image mixer
+WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION}
+PORTDOCS= AUTHORS Changelog README.txt TODO
+
+post-extract:
+ @${FIND} ${WRKSRC} -name '*.pyc' -delete
+ @cd ${WRKSRC}/&&${MV} code ${PORTNAME}
+ @${MKDIR} ${WRKSRC}/data/music/
+ @${TOUCH} ${WRKSRC}/data/music/.keep_me
+
+post-patch:
+ @${REINPLACE_CMD} -e '/py2exe/d;s|console.*|packages=["${PORTNAME}"],|;\
+ /name=/s|=.*|="${PORTNAME}",|' ${WRKSRC}/setup.py
+ @${REINPLACE_CMD} -e '/data_loc = /s|=.*|= "${DATADIR}/"|;\
+ /musicpath/s|, ".."||' ${WRKSRC}/${PORTNAME}/g.py
+
+post-build:
+ @${ECHO_CMD} '#!${PYTHON_CMD}' > ${WRKSRC}/${PORTNAME}.py
+ @${ECHO_CMD} 'import ${PORTNAME}.${PORTNAME}' >> ${WRKSRC}/${PORTNAME}.py
+
+post-install:
+ @cd ${WRKSRC}/data/&&${COPYTREE_SHARE} . ${DATADIR}/
+ @${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.py ${PREFIX}/bin/${PORTNAME}
+.ifndef NOPORTDOCS
+ @${INSTALL} -d ${DOCSDIR}/
+ @cd ${WRKSRC}/&&${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
+.endif
+
+.include <bsd.port.mk>