summary refs log tree commit diff stats
path: root/win32/deps
diff options
context:
space:
mode:
Diffstat (limited to 'win32/deps')
-rw-r--r--win32/deps/gettext-runtime/build-x64.bat28
-rw-r--r--win32/deps/gettext-runtime/build-x86.bat28
-rw-r--r--win32/deps/gettext-runtime/gettext-runtime.patch20
3 files changed, 76 insertions, 0 deletions
diff --git a/win32/deps/gettext-runtime/build-x64.bat b/win32/deps/gettext-runtime/build-x64.bat
new file mode 100644
index 00000000..c3a5a810
--- /dev/null
+++ b/win32/deps/gettext-runtime/build-x64.bat
@@ -0,0 +1,28 @@
+:: run this from a VS x64 command prompt

+@echo off

+

+SET PACKAGE_NAME=gettext-runtime-0.18

+

+set GETTEXT_SRC=%cd%

+set GETTEXT_DEST=%cd%-x64

+del CMakeCache.txt

+rmdir /q /s CMakeFiles

+cmake -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX=%GETTEXT_DEST% -DCMAKE_BUILD_TYPE=Release -DICONV_INCLUDE_DIR=%GETTEXT_SRC%\..\build\x64\include -DICONV_LIBRARIES=%GETTEXT_SRC%\..\build\x64\lib\iconv.lib

+nmake clean

+nmake

+echo.Press return when ready to install!

+pause

+

+nmake install

+nmake clean

+copy COPYING %GETTEXT_DEST%\LICENSE.GETTEXT

+

+cd %GETTEXT_DEST%

+set PATH=%PATH%;%ProgramFiles%\7-zip

+del ..\%PACKAGE_NAME%-x64.7z

+7z a ..\%PACKAGE_NAME%-x64.7z *

+cd %GETTEXT_SRC%

+rmdir /q /s %GETTEXT_DEST%

+

+echo.Finished!

+pause

diff --git a/win32/deps/gettext-runtime/build-x86.bat b/win32/deps/gettext-runtime/build-x86.bat
new file mode 100644
index 00000000..9c922223
--- /dev/null
+++ b/win32/deps/gettext-runtime/build-x86.bat
@@ -0,0 +1,28 @@
+:: run this from a VS x86 command prompt

+@echo off

+

+SET PACKAGE_NAME=gettext-runtime-0.18

+

+set GETTEXT_SRC=%cd%

+set GETTEXT_DEST=%cd%-x86

+del CMakeCache.txt

+rmdir /q /s CMakeFiles

+cmake -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX=%GETTEXT_DEST% -DCMAKE_BUILD_TYPE=Release -DICONV_INCLUDE_DIR=%GETTEXT_SRC%\..\build\Win32\include -DICONV_LIBRARIES=%GETTEXT_SRC%\..\build\Win32\lib\iconv.lib

+nmake clean

+nmake

+echo.Press return when ready to install!

+pause

+

+nmake install

+nmake clean

+copy COPYING %GETTEXT_DEST%\LICENSE.GETTEXT

+

+cd %GETTEXT_DEST%

+set PATH=%PATH%;%ProgramFiles%\7-zip

+del ..\%PACKAGE_NAME%-x86.7z

+7z a ..\%PACKAGE_NAME%-x86.7z *

+cd %GETTEXT_SRC%

+rmdir /q /s %GETTEXT_DEST%

+

+echo.Finished!

+pause

diff --git a/win32/deps/gettext-runtime/gettext-runtime.patch b/win32/deps/gettext-runtime/gettext-runtime.patch
new file mode 100644
index 00000000..c98434e2
--- /dev/null
+++ b/win32/deps/gettext-runtime/gettext-runtime.patch
@@ -0,0 +1,20 @@
+diff -ruN --strip-trailing-cr gettext-runtime-0.18.orig/gettext-runtime/intl/intl.def gettext-runtime-0.18/gettext-runtime/intl/intl.def
+--- gettext-runtime-0.18.orig/gettext-runtime/intl/intl.def	2012-09-28 21:56:54 +0200
++++ gettext-runtime-0.18/gettext-runtime/intl/intl.def	2012-09-28 21:56:44 +0200
+@@ -1,4 +1,3 @@
+-LIBRARY libintl.DLL
+ EXPORTS
+ ;_imp___ctype_ptr
+ _nl_expand_alias
+@@ -43,6 +42,11 @@
+ libintl_nl_default_default_domain
+ libintl_nl_default_dirname
+ libintl_nl_domain_bindings
++libintl_vfprintf
++libintl_vprintf
++libintl_vsprintf
++libintl_printf
++libintl_sprintf
+ ;libintl_relocate
+ ;libintl_set_relocation_prefix
+ libintl_setlocale