aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorfluffy <fluffy@FreeBSD.org>2010-02-03 17:10:37 +0800
committerfluffy <fluffy@FreeBSD.org>2010-02-03 17:10:37 +0800
commit1977fef804416d12ba4aafb4ed7cafdef58d3e06 (patch)
tree96a5a594ba0ee6536fc8e73e0e2f537bae474550 /games
parent329914e473d17b0b9b6108540af86e1ca6efc62b (diff)
downloadfreebsd-ports-gnome-1977fef804416d12ba4aafb4ed7cafdef58d3e06.tar.gz
freebsd-ports-gnome-1977fef804416d12ba4aafb4ed7cafdef58d3e06.tar.zst
freebsd-ports-gnome-1977fef804416d12ba4aafb4ed7cafdef58d3e06.zip
Add opensonic 0.1.2, game based on the "Sonic the Hedgehog" universe.
PR: ports/139560 Submitted by: Stas Timokhin <devel at stasyan dot com>
Diffstat (limited to 'games')
-rw-r--r--games/Makefile1
-rw-r--r--games/opensonic/Makefile48
-rw-r--r--games/opensonic/distinfo3
-rw-r--r--games/opensonic/files/patch-CMakeLists.txt43
-rw-r--r--games/opensonic/files/patch-src__misc__opensonic14
-rw-r--r--games/opensonic/files/patch-src__misc__opensonic_launcher14
-rw-r--r--games/opensonic/pkg-descr8
-rw-r--r--games/opensonic/pkg-plist153
8 files changed, 284 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile
index 8f799124c2c6..c78e18cbea38 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -597,6 +597,7 @@
SUBDIR += openjazz
SUBDIR += openlierox
SUBDIR += openmortal
+ SUBDIR += opensonic
SUBDIR += openttd
SUBDIR += openyahtzee
SUBDIR += optimax
diff --git a/games/opensonic/Makefile b/games/opensonic/Makefile
new file mode 100644
index 000000000000..8c466357b1ab
--- /dev/null
+++ b/games/opensonic/Makefile
@@ -0,0 +1,48 @@
+# New ports collection makefile for: games/opensonic
+# Date created: 27 Aug 2009
+# Whom: Stas Timokhin <stast@bsdportal.ru>
+#
+# $FreeBSD$
+#
+
+PORTNAME= opensonic
+PORTVERSION= 0.1.2
+CATEGORIES= games
+MASTER_SITES= SF/opensnc/Open%20Sonic/${PORTVERSION}
+DISTNAME= opensnc-src${PORTVERSION}
+
+MAINTAINER= devel@stasyan.com
+COMMENT= Game based on the "Sonic the Hedgehog" universe
+
+DESKTOP_ENTRIES="${PORTNAME}" \
+ "Sonic the Hedgehog" \
+ "${DATADIR}/images/icon.png" \
+ "${PORTNAME}_launcher" \
+ "Game;KidsGame;" \
+ "false"
+
+USE_CMAKE= yes
+CMAKE_ENV+= OPENSNC_ALLEGRO_LIBS="`allegro-config --libs`" OPENSNC_ALLEGRO_VERSION="`allegro-config --version`"
+
+CFLAGS+= -I${LOCALBASE}/include
+MAKE_ENV+= CFLAGS="${CFLAGS}"
+
+BUILD_DEPENDS+= ${LOCALBASE}/lib/libaldmb.a:${PORTSDIR}/audio/dumb-allegro \
+ alpng>=1.3:${PORTSDIR}/graphics/alpng
+RUN_DEPENDS+= ${LOCALBASE}/lib/libaldmb.a:${PORTSDIR}/audio/dumb-allegro \
+ alpng>=1.3:${PORTSDIR}/graphics/alpng
+LIB_DEPENDS+= alleg.42:${PORTSDIR}/devel/allegro \
+ ogg.6:${PORTSDIR}/audio/libogg \
+ vorbis.4:${PORTSDIR}/audio/libvorbis
+
+.include <bsd.port.pre.mk>
+
+post-patch:
+ @${REINPLACE_CMD} -e 's,/usr/bin,${LOCALBASE}/bin,g' \
+ ${PATCH_WRKSRC}/CMakeLists.txt ${PATCH_WRKSRC}/src/global.h
+ @${REINPLACE_CMD} -e 's,/usr/share,${LOCALBASE}/share,g' \
+ ${PATCH_WRKSRC}/src/global.h
+ @${REINPLACE_CMD} -e 's,%%GAME_DIR%%,${DATADIR},g' \
+ ${PATCH_WRKSRC}/src/misc/opensonic ${PATCH_WRKSRC}/src/misc/opensonic_launcher
+
+.include <bsd.port.post.mk>
diff --git a/games/opensonic/distinfo b/games/opensonic/distinfo
new file mode 100644
index 000000000000..a4ddb9527b36
--- /dev/null
+++ b/games/opensonic/distinfo
@@ -0,0 +1,3 @@
+MD5 (opensnc-src0.1.2.tar.gz) = eba7dc42f6b82edff038bae706331dfb
+SHA256 (opensnc-src0.1.2.tar.gz) = 9171ee123556f6600fb2b4198f75b7b252d5159e3714666e3589f17b6a76b1a5
+SIZE (opensnc-src0.1.2.tar.gz) = 4392887
diff --git a/games/opensonic/files/patch-CMakeLists.txt b/games/opensonic/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..543820668dde
--- /dev/null
+++ b/games/opensonic/files/patch-CMakeLists.txt
@@ -0,0 +1,43 @@
+--- CMakeLists.txt.orig 2009-07-22 16:54:28.000000000 +1100
++++ CMakeLists.txt 2010-02-02 20:05:55.037102480 +1000
+@@ -6,8 +6,15 @@
+ # Initializing...
+ CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
+ PROJECT(opensonic C)
+-SET(GAME_BIN opensonic)
+-SET(LAUNCHER_BIN opensonic_launcher)
++SET(GAME_NAME opensonic)
++if(NOT WIN32)
++SET(GAME_BIN ${GAME_NAME}_bin)
++SET(LAUNCHER_BIN ${GAME_NAME}_launcher_bin)
++else(NOT WIN32)
++SET(GAME_BIN ${GAME_NAME})
++SET(LAUNCHER_BIN ${GAME_NAME}_launcher)
++endif(NOT WIN32)
++
+ SET(GAME_VERSION "0.1.2")
+ SET(ALLEGRO_RECOMMENDED_VERSION "4.2.2")
+ SET(CMAKE_BUILD_TYPE Release)
+@@ -248,8 +255,8 @@
+
+ # Installing on *nix
+ IF(UNIX)
+- SET(GAME_INSTALL_DIR "/usr/share/opensonic")
+- SET(GAME_FINAL_DIR "/usr/bin")
++ SET(GAME_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/share/opensonic")
++ SET(GAME_FINAL_DIR "${CMAKE_INSTALL_PREFIX}/bin")
+
+ INSTALL(CODE "MESSAGE(\"Installing Open Sonic ${GAME_VERSION}... Make sure you have root privileges.\")")
+ INSTALL(TARGETS ${GAME_BIN} ${LAUNCHER_BIN} RUNTIME DESTINATION ${GAME_INSTALL_DIR})
+@@ -257,8 +264,8 @@
+ INSTALL(DIRECTORY config gui images levels licenses musics quests samples screenshots themes languages DESTINATION ${GAME_INSTALL_DIR} PATTERN ".svn" EXCLUDE)
+
+ INSTALL(CODE "MESSAGE(\"Creating files at ${GAME_FINAL_DIR}...\")")
+- INSTALL(CODE "EXECUTE_PROCESS(COMMAND \"cmake\" \"-E\" \"copy\" \"${GAME_INSTALL_DIR}/${GAME_BIN}\" \"${GAME_FINAL_DIR}/${GAME_BIN}\")")
+- INSTALL(CODE "EXECUTE_PROCESS(COMMAND \"cmake\" \"-E\" \"copy\" \"${GAME_INSTALL_DIR}/${LAUNCHER_BIN}\" \"${GAME_FINAL_DIR}/${LAUNCHER_BIN}\")")
++ INSTALL(CODE "EXECUTE_PROCESS(COMMAND \"cmake\" \"-E\" \"copy\" \"${CMAKE_CURRENT_BINARY_DIR}/src/misc/${GAME_NAME}\" \"${GAME_FINAL_DIR}/${GAME_NAME}\")")
++ INSTALL(CODE "EXECUTE_PROCESS(COMMAND \"cmake\" \"-E\" \"copy\" \"${CMAKE_CURRENT_BINARY_DIR}/src/misc/${GAME_NAME}_launcher\" \"${GAME_FINAL_DIR}/${GAME_NAME}_launcher\")")
+
+- INSTALL(CODE "MESSAGE(\"Done! Run ${LAUNCHER_BIN} to start the game.\")")
++ INSTALL(CODE "MESSAGE(\"Done! Run ${GAME_NAME}_launcher to start the game.\")")
+ ENDIF(UNIX)
diff --git a/games/opensonic/files/patch-src__misc__opensonic b/games/opensonic/files/patch-src__misc__opensonic
new file mode 100644
index 000000000000..afaa68acc074
--- /dev/null
+++ b/games/opensonic/files/patch-src__misc__opensonic
@@ -0,0 +1,14 @@
+--- src/misc/opensonic.orig 2009-06-01 02:34:38.000000000 +1100
++++ src/misc/opensonic 2010-02-02 20:03:04.352042228 +1000
+@@ -1,9 +1,9 @@
+-#!/bin/bash
++#!/bin/sh
+ # Game
+
+ GAME_BIN="opensonic_bin"
+ PWD_DIR=`pwd`
+-GAME_DIR=`echo $0 | sed 's,^\(.*\)/\(.*\)$,\1,g'`
++GAME_DIR=%%GAME_DIR%%
+ GAME_PATH="${GAME_DIR}/${GAME_BIN}"
+
+ # Set LD_LIBRARY_PATH
diff --git a/games/opensonic/files/patch-src__misc__opensonic_launcher b/games/opensonic/files/patch-src__misc__opensonic_launcher
new file mode 100644
index 000000000000..f0938943a5b5
--- /dev/null
+++ b/games/opensonic/files/patch-src__misc__opensonic_launcher
@@ -0,0 +1,14 @@
+--- src/misc/opensonic_launcher.orig 2009-06-01 02:34:38.000000000 +1100
++++ src/misc/opensonic_launcher 2010-02-02 20:03:27.382511463 +1000
+@@ -1,9 +1,9 @@
+-#!/bin/bash
++#!/bin/sh
+ # Game Launcher
+
+ GAME_BIN="opensonic_launcher_bin"
+ PWD_DIR=`pwd`
+-GAME_DIR=`echo $0 | sed 's,^\(.*\)/\(.*\)$,\1,g'`
++GAME_DIR=%%GAME_DIR%%
+ GAME_PATH="${GAME_DIR}/${GAME_BIN}"
+
+ # Set LD_LIBRARY_PATH
diff --git a/games/opensonic/pkg-descr b/games/opensonic/pkg-descr
new file mode 100644
index 000000000000..d9d28ed725ab
--- /dev/null
+++ b/games/opensonic/pkg-descr
@@ -0,0 +1,8 @@
+Game based on the "Sonic the Hedgehog" universe.
+It introduces a different style of gameplay called cooperative play,
+in which it's possible to control 3 characters simultaneously.
+Unlike most similar games, Open Sonic provides a greater level of interaction
+between the player and the levels. It's more than just a jump'n'run;
+the user must come up with some strategy in order to get through the levels.
+
+WWW: http://opensnc.sourceforge.net
diff --git a/games/opensonic/pkg-plist b/games/opensonic/pkg-plist
new file mode 100644
index 000000000000..d2cb3d55fb5d
--- /dev/null
+++ b/games/opensonic/pkg-plist
@@ -0,0 +1,153 @@
+bin/opensonic
+bin/opensonic_launcher
+%%DATADIR%%/config/sprite.def
+%%DATADIR%%/gui/button1.tga
+%%DATADIR%%/gui/button_disabled.tga
+%%DATADIR%%/gui/buttonhi.tga
+%%DATADIR%%/gui/buttonpress.tga
+%%DATADIR%%/gui/checkbox.tga
+%%DATADIR%%/gui/dialog.tga
+%%DATADIR%%/gui/gui.dat
+%%DATADIR%%/gui/listbox.tga
+%%DATADIR%%/gui/logo.tga
+%%DATADIR%%/gui/radio.tga
+%%DATADIR%%/gui/scrollbar.tga
+%%DATADIR%%/gui/slider.tga
+%%DATADIR%%/gui/textbox.tga
+%%DATADIR%%/gui/vscroll.tga
+%%DATADIR%%/images/animals.png
+%%DATADIR%%/images/baddies.png
+%%DATADIR%%/images/boss.png
+%%DATADIR%%/images/checkpoint_orb.png
+%%DATADIR%%/images/font.png
+%%DATADIR%%/images/gui.png
+%%DATADIR%%/images/icon.png
+%%DATADIR%%/images/intro.png
+%%DATADIR%%/images/island.png
+%%DATADIR%%/images/island2.png
+%%DATADIR%%/images/island3.png
+%%DATADIR%%/images/items.png
+%%DATADIR%%/images/null.png
+%%DATADIR%%/images/ocean.png
+%%DATADIR%%/images/ocean2.png
+%%DATADIR%%/images/player.png
+%%DATADIR%%/images/prototype1.png
+%%DATADIR%%/images/prototype2.png
+%%DATADIR%%/images/ring_shields.png
+%%DATADIR%%/images/sourcecode.png
+%%DATADIR%%/images/spring_pads.png
+%%DATADIR%%/images/squarebg.png
+%%DATADIR%%/images/title.png
+%%DATADIR%%/languages/english.lng
+%%DATADIR%%/languages/espanol.lng
+%%DATADIR%%/languages/francais.lng
+%%DATADIR%%/languages/ptbr.lng
+%%DATADIR%%/levels/blue_ocean_1.lev
+%%DATADIR%%/levels/blue_ocean_1m.lev
+%%DATADIR%%/levels/blue_ocean_2.lev
+%%DATADIR%%/levels/blue_ocean_2m.lev
+%%DATADIR%%/levels/blue_ocean_3.lev
+%%DATADIR%%/levels/blue_ocean_3m.lev
+%%DATADIR%%/levels/exotic_1.lev
+%%DATADIR%%/levels/exotic_1m.lev
+%%DATADIR%%/levels/exotic_2.lev
+%%DATADIR%%/levels/exotic_2m.lev
+%%DATADIR%%/levels/exotic_3.lev
+%%DATADIR%%/levels/exotic_3m.lev
+%%DATADIR%%/levels/prototype.lev
+%%DATADIR%%/levels/testzone.lev
+%%DATADIR%%/levels/tutorial_1.lev
+%%DATADIR%%/levels/tutorial_2.lev
+%%DATADIR%%/license.txt
+%%DATADIR%%/licenses/2xsai.txt
+%%DATADIR%%/licenses/Allegro.txt
+%%DATADIR%%/licenses/AllegroPNG.txt
+%%DATADIR%%/licenses/DUMB.txt
+%%DATADIR%%/licenses/lexgui.txt
+%%DATADIR%%/licenses/logg.txt
+%%DATADIR%%/musics/boss.it
+%%DATADIR%%/musics/credits.txt
+%%DATADIR%%/musics/endofquest.it
+%%DATADIR%%/musics/exotic.it
+%%DATADIR%%/musics/invencible.it
+%%DATADIR%%/musics/ocean.it
+%%DATADIR%%/musics/speed.it
+%%DATADIR%%/musics/title.ogg
+%%DATADIR%%/musics/tutorial.it
+%%DATADIR%%/opensonic_bin
+%%DATADIR%%/opensonic_launcher_bin
+%%DATADIR%%/quests/master.png
+%%DATADIR%%/quests/master.qst
+%%DATADIR%%/quests/tutorial.png
+%%DATADIR%%/quests/tutorial.qst
+%%DATADIR%%/readme.html
+%%DATADIR%%/samples/1up.ogg
+%%DATADIR%%/samples/bigring.wav
+%%DATADIR%%/samples/bigshot.wav
+%%DATADIR%%/samples/bosshit.wav
+%%DATADIR%%/samples/brake.wav
+%%DATADIR%%/samples/break.wav
+%%DATADIR%%/samples/bumper.wav
+%%DATADIR%%/samples/cash.wav
+%%DATADIR%%/samples/checkpoint.wav
+%%DATADIR%%/samples/choose.wav
+%%DATADIR%%/samples/credits.txt
+%%DATADIR%%/samples/death.wav
+%%DATADIR%%/samples/deny.wav
+%%DATADIR%%/samples/destroypop.wav
+%%DATADIR%%/samples/door1.wav
+%%DATADIR%%/samples/door2.wav
+%%DATADIR%%/samples/endsign.wav
+%%DATADIR%%/samples/fire.wav
+%%DATADIR%%/samples/fire2.wav
+%%DATADIR%%/samples/floorfall.wav
+%%DATADIR%%/samples/glasses.wav
+%%DATADIR%%/samples/goal.wav
+%%DATADIR%%/samples/jump.wav
+%%DATADIR%%/samples/puff.wav
+%%DATADIR%%/samples/return.wav
+%%DATADIR%%/samples/ring.wav
+%%DATADIR%%/samples/ringcount.wav
+%%DATADIR%%/samples/ringless.wav
+%%DATADIR%%/samples/scratch.wav
+%%DATADIR%%/samples/select.wav
+%%DATADIR%%/samples/shield.wav
+%%DATADIR%%/samples/shot.wav
+%%DATADIR%%/samples/spikes.wav
+%%DATADIR%%/samples/spin.wav
+%%DATADIR%%/samples/spindash1.wav
+%%DATADIR%%/samples/spindash2.wav
+%%DATADIR%%/samples/spring.wav
+%%DATADIR%%/samples/switch.wav
+%%DATADIR%%/samples/teleporter.wav
+%%DATADIR%%/samples/tfly1.wav
+%%DATADIR%%/samples/tfly2.wav
+%%DATADIR%%/samples/touch.wav
+%%DATADIR%%/samples/touch2.wav
+%%DATADIR%%/screenshots/screenshots.txt
+%%DATADIR%%/themes/island.bg
+%%DATADIR%%/themes/island.brk
+%%DATADIR%%/themes/island2.bg
+%%DATADIR%%/themes/island2.brk
+%%DATADIR%%/themes/island3.bg
+%%DATADIR%%/themes/island3.brk
+%%DATADIR%%/themes/ocean.bg
+%%DATADIR%%/themes/ocean.brk
+%%DATADIR%%/themes/ocean2.bg
+%%DATADIR%%/themes/ocean2.brk
+%%DATADIR%%/themes/ocean2b.bg
+%%DATADIR%%/themes/oceanb.bg
+%%DATADIR%%/themes/prototype.bg
+%%DATADIR%%/themes/prototype.brk
+@dirrm %%DATADIR%%/themes
+@dirrm %%DATADIR%%/screenshots
+@dirrm %%DATADIR%%/samples
+@dirrm %%DATADIR%%/quests
+@dirrm %%DATADIR%%/musics
+@dirrm %%DATADIR%%/licenses
+@dirrm %%DATADIR%%/levels
+@dirrm %%DATADIR%%/languages
+@dirrm %%DATADIR%%/images
+@dirrm %%DATADIR%%/gui
+@dirrm %%DATADIR%%/config
+@dirrm %%DATADIR%%