-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathvips-8.0.x.patch
49 lines (44 loc) · 1.57 KB
/
vips-8.0.x.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
47
48
49
localization patch
introspection workaround
--- libvips/include/vips/vips.h Wed Apr 29 17:18:28 2015
+++ libvips/include/vips/vips.h Mon Aug 17 21:30:50 2015
@@ -103,6 +103,7 @@
# endif
#endif /*__GNUC__*/
+#if !defined(__GI_SCANNER__)
#include <vips/basic.h>
#include <vips/buf.h>
@@ -145,6 +146,7 @@
#include <vips/create.h>
#include <vips/video.h>
#include <vips/cimg_funcs.h>
+#endif
/* This stuff is very, very old and should not be used by anyone now.
*/
--- libvips/iofuncs/init.c Fri May 01 22:27:36 2015
+++ libvips/iofuncs/init.c Wed Jul 01 07:37:56 2015
@@ -312,7 +312,15 @@
vips_snprintf( name, 256,
"%s" G_DIR_SEPARATOR_S "share" G_DIR_SEPARATOR_S "locale",
prefix );
+#ifdef G_OS_WIN32
+ /* vips_guess* might not reliable and no libdir usage at the moment */
+ extern gchar *_glib_get_locale_dir (void);
+ gchar *localedir = _glib_get_locale_dir ();
+ bindtextdomain (GETTEXT_PACKAGE, localedir);
+ g_free (localedir);
+#else
bindtextdomain( GETTEXT_PACKAGE, name );
+#endif
bind_textdomain_codeset( GETTEXT_PACKAGE, "UTF-8" );
/* Default info setting from env.
--- libvips/Makefile.in Tue May 05 19:36:38 2015
+++ libvips/Makefile.in Mon Aug 17 21:32:33 2015
@@ -605,7 +605,6 @@
# we have an unusual markup with optional args and we don't want to see all
# those warnings
@HAVE_INTROSPECTION_TRUE@Vips_8_0_gir_SCANNERFLAGS = \
-@HAVE_INTROSPECTION_TRUE@ --program=./introspect \
@HAVE_INTROSPECTION_TRUE@ --identifier-prefix=Vips \
@HAVE_INTROSPECTION_TRUE@ --identifier-prefix=vips \
@HAVE_INTROSPECTION_TRUE@ --symbol-prefix=vips