forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bidiv-1.5-fribidi.patch
46 lines (40 loc) · 1.14 KB
/
bidiv-1.5-fribidi.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
--- bidiv.c
+++ bidiv.c
@@ -172,7 +172,7 @@
}
#ifndef TRY_UTF8
in[len]='\0';
- fribidi_iso8859_8_to_unicode(in, unicode_in);
+ fribidi_charset_to_unicode(FRIBIDI_CHAR_SET_ISO8859_8, in, unicode_in);
#endif
/* output the line */
@@ -201,10 +201,10 @@
rtl_line=0;
if(out_utf8)
- fribidi_unicode_to_utf8(unicode_out, len,
+ fribidi_unicode_to_charset(FRIBIDI_CHAR_SET_UTF8, unicode_out, len,
out);
else
- fribidi_unicode_to_iso8859_8(unicode_out, len,
+ fribidi_unicode_to_charset(FRIBIDI_CHAR_SET_ISO8859_8, unicode_out, len,
out);
/* if rtl_line (i.e., base_dir is RL), and we didn't fill the
entire width, we need to pad with spaces. Maybe in the
--- Makefile
+++ Makefile
@@ -1,16 +1,14 @@
PREFIX=/usr/local
BIN_DIR=$(PREFIX)/bin
MAN_PATH=$(PREFIX)/man
-CC_OPT_FLAGS=-O2 -Wall
-
-CFLAGS= $(CC_OPT_FLAGS) $(DEFS) `fribidi-config --cflags`
-LDFLAGS=`fribidi-config --libs`
+CFLAGS+=`pkg-config fribidi --cflags` -Wall
+LIBS=`pkg-config fribidi --libs`
all: bidiv
bidiv: bidiv.o
- $(CC) -o bidiv bidiv.o $(LDFLAGS)
+ $(CC) $(LDFLAGS) -o bidiv bidiv.o $(LIBS)
clean:
rm -f bidiv.o *~