new package: love
This commit is contained in:
parent
344d885de6
commit
d65d160751
|
@ -0,0 +1,25 @@
|
|||
TERMUX_PKG_HOMEPAGE=https://love2d.org/
|
||||
TERMUX_PKG_DESCRIPTION="A framework you can use to make 2D games in Lua"
|
||||
TERMUX_PKG_LICENSE="ZLIB"
|
||||
TERMUX_PKG_LICENSE_FILE="license.txt"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION=11.4
|
||||
TERMUX_PKG_SRCURL=https://github.com/love2d/love/archive/refs/tags/${TERMUX_PKG_VERSION}.tar.gz
|
||||
TERMUX_PKG_SHA256=eed6e388a0c3b14150d26c6c7f64288595f4c722ee9eda0d6797ea83f2c65d23
|
||||
TERMUX_PKG_DEPENDS="freetype, game-music-emu, libandroid-spawn, libc++, libluajit, libmodplug, libogg, libtheora, libvorbis, mesa, mpg123, openal-soft, sdl2, zlib"
|
||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
||||
--enable-gme
|
||||
"
|
||||
|
||||
termux_step_pre_configure() {
|
||||
mkdir -p platform/unix/m4
|
||||
ln -sf $TERMUX_PREFIX/share/aclocal/sdl2.m4 platform/unix/m4/
|
||||
local _orig_prefix=${prefix}
|
||||
unset prefix
|
||||
./platform/unix/automagic
|
||||
export prefix=${_orig_prefix}
|
||||
|
||||
export OBJCXX="$CXX"
|
||||
LDFLAGS+=" -landroid-spawn"
|
||||
LDFLAGS+=" $($CC -print-libgcc-file-name)"
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
--- a/src/common/config.h
|
||||
+++ b/src/common/config.h
|
||||
@@ -37,7 +37,7 @@
|
||||
#if defined(linux) || defined(__linux) || defined(__linux__)
|
||||
# define LOVE_LINUX 1
|
||||
#endif
|
||||
-#if defined(__ANDROID__)
|
||||
+#if 0
|
||||
# define LOVE_ANDROID 1
|
||||
#endif
|
||||
#if defined(__APPLE__)
|
|
@ -0,0 +1,11 @@
|
|||
--- a/src/libraries/physfs/physfs_platform_unix.c
|
||||
+++ b/src/libraries/physfs/physfs_platform_unix.c
|
||||
@@ -101,7 +101,7 @@
|
||||
FILE *mounts = NULL;
|
||||
struct mntent *ent = NULL;
|
||||
|
||||
- mounts = setmntent("/etc/mtab", "r");
|
||||
+ mounts = setmntent("@TERMUX_PREFIX@/etc/mtab", "r");
|
||||
BAIL_IF(mounts == NULL, PHYSFS_ERR_IO, /*return void*/);
|
||||
|
||||
while ( (ent = getmntent(mounts)) != NULL )
|
|
@ -0,0 +1,11 @@
|
|||
--- a/src/modules/sound/lullaby/GmeDecoder.h
|
||||
+++ b/src/modules/sound/lullaby/GmeDecoder.h
|
||||
@@ -30,7 +30,7 @@
|
||||
#ifdef LOVE_APPLE_USE_FRAMEWORKS
|
||||
#include <Game_Music_Emu/gme.h>
|
||||
#else
|
||||
-#include <gme.h>
|
||||
+#include <gme/gme.h>
|
||||
#endif
|
||||
|
||||
namespace love
|
Loading…
Reference in New Issue