From owner-svn-ports-head@freebsd.org Thu Nov 30 11:36:57 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2B2D0E533B4; Thu, 30 Nov 2017 11:36:57 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 025D51270; Thu, 30 Nov 2017 11:36:56 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAUBauaN066297; Thu, 30 Nov 2017 11:36:56 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAUBatoV066292; Thu, 30 Nov 2017 11:36:55 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201711301136.vAUBatoV066292@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Thu, 30 Nov 2017 11:36:55 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r455196 - in head/games: . spacezero spacezero/files X-SVN-Group: ports-head X-SVN-Commit-Author: amdmi3 X-SVN-Commit-Paths: in head/games: . spacezero spacezero/files X-SVN-Commit-Revision: 455196 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2017 11:36:57 -0000 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 +# $FreeBSD$ + +PORTNAME= spacezero +PORTVERSION= 0.86.00 +CATEGORIES= games +MASTER_SITES= SF/${PORTNAME}/${PORTNAME}%20${PORTVERSION:R}/ + +MAINTAINER= amdmi3@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 + +.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 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/