new package: liblo

This commit is contained in:
Tee KOBAYASHI 2022-05-08 10:05:59 +09:00 committed by xtkoba
parent ec1b017035
commit 83568c398e
2 changed files with 18 additions and 0 deletions

7
packages/liblo/build.sh Normal file
View File

@ -0,0 +1,7 @@
TERMUX_PKG_HOMEPAGE=http://liblo.sourceforge.net/
TERMUX_PKG_DESCRIPTION="A lightweight library that provides an easy to use implementation of the OSC protocol"
TERMUX_PKG_LICENSE="LGPL-2.1"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=0.31
TERMUX_PKG_SRCURL=https://downloads.sourceforge.net/liblo/liblo-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=2b4f446e1220dcd624ecd8405248b08b7601e9a0d87a0b94730c2907dbccc750

View File

@ -0,0 +1,11 @@
--- a/src/server.c
+++ b/src/server.c
@@ -2013,7 +2013,7 @@
tmp = (char*) malloc(strlen(it->path + len) + 1);
strcpy(tmp, it->path + len);
-#if defined(WIN32) || defined(_MSC_VER)
+#if defined(WIN32) || defined(_MSC_VER) || defined(__ANDROID__)
sec = strchr(tmp, '/');
#else
sec = index(tmp, '/');