aboutsummaryrefslogtreecommitdiffstats
path: root/games/spacejunk
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2010-02-14 01:35:12 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2010-02-14 01:35:12 +0800
commit23e55b348dc8d1cfcc992cb6e23168d0bbd09f7c (patch)
tree8a3f7797449b90adbef24133b9285fb0f4c527d2 /games/spacejunk
parent73a33d89c452d6fc2bc0232f40d8d4c9929588fa (diff)
downloadfreebsd-ports-gnome-23e55b348dc8d1cfcc992cb6e23168d0bbd09f7c.tar.gz
freebsd-ports-gnome-23e55b348dc8d1cfcc992cb6e23168d0bbd09f7c.tar.zst
freebsd-ports-gnome-23e55b348dc8d1cfcc992cb6e23168d0bbd09f7c.zip
Spacejunk is a computer game about traveling in 2D planetary systems.
The player must collect drifting garbage by navigating through the gravitational fields of planets and stars. A rough editor for planetary systems is provided too. WWW: http://spacejunk.sourceforge.net/
Diffstat (limited to 'games/spacejunk')
-rw-r--r--games/spacejunk/Makefile42
-rw-r--r--games/spacejunk/distinfo3
-rw-r--r--games/spacejunk/files/spacejunk.in12
-rw-r--r--games/spacejunk/pkg-descr6
-rw-r--r--games/spacejunk/pkg-plist179
5 files changed, 242 insertions, 0 deletions
diff --git a/games/spacejunk/Makefile b/games/spacejunk/Makefile
new file mode 100644
index 000000000000..0351cd0563dd
--- /dev/null
+++ b/games/spacejunk/Makefile
@@ -0,0 +1,42 @@
+# New ports collection makefile for: spacejunk
+# Date created: 21 Jan 2010
+# Whom: Dmitry Marakasov <amdmi3@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= spacejunk
+PORTVERSION= 1.0.3
+CATEGORIES= games
+MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
+
+MAINTAINER= amdmi3@FreeBSD.org
+COMMENT= A video game about traveling in 2D planetary systems
+
+USE_SDL= sdl mixer image
+GNU_CONFIGURE= yes
+MAKE_JOBS_SAFE= yes
+
+CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" CPPFLAGS="-I${LOCALBASE}/include" \
+ LIBS="${PTHREAD_LIBS}"
+
+SUB_FILES= spacejunk
+
+PORTDOCS= *
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' ${WRKSRC}/src/gem-uta.c \
+ ${WRKSRC}/libinfo/gem-uta.c
+ @${REINPLACE_CMD} -e 's|data/|${DATADIR}/&|' ${WRKSRC}/src/*.c*
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/spacejunk ${PREFIX}/libexec/
+ ${MKDIR} ${DATADIR}
+ cd ${WRKSRC} && ${COPYTREE_SHARE} 'data config.txt' ${DATADIR}/
+ ${INSTALL_SCRIPT} ${WRKDIR}/spacejunk ${PREFIX}/bin/
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ cd ${WRKSRC}/doc && ${COPYTREE_SHARE} '*' ${DOCSDIR}/
+.endif
+
+.include <bsd.port.mk>
diff --git a/games/spacejunk/distinfo b/games/spacejunk/distinfo
new file mode 100644
index 000000000000..d085ed129540
--- /dev/null
+++ b/games/spacejunk/distinfo
@@ -0,0 +1,3 @@
+MD5 (spacejunk-1.0.3.tar.gz) = 91d84c7d8b320e1a52e586ce84e95875
+SHA256 (spacejunk-1.0.3.tar.gz) = 53f1deec2a4afb8e1a16cb2261b0af5a768ba53185a4feae3c011a17f93421b1
+SIZE (spacejunk-1.0.3.tar.gz) = 5945291
diff --git a/games/spacejunk/files/spacejunk.in b/games/spacejunk/files/spacejunk.in
new file mode 100644
index 000000000000..362a593a5374
--- /dev/null
+++ b/games/spacejunk/files/spacejunk.in
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+DOTDIR=~/.spacejunk
+
+mkdir -p $DOTDIR
+cd $DOTDIR || exit 1
+
+if [ ! -e config.txt ]; then
+ cp %%DATADIR%%/config.txt .
+fi
+
+exec %%PREFIX%%/libexec/spacejunk "$@"
diff --git a/games/spacejunk/pkg-descr b/games/spacejunk/pkg-descr
new file mode 100644
index 000000000000..241344e5af45
--- /dev/null
+++ b/games/spacejunk/pkg-descr
@@ -0,0 +1,6 @@
+Spacejunk is a computer game about traveling in 2D planetary systems.
+The player must collect drifting garbage by navigating through the
+gravitational fields of planets and stars. A rough editor for
+planetary systems is provided too.
+
+WWW: http://spacejunk.sourceforge.net/
diff --git a/games/spacejunk/pkg-plist b/games/spacejunk/pkg-plist
new file mode 100644
index 000000000000..efe375e0e7cb
--- /dev/null
+++ b/games/spacejunk/pkg-plist
@@ -0,0 +1,179 @@
+bin/spacejunk
+libexec/spacejunk
+%%DATADIR%%/config.txt
+%%DATADIR%%/data/art/11pt.png
+%%DATADIR%%/data/art/17pt.png
+%%DATADIR%%/data/art/17ptgray.png
+%%DATADIR%%/data/art/asimov20.png
+%%DATADIR%%/data/art/asimov27.png
+%%DATADIR%%/data/art/asimovgray20.png
+%%DATADIR%%/data/art/asteroid1.otl
+%%DATADIR%%/data/art/asteroid1.png
+%%DATADIR%%/data/art/asteroid2.otl
+%%DATADIR%%/data/art/asteroid2.png
+%%DATADIR%%/data/art/asteroid3.otl
+%%DATADIR%%/data/art/asteroid3.png
+%%DATADIR%%/data/art/asteroid4.otl
+%%DATADIR%%/data/art/asteroid4.png
+%%DATADIR%%/data/art/bell.png
+%%DATADIR%%/data/art/controlpanel.png
+%%DATADIR%%/data/art/deletepointer.png
+%%DATADIR%%/data/art/engine.ogg
+%%DATADIR%%/data/art/engineend.ogg
+%%DATADIR%%/data/art/engineinit.ogg
+%%DATADIR%%/data/art/farstar1.png
+%%DATADIR%%/data/art/farstar10.png
+%%DATADIR%%/data/art/farstar11.png
+%%DATADIR%%/data/art/farstar12.png
+%%DATADIR%%/data/art/farstar13.png
+%%DATADIR%%/data/art/farstar14.png
+%%DATADIR%%/data/art/farstar2.png
+%%DATADIR%%/data/art/farstar3.png
+%%DATADIR%%/data/art/farstar4.png
+%%DATADIR%%/data/art/farstar5.png
+%%DATADIR%%/data/art/farstar7.png
+%%DATADIR%%/data/art/farstar8.png
+%%DATADIR%%/data/art/farstar9.png
+%%DATADIR%%/data/art/finalmus.ogg
+%%DATADIR%%/data/art/fixedfont.bmp
+%%DATADIR%%/data/art/flame0.png
+%%DATADIR%%/data/art/flame1.png
+%%DATADIR%%/data/art/flame2.png
+%%DATADIR%%/data/art/flame3.png
+%%DATADIR%%/data/art/flame4.png
+%%DATADIR%%/data/art/fuelbar.png
+%%DATADIR%%/data/art/fuelbarfill.png
+%%DATADIR%%/data/art/fx1.ogg
+%%DATADIR%%/data/art/fx10.ogg
+%%DATADIR%%/data/art/fx2.2.ogg
+%%DATADIR%%/data/art/fx2.ogg
+%%DATADIR%%/data/art/fx24.ogg
+%%DATADIR%%/data/art/fx3.ogg
+%%DATADIR%%/data/art/fx31.ogg
+%%DATADIR%%/data/art/fx33.ogg
+%%DATADIR%%/data/art/fx34.ogg
+%%DATADIR%%/data/art/fx4.1.ogg
+%%DATADIR%%/data/art/fx4.ogg
+%%DATADIR%%/data/art/fx5.ogg
+%%DATADIR%%/data/art/fx6.ogg
+%%DATADIR%%/data/art/fx7.ogg
+%%DATADIR%%/data/art/fx8.ogg
+%%DATADIR%%/data/art/galaxia0.png
+%%DATADIR%%/data/art/galaxia0grande.png
+%%DATADIR%%/data/art/galaxia1.png
+%%DATADIR%%/data/art/galaxia2.png
+%%DATADIR%%/data/art/galaxia3.png
+%%DATADIR%%/data/art/galaxia4.png
+%%DATADIR%%/data/art/galaxia4chica.png
+%%DATADIR%%/data/art/galaxia4grande.png
+%%DATADIR%%/data/art/gameovermus.ogg
+%%DATADIR%%/data/art/helpbt.png
+%%DATADIR%%/data/art/icon.ico
+%%DATADIR%%/data/art/intromus.ogg
+%%DATADIR%%/data/art/moon1.otl
+%%DATADIR%%/data/art/moon1.png
+%%DATADIR%%/data/art/moon2.png
+%%DATADIR%%/data/art/moon3.otl
+%%DATADIR%%/data/art/moon3.png
+%%DATADIR%%/data/art/moon4.otl
+%%DATADIR%%/data/art/moon4.png
+%%DATADIR%%/data/art/mousepointer.png
+%%DATADIR%%/data/art/nebula1.png
+%%DATADIR%%/data/art/nebula2.png
+%%DATADIR%%/data/art/nebula3.png
+%%DATADIR%%/data/art/orbitlengthbutton.png
+%%DATADIR%%/data/art/planet1.png
+%%DATADIR%%/data/art/planeta2.otl
+%%DATADIR%%/data/art/planeta2.png
+%%DATADIR%%/data/art/planeta3.png
+%%DATADIR%%/data/art/planeta4.png
+%%DATADIR%%/data/art/planeta5.png
+%%DATADIR%%/data/art/planeta6.png
+%%DATADIR%%/data/art/planeta7.png
+%%DATADIR%%/data/art/planeta8.png
+%%DATADIR%%/data/art/planeta9.png
+%%DATADIR%%/data/art/quitbt.png
+%%DATADIR%%/data/art/redalert.png
+%%DATADIR%%/data/art/scoredisplay.png
+%%DATADIR%%/data/art/scorescreen.png
+%%DATADIR%%/data/art/shipmarker.png
+%%DATADIR%%/data/art/shipviewbutton.png
+%%DATADIR%%/data/art/soundscreen.png
+%%DATADIR%%/data/art/soundslidermarker.png
+%%DATADIR%%/data/art/spacejunk.gpl
+%%DATADIR%%/data/art/spacemus.ogg
+%%DATADIR%%/data/art/spacemus2.ogg
+%%DATADIR%%/data/art/star1.png
+%%DATADIR%%/data/art/star2.png
+%%DATADIR%%/data/art/star3.png
+%%DATADIR%%/data/art/stargroup1.png
+%%DATADIR%%/data/art/stargroup2.png
+%%DATADIR%%/data/art/stargroup3.png
+%%DATADIR%%/data/art/starship0.otl
+%%DATADIR%%/data/art/starship0.png
+%%DATADIR%%/data/art/storyscreen.png
+%%DATADIR%%/data/art/successmus.ogg
+%%DATADIR%%/data/art/timebt.png
+%%DATADIR%%/data/art/titlescreen.gpl
+%%DATADIR%%/data/art/titlescreen.png
+%%DATADIR%%/data/art/trash1.otl
+%%DATADIR%%/data/art/trash1.png
+%%DATADIR%%/data/art/trash2.otl
+%%DATADIR%%/data/art/trash2.png
+%%DATADIR%%/data/art/trash3.otl
+%%DATADIR%%/data/art/trash3.png
+%%DATADIR%%/data/art/trash4.otl
+%%DATADIR%%/data/art/trash4.png
+%%DATADIR%%/data/art/trash5.otl
+%%DATADIR%%/data/art/trash5.png
+%%DATADIR%%/data/art/trash6.otl
+%%DATADIR%%/data/art/trash6.png
+%%DATADIR%%/data/art/trash7.otl
+%%DATADIR%%/data/art/trash7.png
+%%DATADIR%%/data/art/trash8.otl
+%%DATADIR%%/data/art/trash8.png
+%%DATADIR%%/data/art/trash9.otl
+%%DATADIR%%/data/art/trash9.png
+%%DATADIR%%/data/art/viewpointbutton.png
+%%DATADIR%%/data/art/zoomminusbutton.png
+%%DATADIR%%/data/art/zoomplusbutton.png
+%%DATADIR%%/data/en/levels/level1
+%%DATADIR%%/data/en/levels/level10
+%%DATADIR%%/data/en/levels/level11
+%%DATADIR%%/data/en/levels/level12
+%%DATADIR%%/data/en/levels/level13
+%%DATADIR%%/data/en/levels/level21
+%%DATADIR%%/data/en/levels/level3
+%%DATADIR%%/data/en/levels/level4
+%%DATADIR%%/data/en/levels/level5
+%%DATADIR%%/data/en/levels/level6
+%%DATADIR%%/data/en/levels/level7
+%%DATADIR%%/data/en/levels/level8
+%%DATADIR%%/data/en/levels/level9
+%%DATADIR%%/data/en/levels/levelhard
+%%DATADIR%%/data/en/levels/levels.xml
+%%DATADIR%%/data/en/texts.xml
+%%DATADIR%%/data/es/levels/level1.es
+%%DATADIR%%/data/es/levels/level10.es
+%%DATADIR%%/data/es/levels/level11.es
+%%DATADIR%%/data/es/levels/level12.es
+%%DATADIR%%/data/es/levels/level13.es
+%%DATADIR%%/data/es/levels/level21.es
+%%DATADIR%%/data/es/levels/level3.es
+%%DATADIR%%/data/es/levels/level4.es
+%%DATADIR%%/data/es/levels/level5.es
+%%DATADIR%%/data/es/levels/level6.es
+%%DATADIR%%/data/es/levels/level7.es
+%%DATADIR%%/data/es/levels/level8.es
+%%DATADIR%%/data/es/levels/level9.es
+%%DATADIR%%/data/es/levels/levelhard.es
+%%DATADIR%%/data/es/levels/levels.xml
+%%DATADIR%%/data/es/texts.xml
+%%DATADIR%%/data/resources.xml
+@dirrm %%DATADIR%%/data/es/levels
+@dirrm %%DATADIR%%/data/es
+@dirrm %%DATADIR%%/data/en/levels
+@dirrm %%DATADIR%%/data/en
+@dirrm %%DATADIR%%/data/art
+@dirrm %%DATADIR%%/data
+@dirrm %%DATADIR%%