Open Sonic is a free open-source 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. originally from & OK landry@
This commit is contained in:
parent
96817dc334
commit
93caff8b0e
43
games/opensonic/Makefile
Normal file
43
games/opensonic/Makefile
Normal file
@ -0,0 +1,43 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2009/10/15 14:39:50 phessler Exp $
|
||||
|
||||
COMMENT = game based on the Sonic the Hedgehog universe
|
||||
|
||||
V = 0.1.2
|
||||
DISTNAME = opensnc-src${V}
|
||||
PKGNAME = opensonic-${V}
|
||||
|
||||
CATEGORIES= games
|
||||
|
||||
HOMEPAGE = http://opensnc.sourceforge.net
|
||||
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=opensnc/}
|
||||
#MASTER_SITES = http://downloads.sourceforge.net/project/opensnc/Open%20Sonic/${V}/
|
||||
|
||||
# GPLv2 or later
|
||||
PERMIT_PACKAGE_CDROM= contains potentially copyrighted artwork
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= contains potentially copyrighted artwork
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MODULES = devel/cmake
|
||||
|
||||
BUILD_DEPENDS = ::graphics/allegropng
|
||||
|
||||
LIB_DEPENDS = alleg::games/allegro \
|
||||
dumb::audio/dumb \
|
||||
vorbis,vorbisfile::audio/libvorbis
|
||||
|
||||
WANTLIB = c ogg m sndio
|
||||
|
||||
do-configure:
|
||||
${SUBST_CMD} ${WRKSRC}/CMakeLists.txt
|
||||
cd ${WRKSRC} && env OPENSNC_ALLEGRO_LIBS="`allegro-config --libs`" \
|
||||
OPENSNC_ALLEGRO_VERSION="`allegro-config --version`" cmake .
|
||||
|
||||
post-install:
|
||||
echo "#!/bin/sh\ncd ${TRUEPREFIX}/share/opensonic\n./opensonic_launcher" > \
|
||||
${PREFIX}/bin/opensonic
|
||||
chmod 755 ${PREFIX}/bin/opensonic
|
||||
|
||||
NO_REGRESS= Yes
|
||||
|
||||
.include <bsd.port.mk>
|
5
games/opensonic/distinfo
Normal file
5
games/opensonic/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (opensnc-src0.1.2.tar.gz) = 66fcQva4Lt/wOLrnBjMd+w==
|
||||
RMD160 (opensnc-src0.1.2.tar.gz) = jUopXmvWfofzJH3g4vJfIQqirUE=
|
||||
SHA1 (opensnc-src0.1.2.tar.gz) = uZuWaob7BF3QeMlDTHp8zM+c5jU=
|
||||
SHA256 (opensnc-src0.1.2.tar.gz) = kXHuEjVW9mAPsrQZj3W3slLVFZ43FGZuNYnxe2p2saU=
|
||||
SIZE (opensnc-src0.1.2.tar.gz) = 4392887
|
42
games/opensonic/patches/patch-CMakeLists_txt
Normal file
42
games/opensonic/patches/patch-CMakeLists_txt
Normal file
@ -0,0 +1,42 @@
|
||||
$OpenBSD: patch-CMakeLists_txt,v 1.1.1.1 2009/10/15 14:39:50 phessler Exp $
|
||||
--- CMakeLists.txt.orig Wed Jul 22 07:54:28 2009
|
||||
+++ CMakeLists.txt Fri Oct 9 18:27:30 2009
|
||||
@@ -21,7 +21,7 @@ MESSAGE("Open Sonic version ${GAME_VERSION}")
|
||||
|
||||
# configuring...
|
||||
SET(DEFS "")
|
||||
-SET(CFLAGS "")
|
||||
+SET(CFLAGS "`allegro-config --cflags`")
|
||||
|
||||
IF(UNIX)
|
||||
SET(ALLEGRO_UNIX_LIBS "$ENV{OPENSNC_ALLEGRO_LIBS}")
|
||||
@@ -164,8 +164,8 @@ IF(UNIX)
|
||||
SET_TARGET_PROPERTIES(${GAME_BIN} PROPERTIES LINK_FLAGS ${ALLEGRO_UNIX_LIBS})
|
||||
TARGET_LINK_LIBRARIES(${GAME_BIN} m ${LOGG_LIBS} ${DUMB_LIBS} alpng)
|
||||
SET_TARGET_PROPERTIES(${LAUNCHER_BIN} PROPERTIES LINK_FLAGS ${ALLEGRO_UNIX_LIBS})
|
||||
- SET_TARGET_PROPERTIES(${GAME_BIN} PROPERTIES COMPILE_FLAGS "-Wall -O2 ${CFLAGS}")
|
||||
- SET_TARGET_PROPERTIES(${LAUNCHER_BIN} PROPERTIES COMPILE_FLAGS "-Wall -O2")
|
||||
+ SET_TARGET_PROPERTIES(${GAME_BIN} PROPERTIES COMPILE_FLAGS "-Wall ${CFLAGS}")
|
||||
+ SET_TARGET_PROPERTIES(${LAUNCHER_BIN} PROPERTIES COMPILE_FLAGS "-Wall ${CFLAGS}")
|
||||
ENDIF(UNIX)
|
||||
|
||||
|
||||
@@ -248,17 +248,12 @@ SET_TARGET_PROPERTIES(${LAUNCHER_BIN} PROPERTIES PROJE
|
||||
|
||||
# Installing on *nix
|
||||
IF(UNIX)
|
||||
- SET(GAME_INSTALL_DIR "/usr/share/opensonic")
|
||||
- SET(GAME_FINAL_DIR "/usr/bin")
|
||||
+ SET(GAME_INSTALL_DIR "${PREFIX}/share/opensonic")
|
||||
|
||||
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})
|
||||
INSTALL(FILES license.txt readme.html DESTINATION ${GAME_INSTALL_DIR})
|
||||
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 "MESSAGE(\"Done! Run ${LAUNCHER_BIN} to start the game.\")")
|
||||
ENDIF(UNIX)
|
10
games/opensonic/patches/patch-src_global_h
Normal file
10
games/opensonic/patches/patch-src_global_h
Normal file
@ -0,0 +1,10 @@
|
||||
$OpenBSD: patch-src_global_h,v 1.1.1.1 2009/10/15 14:39:50 phessler Exp $
|
||||
--- src/global.h.orig Fri Oct 9 17:58:18 2009
|
||||
+++ src/global.h Fri Oct 9 17:58:27 2009
|
||||
@@ -40,6 +40,5 @@ typedef unsigned long uint32;
|
||||
#define FALSE 0
|
||||
#define EPSILON 0.00001
|
||||
#define PI 3.14159265
|
||||
-#define INFINITY (1<<30)
|
||||
|
||||
#endif
|
11
games/opensonic/patches/patch-src_util_h
Normal file
11
games/opensonic/patches/patch-src_util_h
Normal file
@ -0,0 +1,11 @@
|
||||
$OpenBSD: patch-src_util_h,v 1.1.1.1 2009/10/15 14:39:50 phessler Exp $
|
||||
--- src/util.h.orig Tue Jun 2 15:28:43 2009
|
||||
+++ src/util.h Tue Jun 2 15:29:15 2009
|
||||
@@ -21,6 +21,7 @@
|
||||
#define _UTIL_H
|
||||
|
||||
#include <stdlib.h>
|
||||
+#include <math.h>
|
||||
#include "global.h"
|
||||
#include "osspec.h"
|
||||
|
7
games/opensonic/pkg/DESCR
Normal file
7
games/opensonic/pkg/DESCR
Normal file
@ -0,0 +1,7 @@
|
||||
Open Sonic is a free open-source 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.
|
153
games/opensonic/pkg/PLIST
Normal file
153
games/opensonic/pkg/PLIST
Normal file
@ -0,0 +1,153 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2009/10/15 14:39:50 phessler Exp $
|
||||
bin/opensonic
|
||||
share/opensonic/
|
||||
share/opensonic/config/
|
||||
share/opensonic/config/sprite.def
|
||||
share/opensonic/gui/
|
||||
share/opensonic/gui/button1.tga
|
||||
share/opensonic/gui/button_disabled.tga
|
||||
share/opensonic/gui/buttonhi.tga
|
||||
share/opensonic/gui/buttonpress.tga
|
||||
share/opensonic/gui/checkbox.tga
|
||||
share/opensonic/gui/dialog.tga
|
||||
share/opensonic/gui/gui.dat
|
||||
share/opensonic/gui/listbox.tga
|
||||
share/opensonic/gui/logo.tga
|
||||
share/opensonic/gui/radio.tga
|
||||
share/opensonic/gui/scrollbar.tga
|
||||
share/opensonic/gui/slider.tga
|
||||
share/opensonic/gui/textbox.tga
|
||||
share/opensonic/gui/vscroll.tga
|
||||
share/opensonic/images/
|
||||
share/opensonic/images/animals.png
|
||||
share/opensonic/images/baddies.png
|
||||
share/opensonic/images/boss.png
|
||||
share/opensonic/images/checkpoint_orb.png
|
||||
share/opensonic/images/font.png
|
||||
share/opensonic/images/gui.png
|
||||
share/opensonic/images/icon.png
|
||||
share/opensonic/images/intro.png
|
||||
share/opensonic/images/island.png
|
||||
share/opensonic/images/island2.png
|
||||
share/opensonic/images/island3.png
|
||||
share/opensonic/images/items.png
|
||||
share/opensonic/images/null.png
|
||||
share/opensonic/images/ocean.png
|
||||
share/opensonic/images/ocean2.png
|
||||
share/opensonic/images/player.png
|
||||
share/opensonic/images/prototype1.png
|
||||
share/opensonic/images/prototype2.png
|
||||
share/opensonic/images/ring_shields.png
|
||||
share/opensonic/images/sourcecode.png
|
||||
share/opensonic/images/spring_pads.png
|
||||
share/opensonic/images/squarebg.png
|
||||
share/opensonic/images/title.png
|
||||
share/opensonic/languages/
|
||||
share/opensonic/languages/english.lng
|
||||
share/opensonic/languages/espanol.lng
|
||||
share/opensonic/languages/francais.lng
|
||||
share/opensonic/languages/ptbr.lng
|
||||
share/opensonic/levels/
|
||||
share/opensonic/levels/blue_ocean_1.lev
|
||||
share/opensonic/levels/blue_ocean_1m.lev
|
||||
share/opensonic/levels/blue_ocean_2.lev
|
||||
share/opensonic/levels/blue_ocean_2m.lev
|
||||
share/opensonic/levels/blue_ocean_3.lev
|
||||
share/opensonic/levels/blue_ocean_3m.lev
|
||||
share/opensonic/levels/exotic_1.lev
|
||||
share/opensonic/levels/exotic_1m.lev
|
||||
share/opensonic/levels/exotic_2.lev
|
||||
share/opensonic/levels/exotic_2m.lev
|
||||
share/opensonic/levels/exotic_3.lev
|
||||
share/opensonic/levels/exotic_3m.lev
|
||||
share/opensonic/levels/prototype.lev
|
||||
share/opensonic/levels/testzone.lev
|
||||
share/opensonic/levels/tutorial_1.lev
|
||||
share/opensonic/levels/tutorial_2.lev
|
||||
share/opensonic/license.txt
|
||||
share/opensonic/licenses/
|
||||
share/opensonic/licenses/2xsai.txt
|
||||
share/opensonic/licenses/Allegro.txt
|
||||
share/opensonic/licenses/AllegroPNG.txt
|
||||
share/opensonic/licenses/DUMB.txt
|
||||
share/opensonic/licenses/lexgui.txt
|
||||
share/opensonic/licenses/logg.txt
|
||||
share/opensonic/musics/
|
||||
share/opensonic/musics/boss.it
|
||||
share/opensonic/musics/credits.txt
|
||||
share/opensonic/musics/endofquest.it
|
||||
share/opensonic/musics/exotic.it
|
||||
share/opensonic/musics/invencible.it
|
||||
share/opensonic/musics/ocean.it
|
||||
share/opensonic/musics/speed.it
|
||||
share/opensonic/musics/title.ogg
|
||||
share/opensonic/musics/tutorial.it
|
||||
@bin share/opensonic/opensonic
|
||||
@bin share/opensonic/opensonic_launcher
|
||||
share/opensonic/quests/
|
||||
share/opensonic/quests/master.png
|
||||
share/opensonic/quests/master.qst
|
||||
share/opensonic/quests/tutorial.png
|
||||
share/opensonic/quests/tutorial.qst
|
||||
share/opensonic/readme.html
|
||||
share/opensonic/samples/
|
||||
share/opensonic/samples/1up.ogg
|
||||
share/opensonic/samples/bigring.wav
|
||||
share/opensonic/samples/bigshot.wav
|
||||
share/opensonic/samples/bosshit.wav
|
||||
share/opensonic/samples/brake.wav
|
||||
share/opensonic/samples/break.wav
|
||||
share/opensonic/samples/bumper.wav
|
||||
share/opensonic/samples/cash.wav
|
||||
share/opensonic/samples/checkpoint.wav
|
||||
share/opensonic/samples/choose.wav
|
||||
share/opensonic/samples/credits.txt
|
||||
share/opensonic/samples/death.wav
|
||||
share/opensonic/samples/deny.wav
|
||||
share/opensonic/samples/destroypop.wav
|
||||
share/opensonic/samples/door1.wav
|
||||
share/opensonic/samples/door2.wav
|
||||
share/opensonic/samples/endsign.wav
|
||||
share/opensonic/samples/fire.wav
|
||||
share/opensonic/samples/fire2.wav
|
||||
share/opensonic/samples/floorfall.wav
|
||||
share/opensonic/samples/glasses.wav
|
||||
share/opensonic/samples/goal.wav
|
||||
share/opensonic/samples/jump.wav
|
||||
share/opensonic/samples/puff.wav
|
||||
share/opensonic/samples/return.wav
|
||||
share/opensonic/samples/ring.wav
|
||||
share/opensonic/samples/ringcount.wav
|
||||
share/opensonic/samples/ringless.wav
|
||||
share/opensonic/samples/scratch.wav
|
||||
share/opensonic/samples/select.wav
|
||||
share/opensonic/samples/shield.wav
|
||||
share/opensonic/samples/shot.wav
|
||||
share/opensonic/samples/spikes.wav
|
||||
share/opensonic/samples/spin.wav
|
||||
share/opensonic/samples/spindash1.wav
|
||||
share/opensonic/samples/spindash2.wav
|
||||
share/opensonic/samples/spring.wav
|
||||
share/opensonic/samples/switch.wav
|
||||
share/opensonic/samples/teleporter.wav
|
||||
share/opensonic/samples/tfly1.wav
|
||||
share/opensonic/samples/tfly2.wav
|
||||
share/opensonic/samples/touch.wav
|
||||
share/opensonic/samples/touch2.wav
|
||||
share/opensonic/screenshots/
|
||||
share/opensonic/screenshots/screenshots.txt
|
||||
share/opensonic/themes/
|
||||
share/opensonic/themes/island.bg
|
||||
share/opensonic/themes/island.brk
|
||||
share/opensonic/themes/island2.bg
|
||||
share/opensonic/themes/island2.brk
|
||||
share/opensonic/themes/island3.bg
|
||||
share/opensonic/themes/island3.brk
|
||||
share/opensonic/themes/ocean.bg
|
||||
share/opensonic/themes/ocean.brk
|
||||
share/opensonic/themes/ocean2.bg
|
||||
share/opensonic/themes/ocean2.brk
|
||||
share/opensonic/themes/ocean2b.bg
|
||||
share/opensonic/themes/oceanb.bg
|
||||
share/opensonic/themes/prototype.bg
|
||||
share/opensonic/themes/prototype.brk
|
Loading…
Reference in New Issue
Block a user