Fix compilation problem with Fribidi.

PR:		ports/138470, ports/141007
Submitted by:	Dima Panov <fluffy@fluffy.khv.ru>, <hawei@free.fr>
This commit is contained in:
Pierre Beyssac 2009-12-08 14:11:20 +00:00
parent 8da2d7916a
commit bbaad6dfc3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=245412
2 changed files with 14 additions and 1 deletions

View File

@ -28,7 +28,7 @@ MAN1= dvdauthor.1 dvddirdel.1 dvdunauthor.1 mpeg2desc.1 spumux.1 spuunmux.1
.if exists(${LOCALBASE}/lib/libfreetype.so.9)
WITH_FREETYPE= yes
.endif
.if exists(${LOCALBASE}/lib/libfridibi.so.0)
.if exists(${LOCALBASE}/lib/libfridibi.so.3)
WITH_FRIBIDI= yes
.endif
.if exists(${LOCALBASE}/lib/libiconv.so)

View File

@ -0,0 +1,13 @@
--- src/subreader.c.orig 2006-06-01 06:04:50.000000000 +0200
+++ src/subreader.c 2009-12-08 14:59:15.649467455 +0100
@@ -1079,8 +1079,8 @@
int char_set_num;
fribidi_boolean log2vis;
if(flip_hebrew) { // Please fix the indentation someday
- fribidi_set_mirroring (FRIBIDI_TRUE);
- fribidi_set_reorder_nsm (FRIBIDI_FALSE);
+ fribidi_set_mirroring (1);
+ fribidi_set_reorder_nsm (0);
if( sub_utf8 == 0 ) {
char_set_num = fribidi_parse_charset (fribidi_charset?fribidi_charset:"ISO8859-8");