mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
wineasio: update to 1.1.0.
This commit is contained in:
parent
29e48cf64b
commit
6f23d7a5e2
2 changed files with 18 additions and 80 deletions
|
@ -1,59 +0,0 @@
|
||||||
Source: @pullmoll
|
|
||||||
Upstream: no
|
|
||||||
Reason: wine/unicode.h does not exist anymore and also strrchrW()
|
|
||||||
is not available. Replace the code with a simple linear
|
|
||||||
scan over the application_path array to find the rightmost
|
|
||||||
backslash (\) and period (.) for creating the application_name.
|
|
||||||
|
|
||||||
--- a/wineasio/asio.c 2013-10-28 15:22:00.000000000 +0100
|
|
||||||
+++ b/wineasio/asio.c 2021-02-07 21:18:46.741180398 +0100
|
|
||||||
@@ -24,6 +24,7 @@
|
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
+#define _UNICODE
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <errno.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
@@ -34,7 +35,6 @@
|
|
||||||
#include "objbase.h"
|
|
||||||
#include "mmsystem.h"
|
|
||||||
#include "winreg.h"
|
|
||||||
-#include "wine/unicode.h"
|
|
||||||
|
|
||||||
#include <jack/jack.h>
|
|
||||||
#include <jack/thread.h>
|
|
||||||
@@ -1449,7 +1449,7 @@
|
|
||||||
{
|
|
||||||
HKEY hkey;
|
|
||||||
LONG result, value;
|
|
||||||
- DWORD type, size;
|
|
||||||
+ DWORD type, size, pos, backslash, period;
|
|
||||||
WCHAR application_path [MAX_PATH];
|
|
||||||
WCHAR *application_name;
|
|
||||||
char environment_variable[MAX_ENVIRONMENT_SIZE];
|
|
||||||
@@ -1601,10 +1601,20 @@
|
|
||||||
|
|
||||||
/* get client name by stripping path and extension */
|
|
||||||
GetModuleFileNameW(0, application_path, MAX_PATH);
|
|
||||||
- application_name = strrchrW(application_path, L'.');
|
|
||||||
- *application_name = 0;
|
|
||||||
- application_name = strrchrW(application_path, L'\\');
|
|
||||||
- application_name++;
|
|
||||||
+ backslash = 0;
|
|
||||||
+ period = 0;
|
|
||||||
+ for (pos = 0; pos < MAX_PATH; pos++) {
|
|
||||||
+ if (L'\\' == application_path[pos])
|
|
||||||
+ backslash = pos;
|
|
||||||
+ if (L'.' == application_path[pos])
|
|
||||||
+ period = pos;
|
|
||||||
+ if (0 == application_path[pos])
|
|
||||||
+ break;
|
|
||||||
+ }
|
|
||||||
+ if (period > 0) {
|
|
||||||
+ application_path[period] = 0;
|
|
||||||
+ }
|
|
||||||
+ application_name = backslash ? &application_path[backslash + 1] : application_path;
|
|
||||||
WideCharToMultiByte(CP_ACP, WC_SEPCHARS, application_name, -1, This->jack_client_name, ASIO_MAX_NAME_LENGTH, NULL, NULL);
|
|
||||||
|
|
||||||
RegCloseKey(hkey);
|
|
|
@ -1,30 +1,27 @@
|
||||||
# Template file for 'wineasio'
|
# Template file for 'wineasio'
|
||||||
pkgname=wineasio
|
pkgname=wineasio
|
||||||
version=0.9.2
|
version=1.1.0
|
||||||
revision=7
|
revision=1
|
||||||
archs="i686"
|
archs="x86_64* i686*"
|
||||||
repository="nonfree"
|
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
create_wrksrc=yes
|
make_build_target="${XBPS_TARGET_WORDSIZE}"
|
||||||
build_wrksrc=${pkgname}
|
hostmakedepends="pkg-config wine-tools"
|
||||||
homepage="https://sourceforge.net/projects/wineasio"
|
makedepends="wine wine-devel rtaudio-devel jack-devel"
|
||||||
hostmakedepends="unzip wine-tools"
|
|
||||||
makedepends="wine wine-devel jack-devel"
|
|
||||||
depends="jack"
|
depends="jack"
|
||||||
short_desc="JACK driver for WINE to provide Windows Apps with ASIO support"
|
short_desc="JACK driver for WINE to provide Windows Apps with ASIO support"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
license="LGPL-2.1, Steinberg"
|
license="LGPL-2.1-or-later"
|
||||||
distfiles="${SOURCEFORGE_SITE}/wineasio/${pkgname}-${version}.tar.gz
|
homepage="https://github.com/wineasio/wineasio"
|
||||||
https://www.steinberg.net/sdk_downloads/asiosdk2.3.zip"
|
distfiles="https://github.com/wineasio/wineasio/releases/download/v${version}/wineasio-${version}.tar.gz"
|
||||||
checksum="9fbc2d10a4cec307dc0558bed82b887c864424d16da40a80f1d80f907d92af0b
|
checksum="aa26ec986878d3fee1b99d0b31d0085379a78fcace20defbaf9627f007e2f2cc"
|
||||||
69225020e9144af568784c6076b55939a55369edaf0ffcdf4d5e5b5898f31b9b"
|
lib32mode=full
|
||||||
|
|
||||||
pre_configure() {
|
|
||||||
cp -v ../ASIOSDK2.3/common/asio.h asio.h
|
|
||||||
}
|
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
vinstall wineasio.dll.so 755 usr/lib/wine
|
local winearch
|
||||||
vinstall README 644 usr/share/wineasio
|
case $XBPS_TARGET_MACHINE in
|
||||||
vlicense "../ASIOSDK2.3/Steinberg ASIO Licensing Agreement.pdf"
|
x86_64*) winearch="x86_64" ;;
|
||||||
|
i686*) winearch="i386" ;;
|
||||||
|
esac
|
||||||
|
vinstall "build${XBPS_TARGET_WORDSIZE}"/wineasio.dll 755 usr/lib/wine/${winearch}-windows
|
||||||
|
vinstall "build${XBPS_TARGET_WORDSIZE}"/wineasio.dll.so 755 usr/lib/wine/${winearch}-unix
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue