Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Sep 2016 11:26:26 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r422427 - in head/games: . opentyrian opentyrian/files
Message-ID:  <201609191126.u8JBQQxY026279@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Mon Sep 19 11:26:26 2016
New Revision: 422427
URL: https://svnweb.freebsd.org/changeset/ports/422427

Log:
  OpenTyrian is a port of the DOS shoot-em-up Tyrian. Jason Emery
  generously gave the OpenTyrian developers a copy of the Tyrian 2.1
  source code, which has since been ported from Turbo Pascal to C.
  The port uses SDL, making it easily cross-platform.
  
  Tyrian is an arcade-style vertical scrolling shooter. The story is
  set in 20,031 where you play as Trent Hawkins, a skilled fighter-pilot
  employed to fight Microsol and save the galaxy.
  
  WWW: https://bitbucket.org/opentyrian/opentyrian/wiki/Home

Added:
  head/games/opentyrian/
  head/games/opentyrian/Makefile   (contents, props changed)
  head/games/opentyrian/distinfo   (contents, props changed)
  head/games/opentyrian/files/
  head/games/opentyrian/files/patch-Makefile   (contents, props changed)
  head/games/opentyrian/files/pkg-message.in   (contents, props changed)
  head/games/opentyrian/pkg-descr   (contents, props changed)
  head/games/opentyrian/pkg-plist   (contents, props changed)
Modified:
  head/games/Makefile

Modified: head/games/Makefile
==============================================================================
--- head/games/Makefile	Mon Sep 19 11:24:49 2016	(r422426)
+++ head/games/Makefile	Mon Sep 19 11:26:26 2016	(r422427)
@@ -687,6 +687,7 @@
     SUBDIR += openssn
     SUBDIR += opensurge
     SUBDIR += openttd
+    SUBDIR += opentyrian
     SUBDIR += openxcom
     SUBDIR += openyahtzee
     SUBDIR += optimax

Added: head/games/opentyrian/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/opentyrian/Makefile	Mon Sep 19 11:26:26 2016	(r422427)
@@ -0,0 +1,52 @@
+# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	opentyrian
+PORTVERSION=	2.1.20130907
+CATEGORIES=	games
+MASTER_SITES=	https://bitbucket.org/opentyrian/opentyrian/get/ \
+		http://mirror.amdmi3.ru/distfiles/
+DISTNAME=	${PORTVERSION}
+DIST_SUBDIR=	opentyrian
+
+MAINTAINER=	amdmi3@FreeBSD.org
+COMMENT=	Arcade-style vertical scrolling shooter
+
+LICENSE=	GPLv2+
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTNAME}-77a8715634e3
+
+USES=		gmake tar:bzip2
+MAKE_ENV=	ALL_CFLAGS="${CFLAGS}"
+USE_SDL=	sdl
+SUB_FILES=	pkg-message
+DATADIR=	${PREFIX}/share/tyrian
+
+PORTDOCS=	CREDITS NEWS README
+
+OPTIONS_DEFINE=	NETWORK DOCS
+
+NETWORK_DESC=	Enable network support
+NETWORK_USE=		SDL=net
+NETWORK_MAKE_ON=	WITH_NETWORK=true
+NETWORK_MAKE_OFF=	WITH_NETWORK=false
+
+post-patch:
+	@${REINPLACE_CMD} -e '/custom_data_dir/ s|"."|"${DATADIR}"|' ${WRKSRC}/src/file.c
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
+	${INSTALL_DATA} ${WRKSRC}/linux/${PORTNAME}.desktop ${STAGEDIR}${PREFIX}/share/applications/
+	${INSTALL_DATA} ${WRKSRC}/linux/icons/tyrian-32.png ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
+	${INSTALL_MAN} ${WRKSRC}/linux/man/${PORTNAME}.6 ${STAGEDIR}${MAN6PREFIX}/man/man6/
+	@${MKDIR} ${STAGEDIR}${DATADIR}
+	${TOUCH} ${STAGEDIR}${DATADIR}/.keepme
+
+do-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+.for f in ${PORTDOCS}
+	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/
+.endfor
+
+.include <bsd.port.mk>

Added: head/games/opentyrian/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/opentyrian/distinfo	Mon Sep 19 11:26:26 2016	(r422427)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1474071784
+SHA256 (opentyrian/2.1.20130907.tar.bz2) = b46b2ad5645f156393a6a79266e40e409a68fd6be2d324960c268e88ee3d1c64
+SIZE (opentyrian/2.1.20130907.tar.bz2) = 249267

Added: head/games/opentyrian/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/opentyrian/files/patch-Makefile	Mon Sep 19 11:26:26 2016	(r422427)
@@ -0,0 +1,33 @@
+--- Makefile.orig	2013-09-07 23:56:16 UTC
++++ Makefile
+@@ -8,8 +8,6 @@ endif
+ 
+ TARGET := opentyrian
+ 
+-WITH_NETWORK := true
+-
+ ############################################################
+ 
+ STRIP := strip
+@@ -21,21 +19,11 @@ OBJS := $(SRCS:src/%.c=obj/%.o)
+ 
+ # FLAGS ####################################################
+ 
+-ifneq ($(MAKECMDGOALS), release)
+-    EXTRA_CFLAGS += -g3 -O0 -Werror
+-else
+-    EXTRA_CFLAGS += -g0 -O2 -DNDEBUG
+-endif
+ EXTRA_CFLAGS += -MMD -pedantic -Wall -Wextra -Wno-missing-field-initializers
+ ifeq ($(WITH_NETWORK), true)
+     EXTRA_CFLAGS += -DWITH_NETWORK
+ endif
+ 
+-HG_REV := $(shell hg id -ib && touch src/hg_revision.h)
+-ifneq ($(HG_REV), )
+-    EXTRA_CFLAGS += '-DHG_REV="$(HG_REV)"'
+-endif
+-
+ EXTRA_LDLIBS += -lm
+ 
+ SDL_CFLAGS := $(shell $(SDL_CONFIG) --cflags)

Added: head/games/opentyrian/files/pkg-message.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/opentyrian/files/pkg-message.in	Mon Sep 19 11:26:26 2016	(r422427)
@@ -0,0 +1,6 @@
+In order to play opentyrian, you need to either install games/tyrian-data
+port (not available as package) or install Tyrian data files manually
+into %%DATADIR%%.
+
+See project documentation or website for instructions on how to get
+the data.

Added: head/games/opentyrian/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/opentyrian/pkg-descr	Mon Sep 19 11:26:26 2016	(r422427)
@@ -0,0 +1,10 @@
+OpenTyrian is a port of the DOS shoot-em-up Tyrian. Jason Emery
+generously gave the OpenTyrian developers a copy of the Tyrian 2.1
+source code, which has since been ported from Turbo Pascal to C.
+The port uses SDL, making it easily cross-platform.
+
+Tyrian is an arcade-style vertical scrolling shooter. The story is
+set in 20,031 where you play as Trent Hawkins, a skilled fighter-pilot
+employed to fight Microsol and save the galaxy.
+
+WWW: https://bitbucket.org/opentyrian/opentyrian/wiki/Home

Added: head/games/opentyrian/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/opentyrian/pkg-plist	Mon Sep 19 11:26:26 2016	(r422427)
@@ -0,0 +1,5 @@
+bin/opentyrian
+man/man6/opentyrian.6.gz
+share/applications/opentyrian.desktop
+share/pixmaps/opentyrian.png
+%%DATADIR%%/.keepme



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609191126.u8JBQQxY026279>