1
0
mirror of https://github.com/termux/termux-packages synced 2024-06-14 09:56:39 +00:00

openal-soft: fix path to /etc

This commit is contained in:
Leonid Pliushch 2019-03-02 14:52:54 +02:00
parent 8529943f84
commit d99cf4f05b
2 changed files with 22 additions and 0 deletions

View File

@ -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

View File

@ -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="