Import games/fallingtime, a game where you are a constantly falling ball.

macppc testing and ok cwen@

FallingTime is an arcade game inspired by Fall Down. Like the Fall Down
games, you are a ball and you must fall into the holes to avoid being
crushed by the top of the screen!
This commit is contained in:
bcallah 2019-11-12 13:37:22 +00:00
parent d54457419c
commit a3c63d8133
8 changed files with 191 additions and 0 deletions

View File

@ -0,0 +1,31 @@
# $OpenBSD: Makefile,v 1.1.1.1 2019/11/12 13:37:22 bcallah Exp $
COMMENT = game where you are a constantly falling ball
PKGNAME = fallingtime-${GH_TAGNAME}
CATEGORIES = games x11
GH_ACCOUNT = cxong
GH_PROJECT = FallingTime
GH_TAGNAME = 1.0.2
MAINTAINER = Brian Callahan <bcallah@openbsd.org>
# GPLv2+
PERMIT_PACKAGE = Yes
WANTLIB += SDL2 SDL2_image SDL2_mixer SDL2_ttf c m pthread
MODULES = devel/cmake
LIB_DEPENDS = devel/sdl2-image \
devel/sdl2-mixer \
devel/sdl2-ttf
NO_TEST = Yes
post-install:
echo "#!/bin/sh\ncd ${TRUEPREFIX}/share/fallingtime\n./falling_time" > \
${WRKSRC}/fallingtime
${SUBST_CMD} -c -m 555 ${WRKSRC}/fallingtime ${PREFIX}/bin/fallingtime
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (FallingTime-1.0.2.tar.gz) = Aft8zI2TVYrGBuM9IoC0eTKgGK6nYOpmNT2z/pLytcY=
SIZE (FallingTime-1.0.2.tar.gz) = 1879166

View File

