aboutsummaryrefslogtreecommitdiff
path: root/games/lightyears
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2017-12-01 19:13:02 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2017-12-01 19:13:02 +0000
commit49fb8d6cbe81e35aae996ae48609e3111414c3a5 (patch)
treef6fe0df9a82b1c61c6f80b3dc60f7f53521529bf /games/lightyears
parente9a9a7cb349e2e2c0dd4d1f71ca2aea365456a38 (diff)
downloadports-49fb8d6cbe81e35aae996ae48609e3111414c3a5.tar.gz
ports-49fb8d6cbe81e35aae996ae48609e3111414c3a5.zip
Notes
Diffstat (limited to 'games/lightyears')
-rw-r--r--games/lightyears/Makefile51
-rw-r--r--games/lightyears/distinfo3
-rw-r--r--games/lightyears/pkg-descr4
3 files changed, 58 insertions, 0 deletions
diff --git a/games/lightyears/Makefile b/games/lightyears/Makefile
new file mode 100644
index 000000000000..e9c3ce855c2c
--- /dev/null
+++ b/games/lightyears/Makefile
@@ -0,0 +1,51 @@
+# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= lightyears
+PORTVERSION= 1.4
+CATEGORIES= games
+MASTER_SITES= http://www.jwhitham.org/20kly/
+
+MAINTAINER= amdmi3@FreeBSD.org
+COMMENT= Steampunk-themed strategy game: manage a steam supply network
+
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/LICENSE.txt
+
+RUN_DEPENDS= ${PYGAME}
+
+USES= python:2 shebangfix tar:bz2
+SHEBANG_FILES= ${PORTNAME}
+
+NO_ARCH= yes
+NO_BUILD= yes
+
+PORTDOCS= README.txt THANKS.txt
+PORTDATA= *
+PLIST_FILES= bin/${PORTNAME} \
+ share/pixmaps/${PORTNAME}.png
+
+OPTIONS_DEFINE= DOCS
+
+DESKTOP_ENTRIES="20,000 Light Years Into Space" \
+ "" \
+ "${PREFIX}/share/pixmaps/${PORTNAME}.png" \
+ "${PORTNAME}" \
+ "Game;StrategyGame;" \
+ ""
+
+post-patch:
+ @${REINPLACE_CMD} -e '/^LIGHTYEARS_DIR =/ s|".*"|"${DATADIR}"|' ${WRKSRC}/${PORTNAME}
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+ @cd ${WRKSRC} && ${COPYTREE_SHARE} "audio code data manual" ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/data/32.png ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
+
+do-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+.for f in ${PORTDOCS}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/
+.endfor
+
+.include <bsd.port.mk>
diff --git a/games/lightyears/distinfo b/games/lightyears/distinfo
new file mode 100644
index 000000000000..f45f01f82712
--- /dev/null
+++ b/games/lightyears/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1512042669
+SHA256 (lightyears-1.4.tar.bz2) = add4a8dea58af1e1ba69db3c0b1271312107c18e84b91a9dbb7162e92a1b078e
+SIZE (lightyears-1.4.tar.bz2) = 693877
diff --git a/games/lightyears/pkg-descr b/games/lightyears/pkg-descr
new file mode 100644
index 000000000000..4928139d127b
--- /dev/null
+++ b/games/lightyears/pkg-descr
@@ -0,0 +1,4 @@
+20,000 Light Years Into Space is a steampunk-themed strategy game
+where you have to manage a steam supply network.
+
+WWW: http://www.jwhitham.org/20kly/