parent
66af7c2d8a
commit
ba30046be6
2 changed files with 28 additions and 2 deletions
26
srcpkgs/lame/patches/translit.patch
Normal file
26
srcpkgs/lame/patches/translit.patch
Normal file
|
@ -0,0 +1,26 @@
|
|||
--- lame/frontend/parse.c 2023-04-20 18:12:43.988212890 +0200
|
||||
+++ - 2023-04-20 18:13:39.537622345 +0200
|
||||
@@ -232,7 +232,11 @@
|
||||
dst = calloc(n+4, 4);
|
||||
if (dst != 0) {
|
||||
char* cur_code = nl_langinfo(CODESET);
|
||||
+#ifdef __GLIBC__
|
||||
iconv_t xiconv = iconv_open("ISO_8859-1//TRANSLIT", cur_code);
|
||||
+#else
|
||||
+ iconv_t xiconv = iconv_open("ISO_8859-1", cur_code);
|
||||
+#endif
|
||||
if (xiconv != (iconv_t)-1) {
|
||||
char* i_ptr = (char*)src;
|
||||
char* o_ptr = dst;
|
||||
@@ -258,7 +262,11 @@
|
||||
dst = calloc(n+4, 4);
|
||||
if (dst != 0) {
|
||||
char* cur_code = nl_langinfo(CODESET);
|
||||
+#ifdef __GLIBC__
|
||||
iconv_t xiconv = iconv_open("UTF-16LE//TRANSLIT", cur_code);
|
||||
+#else
|
||||
+ iconv_t xiconv = iconv_open("UTF-16LE", cur_code);
|
||||
+#endif
|
||||
dst[0] = 0xff;
|
||||
dst[1] = 0xfe;
|
||||
if (xiconv != (iconv_t)-1) {
|
|
@ -1,14 +1,14 @@
|
|||
# Template file for 'lame'
|
||||
pkgname=lame
|
||||
version=3.100
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=gnu-configure
|
||||
configure_args="--enable-nasm --enable-shared"
|
||||
hostmakedepends="nasm"
|
||||
makedepends="ncurses-devel"
|
||||
short_desc="Fast, high quality MP3 encoder"
|
||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||
license="LGPL-2.1"
|
||||
license="LGPL-2.1-or-later"
|
||||
homepage="http://lame.sourceforge.net"
|
||||
distfiles="${SOURCEFORGE_SITE}/lame/lame-${version}.tar.gz"
|
||||
checksum=ddfe36cab873794038ae2c1210557ad34857a4b6bdc515785d1da9e175b1da1e
|
||||
|
|
Loading…
Add table
Reference in a new issue