From 6e1d2c6dc1e33572cf1276b0adb5f43b4d72c3a6 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Fri, 22 Feb 2019 16:29:49 +0100 Subject: [PATCH] Package OpenTyrian --- recipes/pkg/tyrian/README | 49 +++++++++++++++++++++++++++++++ recipes/pkg/tyrian/archives | 6 ++++ recipes/pkg/tyrian/hash | 1 + recipes/pkg/tyrian/runtime | 33 +++++++++++++++++++++ recipes/raw/tyrian/content.mk | 8 +++++ recipes/raw/tyrian/hash | 1 + recipes/src/opentyrian/content.mk | 16 ++++++++++ recipes/src/opentyrian/hash | 1 + recipes/src/opentyrian/used_apis | 6 ++++ src/app/opentyrian/target.mk | 2 +- 10 files changed, 122 insertions(+), 1 deletion(-) create mode 100644 recipes/pkg/tyrian/README create mode 100644 recipes/pkg/tyrian/archives create mode 100644 recipes/pkg/tyrian/hash create mode 100644 recipes/pkg/tyrian/runtime create mode 100644 recipes/raw/tyrian/content.mk create mode 100644 recipes/raw/tyrian/hash create mode 100644 recipes/src/opentyrian/content.mk create mode 100644 recipes/src/opentyrian/hash create mode 100644 recipes/src/opentyrian/used_apis diff --git a/recipes/pkg/tyrian/README b/recipes/pkg/tyrian/README new file mode 100644 index 0000000..7f5fd5b --- /dev/null +++ b/recipes/pkg/tyrian/README @@ -0,0 +1,49 @@ +OpenTyrian +================================================================================ + +OpenTyrian is an open-source port of the DOS game Tyrian. + +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. + +Tyrian features a story mode, one- and two-player arcade modes, and networked +multiplayer. + +== Additional Necessary Files ================================================== + +Tyrian 2.1 data files which have been released as freeware: + http://camanis.net/tyrian/tyrian21.zip + +== Keyboard Controls =========================================================== + +ctrl-backspace -- kill OpenTyrian +alt-enter -- fullscreen +ctrl-f10 -- ungrab mouse + +arrow keys -- ship movement +space -- fire weapons +enter -- toggle rear weapon mode +ctrl/alt -- fire left/right sidekick + +== Network Multiplayer ========================================================= + +Currently OpenTyrian does not have an arena; as such, networked games must be +initiated manually via the command line simultaniously by both players. + +syntax: + opentyrian --net HOSTNAME --net-player-name NAME --net-player-number NUMBER + +where HOSTNAME is the IP address of your opponent, NUMBER is either 1 or 2 +depending on which ship you intend to pilot, and NAME is your alias + +OpenTyrian uses UDP port 1333 for multiplayer, but in most cases players will +not need to open any ports because OpenTyrian makes use of UDP hole punching. + +== Links ======================================================================= + +project: http://opentyrian.googlecode.com/ +irc: irc://irc.freenode.net/#tyrian +forums: http://tyrian2k.proboards.com/index.cgi?board=opentyriangeneral + +README: AshTR diff --git a/recipes/pkg/tyrian/archives b/recipes/pkg/tyrian/archives new file mode 100644 index 0000000..2c57e87 --- /dev/null +++ b/recipes/pkg/tyrian/archives @@ -0,0 +1,6 @@ +_/raw/tyrian +_/src/libc +_/src/opentyrian +_/src/sdl +_/src/sdl_net +_/src/vfs diff --git a/recipes/pkg/tyrian/hash b/recipes/pkg/tyrian/hash new file mode 100644 index 0000000..32ef843 --- /dev/null +++ b/recipes/pkg/tyrian/hash @@ -0,0 +1 @@ +2019-02-22-c 223878124407339b566849e9a00a98810e43ea69 diff --git a/recipes/pkg/tyrian/runtime b/recipes/pkg/tyrian/runtime new file mode 100644 index 0000000..f755f07 --- /dev/null +++ b/recipes/pkg/tyrian/runtime @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/recipes/raw/tyrian/content.mk b/recipes/raw/tyrian/content.mk new file mode 100644 index 0000000..56085ac --- /dev/null +++ b/recipes/raw/tyrian/content.mk @@ -0,0 +1,8 @@ +MIRROR_FROM_PORT_AND_REP_DIR := src/app/opentyrian + +content: tyrian.tar + +PORT_DIR := $(call port_dir,$(REP_DIR)/ports/opentyrian)/src/app/opentyrian + +tyrian.tar: + $(VERBOSE) tar cf $@ -C $(PORT_DIR)/tyrian21 . diff --git a/recipes/raw/tyrian/hash b/recipes/raw/tyrian/hash new file mode 100644 index 0000000..695a134 --- /dev/null +++ b/recipes/raw/tyrian/hash @@ -0,0 +1 @@ +2019-02-22 9e0d9ef1163ff7ee88d2f516bc191e19c05aecbd diff --git a/recipes/src/opentyrian/content.mk b/recipes/src/opentyrian/content.mk new file mode 100644 index 0000000..5c50b1e --- /dev/null +++ b/recipes/src/opentyrian/content.mk @@ -0,0 +1,16 @@ +MIRROR_FROM_PORT_AND_REP_DIR := src/app/opentyrian + +content: $(MIRROR_FROM_PORT_AND_REP_DIR) LICENSE + +PORT_DIR := $(call port_dir,$(REP_DIR)/ports/opentyrian) + +$(MIRROR_FROM_PORT_AND_REP_DIR): + mkdir -p $(dir $@) + cp -r $(PORT_DIR)/$@ $(dir $@) + $(mirror_from_rep_dir) + +$(MIRROR_FROM_REP_DIR): + $(mirror_from_rep_dir) + +LICENSE: + cp $(PORT_DIR)/src/app/opentyrian/COPYING $@ diff --git a/recipes/src/opentyrian/hash b/recipes/src/opentyrian/hash new file mode 100644 index 0000000..ada3472 --- /dev/null +++ b/recipes/src/opentyrian/hash @@ -0,0 +1 @@ +2019-02-22-b a6178f9ac4457d97b5bc8c78b2033929d96774a9 diff --git a/recipes/src/opentyrian/used_apis b/recipes/src/opentyrian/used_apis new file mode 100644 index 0000000..eeaeea0 --- /dev/null +++ b/recipes/src/opentyrian/used_apis @@ -0,0 +1,6 @@ +base +libc +sdl +sdl_net +os +vfs diff --git a/src/app/opentyrian/target.mk b/src/app/opentyrian/target.mk index ecc9bb3..aca0131 100644 --- a/src/app/opentyrian/target.mk +++ b/src/app/opentyrian/target.mk @@ -7,7 +7,7 @@ SRC_C := $(notdir $(wildcard $(OPENTYRIAN_SRC)/*.c)) vpath %.c $(OPENTYRIAN_SRC) -LIBS += libc libm sdlmain sdl sdl_net +LIBS += libc libm sdlmain sdl sdl_net base CC_OPT += -std=c99 -DTARGET_UNIX