svn commit: r455196 - in head/games: . spacezero spacezero/files
Dmitry Marakasov
amdmi3 at FreeBSD.org
Thu Nov 30 11:36:57 UTC 2017
Author: amdmi3
Date: Thu Nov 30 11:36:55 2017
New Revision: 455196
URL: https://svnweb.freebsd.org/changeset/ports/455196
Log:
SpaceZero is a Real Time Strategy 2D space combat game for two
players over a network.
The objective is to conquer the universe, defeating all enemies.
At starting point you have only one ship and one planet, but you
have gold to buy more ships to conquer more planets.
All ships can be controlled by the computer (automatic mode) or by
the player (manual mode). You can easily change among your ships,
controlling all of them independently.
WWW: http://spacezero.sourceforge.net/
Added:
head/games/spacezero/
head/games/spacezero/Makefile (contents, props changed)
head/games/spacezero/distinfo (contents, props changed)
head/games/spacezero/files/
head/games/spacezero/files/patch-Makefile (contents, props changed)
head/games/spacezero/pkg-descr (contents, props changed)
Modified:
head/games/Makefile
Modified: head/games/Makefile
==============================================================================
--- head/games/Makefile Thu Nov 30 11:01:32 2017 (r455195)
+++ head/games/Makefile Thu Nov 30 11:36:55 2017 (r455196)
@@ -920,6 +920,7 @@
SUBDIR += solarwolf
SUBDIR += sopwith
SUBDIR += spacejunk
+ SUBDIR += spacezero
SUBDIR += speak
SUBDIR += species
SUBDIR += spellathon
Added: head/games/spacezero/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/spacezero/Makefile Thu Nov 30 11:36:55 2017 (r455196)
@@ -0,0 +1,57 @@
+# Created by: Dmitry Marakasov <amdmi3 at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= spacezero
+PORTVERSION= 0.86.00
+CATEGORIES= games
+MASTER_SITES= SF/${PORTNAME}/${PORTNAME}%20${PORTVERSION:R}/
+
+MAINTAINER= amdmi3 at FreeBSD.org
+COMMENT= 2D Real Time Strategy space combat game
+
+LICENSE= GPLv3+
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+LIB_DEPENDS= libvorbisfile.so:audio/libvorbis
+
+USES= openal:al,alut pkgconfig
+USE_GNOME= gtk20
+USE_XORG= x11
+MAKE_ARGS= DATADIR="${DATADIR}" \
+ INSTALL_DATA_DIR="${DATADIR}"
+ALL_TARGET= ${PORTNAME}
+
+WRKSRC= ${WRKDIR}/${PORTNAME}
+
+LDFLAGS+= -lX11
+
+PORTDOCS= *
+PORTDATA= *
+PLIST_FILES= bin/${PORTNAME} \
+ share/pixmaps/${PORTNAME}.ico
+
+DESKTOP_ENTRIES="SpaceZero" \
+ "" \
+ "${PREFIX}/share/pixmaps/${PORTNAME}.ico" \
+ "${PORTNAME}" \
+ "Game;StrategyGame;" \
+ ""
+
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1101000
+post-patch:
+ @${REINPLACE_CMD} -e 's|fdatasync|fsync|g' ${WRKSRC}/src/spacecomm.c
+.endif
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/html/manual_files/space.ico ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.ico
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
+ cd ${WRKSRC}/dat && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
+
+do-install-DOCS-on:
+ cd ${WRKSRC}/html && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.post.mk>
Added: head/games/spacezero/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/spacezero/distinfo Thu Nov 30 11:36:55 2017 (r455196)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1511982829
+SHA256 (spacezero-0.86.00.tar.gz) = 5199ed0b00843092fad5949d27fd0cf612ed54918ea83c21a83bcc9a10a6c665
+SIZE (spacezero-0.86.00.tar.gz) = 2317283
Added: head/games/spacezero/files/patch-Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/spacezero/files/patch-Makefile Thu Nov 30 11:36:55 2017 (r455196)
@@ -0,0 +1,34 @@
+--- Makefile.orig 2013-12-21 12:57:43 UTC
++++ Makefile
+@@ -1,4 +1,4 @@
+-CC=gcc
++CC?=gcc
+
+ BINDIR= ./bin
+ DATADIR= ./dat
+@@ -26,8 +26,8 @@ GTKLIBS=`pkg-config --libs gtk+-2.0`
+ GTKLIBS12=`gtk-config --cflags`
+ GTKFLAGS12=`gtk-config --libs`
+
+-CFLAGS= -Wall -O3 --pedantic -I./include -DDATADIR=\"$(DATADIR)\" -DINSTALL_DATA_DIR=\"$(INSTALL_DATA_DIR)\"
+-LDFLAGS= -lm -lpthread $(SOUNDFLAGS) $(GTKLIBS)
++CFLAGS+= -Wall -pedantic -I./include -DDATADIR=\"$(DATADIR)\" -DINSTALL_DATA_DIR=\"$(INSTALL_DATA_DIR)\"
++LDFLAGS+= -lm -lpthread $(SOUNDFLAGS) $(GTKLIBS)
+
+ # DEB pkg
+ #CFLAGS += `dpkg-buildflags --get CFLAGS`
+@@ -50,7 +50,7 @@ PROGRAM_SRCS=$(SRCPATH)spacezero.c $(SRC
+ all: dirs spacezero
+
+ spacezero: $(PROGRAM_OBJS)
+- $(CC) $(PROGRAM_OBJS) $(LDFLAGS) $(CFLAGS) -g -o $(PROGRAM)
++ $(CC) $(PROGRAM_OBJS) $(LDFLAGS) -o $(PROGRAM)
+
+ gtk12: $(PROGRAM_SRCS)
+ $(CC) `gtk-config --cflags` $(PROGRAM_SRCS) $(LDFLAGS12) $(CFLAGS12) -g -o $(PROGRAM) `gtk-config --libs`
+@@ -84,4 +84,4 @@ mrproper: clean
+ rm -f src/*~ include/*~
+
+ .c.o:
+- $(CC) $(CFLAGS) $(LDFLAGS) $(GTKFLAGS) -c $< -o $@
++ $(CC) $(CFLAGS) $(GTKFLAGS) -c $< -o $@
Added: head/games/spacezero/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/spacezero/pkg-descr Thu Nov 30 11:36:55 2017 (r455196)
@@ -0,0 +1,13 @@
+SpaceZero is a Real Time Strategy 2D space combat game for two
+players over a network.
+
+The objective is to conquer the universe, defeating all enemies.
+
+At starting point you have only one ship and one planet, but you
+have gold to buy more ships to conquer more planets.
+
+All ships can be controlled by the computer (automatic mode) or by
+the player (manual mode). You can easily change among your ships,
+controlling all of them independently.
+
+WWW: http://spacezero.sourceforge.net/
More information about the svn-ports-all
mailing list