@ -0,0 +1,23 @@
$OpenBSD: patch-CMakeLists_txt,v 1.1.1.1 2019/11/12 13:37:22 bcallah Exp $
Index: CMakeLists.txt
--- CMakeLists.txt.orig
+++ CMakeLists.txt
@@ -43,7 +43,7 @@ else()
endif()
if(CMAKE_BUILD_TYPE STREQUAL "Release")
- set(CMAKE_C_FLAGS_RELEASE "-O2 -g0")
+ set(CMAKE_C_FLAGS_RELEASE "")
elseif(CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g")
elseif(CMAKE_BUILD_TYPE STREQUAL "MinSizeRel")
@@ -134,7 +134,7 @@ set_target_properties(falling_time PROPERTIES
################
# Executables
-set(INSTALL_PREFIX ".")
+set(INSTALL_PREFIX "${OPENBSD_LOCALBASE}/share/fallingtime")
if(WIN32)
set(EXE_EXTENSION ".exe")
set(LIB_EXTENSION ".dll")

View File

@ -0,0 +1,57 @@
$OpenBSD: patch-cfgpath_h,v 1.1.1.1 2019/11/12 13:37:22 bcallah Exp $
Index: cfgpath.h
--- cfgpath.h.orig
+++ cfgpath.h
@@ -39,7 +39,7 @@
#define mkdir _mkdir
#endif
-#ifdef __linux__
+#ifdef __OpenBSD__
#include <string.h>
#include <stdlib.h>
#include <sys/stat.h>
@@ -88,7 +88,7 @@
*/
static inline void get_user_config_file(char *out, unsigned int maxlen, const char *appname)
{
-#ifdef __linux__
+#ifdef __OpenBSD__
const char *out_orig = out;
char *home = getenv("XDG_CONFIG_HOME");
unsigned int config_len = 0;
@@ -194,7 +194,7 @@ static inline void get_user_config_file(char *out, uns
*/
static inline void get_user_config_folder(char *out, unsigned int maxlen, const char *appname)
{
-#ifdef __linux__
+#ifdef __OpenBSD__
const char *out_orig = out;
char *home = getenv("XDG_CONFIG_HOME");
unsigned int config_len = 0;
@@ -311,7 +311,7 @@ static inline void get_user_config_folder(char *out, u
*/
static inline void get_user_data_folder(char *out, unsigned int maxlen, const char *appname)
{
-#ifdef __linux__
+#ifdef __OpenBSD__
const char *out_orig = out;
char *home = getenv("XDG_DATA_HOME");
unsigned int config_len = 0;
@@ -396,7 +396,7 @@ static inline void get_user_data_folder(char *out, uns
*/
static inline void get_user_cache_folder(char *out, unsigned int maxlen, const char *appname)
{
-#ifdef __linux__
+#ifdef __OpenBSD__
const char *out_orig = out;
char *home = getenv("XDG_CACHE_HOME");
unsigned int config_len = 0;
@@ -464,4 +464,4 @@ static inline void get_user_cache_folder(char *out, un
#endif
}
-#endif /* CFGPATH_H_ */
\ No newline at end of file
+#endif /* CFGPATH_H_ */

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-chipmunk_include_chipmunk_chipmunk_h,v 1.1.1.1 2019/11/12 13:37:22 bcallah Exp $
Index: chipmunk/include/chipmunk/chipmunk.h
--- chipmunk/include/chipmunk/chipmunk.h.orig
+++ chipmunk/include/chipmunk/chipmunk.h
@@ -33,7 +33,6 @@
// For alloca().
#include <malloc.h>
#else
- #include <alloca.h>
#endif
#ifdef __cplusplus

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-chipmunk_src_CMakeLists_txt,v 1.1.1.1 2019/11/12 13:37:22 bcallah Exp $
Index: chipmunk/src/CMakeLists.txt
--- chipmunk/src/CMakeLists.txt.orig
+++ chipmunk/src/CMakeLists.txt
@@ -65,7 +65,7 @@ if(BUILD_SHARED OR INSTALL_STATIC)
endif(BUILD_SHARED OR INSTALL_STATIC)
if(CMAKE_BUILD_TYPE STREQUAL "Release")
- set(CMAKE_C_FLAGS_RELEASE "-O2 -g0")
+ set(CMAKE_C_FLAGS_RELEASE "")
add_definitions(-DNDEBUG)
elseif(CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g")

View File

@ -0,0 +1,3 @@
FallingTime is an arcade game inspired by Fall Down. Like the Fall Down
games, you are a ball and you must fall into the holes to avoid being
crushed by the top of the screen!

View File

@ -0,0 +1,48 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2019/11/12 13:37:22 bcallah Exp $
bin/fallingtime
share/fallingtime/
share/fallingtime/COPYRIGHT
share/fallingtime/README.md
share/fallingtime/data/
share/fallingtime/data/LondrinaSolid-Regular.otf
share/fallingtime/data/graphics/
share/fallingtime/data/graphics/360.png
share/fallingtime/data/graphics/anim.png
share/fallingtime/data/graphics/eggplant.png
share/fallingtime/data/graphics/flare.png
share/fallingtime/data/graphics/floor0.png
share/fallingtime/data/graphics/floor1.png
share/fallingtime/data/graphics/floor2.png
share/fallingtime/data/graphics/floor3.png
share/fallingtime/data/graphics/floor4.png
share/fallingtime/data/graphics/floor5.png
share/fallingtime/data/graphics/gameover.png
share/fallingtime/data/graphics/gcw0.png
share/fallingtime/data/graphics/gcw0analog.png
share/fallingtime/data/graphics/gcw0g.png
share/fallingtime/data/graphics/gcw1.png
share/fallingtime/data/graphics/icebergs.png
share/fallingtime/data/graphics/icon.png
share/fallingtime/data/graphics/keyboard0.png
share/fallingtime/data/graphics/keyboard1.png
share/fallingtime/data/graphics/penguin_ball.png
share/fallingtime/data/graphics/penguin_black.png
share/fallingtime/data/graphics/penguin_blue.png
share/fallingtime/data/graphics/penguin_red.png
share/fallingtime/data/graphics/sparks.png
share/fallingtime/data/graphics/sparks_red.png
share/fallingtime/data/graphics/stars.png
share/fallingtime/data/graphics/tail.png
share/fallingtime/data/sounds/
share/fallingtime/data/sounds/beep.ogg
share/fallingtime/data/sounds/bounce.ogg
share/fallingtime/data/sounds/chicken.ogg
share/fallingtime/data/sounds/lose.ogg
share/fallingtime/data/sounds/music.ogg
share/fallingtime/data/sounds/penguin.ogg
share/fallingtime/data/sounds/quack.ogg
share/fallingtime/data/sounds/roll.ogg
share/fallingtime/data/sounds/score.ogg
share/fallingtime/data/sounds/start.ogg
share/fallingtime/data/sounds/turkey.ogg
@bin share/fallingtime/falling_time