Add OpenTyrian package (SDL game)
PATCH 1/1 Add OpenTyrian package (SDL game)
From: Julien Boibessot <[email protected]>
---
Changes since RFC:
- Took Arnout & Thomas comments into account:
* installation of executable in /usr/bin instead of /usr/games
* removing of double BR2_PACKAGE_SDL_NET
* usage of /bin/true for STRIP
* lowercase for .mk banner
* creation of a dedicated package for game data
package/Config.in | 2 + package/opentyrian-data/Config.in | 8 ++++++ package/opentyrian-data/opentyrian-data.mk | 23 +++++++++++++++++ package/opentyrian/Config.in | 24 ++++++++++++++++++ package/opentyrian/opentyrian.mk | 36 ++++++++++++++++++++++++++++ 5 files changed, 93 insertions(+), 0 deletions(-) create mode 100644 package/opentyrian-data/Config.in create mode 100644 package/opentyrian-data/opentyrian-data.mk create mode 100644 package/opentyrian/Config.in create mode 100644 package/opentyrian/opentyrian.mk
package/Config.in +2 -0
@@ -159,6 +159,8 @@ source "package/doom-wad/Config.in" source "package/gnuchess/Config.in" source "package/lbreakout2/Config.in" source "package/ltris/Config.in" +source "package/opentyrian/Config.in" +source "package/opentyrian-data/Config.in" source "package/prboom/Config.in" source "package/rubix/Config.in" endmenu
package/opentyrian-data/Config.in new file +8 -0
@@ -0,0 +1,8 @@ +config BR2_PACKAGE_OPENTYRIAN_DATA + bool "OpenTyrian data" + help + Data files to use with OpenTyrian game. Currently only the original + Tyrian 2.1 data files, that have been released as Freeware in 2004, + are compatible. + + http://code.google.com/p/opentyrian/wiki/FAQ
package/opentyrian-data/opentyrian-data.mk new file +23 -0
@@ -0,0 +1,23 @@ +############################################################################### +# +# opentyrian-data +# +############################################################################### + +OPENTYRIAN_DATA_VERSION = 2.1 +OPENTYRIAN_DATA_SITE = http://www.camanis.net/opentyrian/ +OPENTYRIAN_DATA_SOURCE = tyrian21.zip +OPENTYRIAN_DATA_LICENSE = Freeware + +define OPENTYRIAN_DATA_EXTRACT_CMDS + unzip -d $(@D) $(DL_DIR)/$(OPENTYRIAN_DATA_SOURCE) +endef + +define OPENTYRIAN_DATA_INSTALL_TARGET_CMDS + mkdir -p $(TARGET_DIR)/usr/share/opentyrian/data/ + cp $(@D)/tyrian21/* $(TARGET_DIR)/usr/share/opentyrian/data/ + rm -f $(TARGET_DIR)/usr/share/opentyrian/data/*.doc + rm -f $(TARGET_DIR)/usr/share/opentyrian/data/*.exe +endef + +$(eval $(generic-package))
package/opentyrian/Config.in new file +24 -0
@@ -0,0 +1,24 @@ +config BR2_PACKAGE_OPENTYRIAN + bool "OpenTyrian" + select BR2_PACKAGE_SDL + select BR2_PACKAGE_OPENTYRIAN_DATA + help + OpenTyrian is a port of the DOS shoot-em-up Tyrian. It uses SDL, + making it easily cross-platform. + It requires the original data files to run. + A display with minimum 640x480 resolution and a keyboard are needed + to play the game. + If you want some sound, activate ALSA with OSS emulation. + + http://code.google.com/p/opentyrian/ + +if BR2_PACKAGE_OPENTYRIAN + +config BR2_PACKAGE_OPENTYRIAN_NET + bool "network support" + default y + select BR2_PACKAGE_SDL_NET + help + Activates network support in OpenTyrian. Will add SDL_net. + +endif
package/opentyrian/opentyrian.mk new file +36 -0
@@ -0,0 +1,36 @@ +############################################################################### +# +# opentyrian +# +############################################################################### + +OPENTYRIAN_VERSION = 2.1.20130907 +OPENTYRIAN_SITE = http://www.camanis.net/opentyrian/releases/ +OPENTYRIAN_SOURCE = opentyrian-$(OPENTYRIAN_VERSION)-src.tar.gz +OPENTYRIAN_LICENSE = GPLv2+ +OPENTYRIAN_LICENSE_FILES = COPYING + +OPENTYRIAN_DEPENDENCIES = sdl + +ifeq ($(BR2_PACKAGE_OPENTYRIAN_NET),y) +OPENTYRIAN_DEPENDENCIES += sdl_net +OPENTYRIAN_NETWORK = true +else +OPENTYRIAN_NETWORK = false +endif + +define OPENTYRIAN_BUILD_CMDS + $(MAKE) PLATFORM=UNIX \ + CC="$(TARGET_CC)" \ + STRIP="/bin/true" \ + SDL_CONFIG="$(STAGING_DIR)/usr/bin/sdl-config" \ + LDFLAGS="-lm" \ + WITH_NETWORK="$(OPENTYRIAN_NETWORK)" \ + -C $(@D) release +endef + +define OPENTYRIAN_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 0755 $(@D)/opentyrian $(TARGET_DIR)/usr/bin/opentyrian +endef + +$(eval $(generic-package))
Signature · 1 line
1.7.5.4
PATCH 1/1 Add OpenTyrian package (SDL game)
Quoted 4 lines · julien.boibessot at free.fr
From: Julien Boibessot <[email protected]>
Signed-off-by Julien Boibessot <[email protected]>
(untested)
Normally there should be two separate patches for the two packages, but
I think it's OK to go in as it is.
BTW, please submit revised patches with --subject-prefix='PATCH v2' even
if the first revision was an RFC.
Regards,
Arnout
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
PATCH 1/1 Add OpenTyrian package (SDL game)
In reply to julien.boibessot at free.frQuoted 43 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"julien" == julien boibessot <[email protected]> writes:
From: Julien Boibessot <[email protected]>
Signed-off-by Julien Boibessot <[email protected]>---
Changes since RFC:
- Took Arnout & Thomas comments into account:
* installation of executable in/usr/bininstead of/usr/games
* removing of doubleBR2_PACKAGE_SDL_NET
* usage of/bin/truefor STRIP
* lowercase for .mk banner
* creation of a dedicated package for game datapackage/Config.in | 2 + package/opentyrian-data/Config.in | 8 ++++++ package/opentyrian-data/opentyrian-data.mk | 23 +++++++++++++++++ package/opentyrian/Config.in | 24 ++++++++++++++++++ package/opentyrian/opentyrian.mk | 36 ++++++++++++++++++++++++++++ 5 files changed, 93 insertions(+), 0 deletions(-) create mode 100644 package/opentyrian-data/Config.in create mode 100644 package/opentyrian-data/opentyrian-data.mk create mode 100644 package/opentyrian/Config.in create mode 100644 package/opentyrian/opentyrian.mkpackage/Config.in +2
-0@@ -159,6 +159,8 @@ source "package/doom-wad/Config.in" source "package/gnuchess/Config.in" source "package/lbreakout2/Config.in" source "package/ltris/Config.in" +source "package/opentyrian/Config.in" +source "package/opentyrian-data/Config.in" source "package/prboom/Config.in" source "package/rubix/Config.in" endmenupackage/opentyrian-data/Config.in new file +0
-0
package/opentyrian-data/Config.in line 3
Quoted 3 lines
package/opentyrian-data/Config.in new file +3
-0@@ -0,0 +1,8 @@ +config BR2_PACKAGE_OPENTYRIAN_DATA + bool "OpenTyrian data" + help
I don't think it makes much sense for people to select opentyrian-data without opentyrian, so I've added a 'depends on BR2_PACKAGE_OPENTYRIAN' and committed to next, thanks.
Signature · 1 line
Bye, Peter Korsgaard