diff --git a/packages/openal-soft/alcConfig.c.patch b/packages/openal-soft/alcConfig.c.patch new file mode 100644 index 000000000..aa7bfa112 --- /dev/null +++ b/packages/openal-soft/alcConfig.c.patch @@ -0,0 +1,21 @@ +diff -uNr openal-soft-1.18.2/Alc/alcConfig.c openal-soft-1.18.2.mod/Alc/alcConfig.c +--- openal-soft-1.18.2/Alc/alcConfig.c 2017-09-24 16:41:50.000000000 +0300 ++++ openal-soft-1.18.2.mod/Alc/alcConfig.c 2019-03-02 02:17:37.066950410 +0200 +@@ -424,7 +424,7 @@ + al_string ppath; + FILE *f; + +- str = "/etc/openal/alsoft.conf"; ++ str = "@TERMUX_PREFIX@/etc/openal/alsoft.conf"; + + TRACE("Loading config %s...\n", str); + f = al_fopen(str, "r"); +@@ -435,7 +435,7 @@ + } + + if(!(str=getenv("XDG_CONFIG_DIRS")) || str[0] == 0) +- str = "/etc/xdg"; ++ str = "@TERMUX_PREFIX@/etc/xdg"; + strncpy(buffer, str, sizeof(buffer)-1); + buffer[sizeof(buffer)-1] = 0; + /* Go through the list in reverse, since "the order of base directories diff --git a/packages/openal-soft/build.sh b/packages/openal-soft/build.sh index b6a6094b9..bf8eba1af 100644 --- a/packages/openal-soft/build.sh +++ b/packages/openal-soft/build.sh @@ -2,6 +2,7 @@ TERMUX_PKG_HOMEPAGE=http://openal-soft.org/ TERMUX_PKG_DESCRIPTION="Software implementation of the OpenAL API" TERMUX_PKG_LICENSE="LGPL-2.0" TERMUX_PKG_VERSION=1.18.2 +TERMUX_PKG_REVISION=1 TERMUX_PKG_SHA256=9f8ac1e27fba15a59758a13f0c7f6540a0605b6c3a691def9d420570506d7e82 TERMUX_PKG_SRCURL=http://openal-soft.org/openal-releases/openal-soft-$TERMUX_PKG_VERSION.tar.bz2 TERMUX_PKG_EXTRA_CONFIGURE_ARGS="