CMakeLists.txt 1.09 KB
Newer Older
1
SET(PREFIX_ext_gettext "${EXTPREFIX}" )
2
if (MSVC OR MINGW)
Dmitry Kazakov's avatar
Dmitry Kazakov committed
3
ExternalProject_Add(
4 5 6 7
    ext_gettext
    DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR}
    URL http://files.kde.org/krita/build/dependencies/gettext-0.18.tar.gz
    URL_MD5 d52a3e061032a1ed13856d42fc86f0fd
8

9 10 11
    PATCH_COMMAND ${PATCH_COMMAND} --binary -p1 -i ${CMAKE_CURRENT_SOURCE_DIR}/gettext-0.18-20130319.diff
    INSTALL_DIR ${PREFIX_ext_gettext}
    CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${PREFIX_ext_gettext} -DCMAKE_BUILD_TYPE=${GLOBAL_BUILD_TYPE} ${GLOBAL_PROFILE}
Dmitry Kazakov's avatar
Dmitry Kazakov committed
12

13 14 15
    UPDATE_COMMAND ""
    ALWAYS 0
    DEPENDS ext_patch ext_iconv
Dmitry Kazakov's avatar
Dmitry Kazakov committed
16
)
17
else (MSVC OR MINGW)
Dmitry Kazakov's avatar
Dmitry Kazakov committed
18 19 20 21
ExternalProject_Add( ext_gettext
	DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR}
    URL http://files.kde.org/krita/build/dependencies/gettext-0.19.8.tar.gz
    URL_MD5 e4fffc004f21596becd1055cf36be31d
22
	
Dmitry Kazakov's avatar
Dmitry Kazakov committed
23 24
	INSTALL_DIR ${PREFIX_ext_gettext}
	CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=${PREFIX_ext_gettext} --disable-java   ${GLOBAL_AUTOMAKE_PROFILE} --disable-native-java 
25 26 27
        BUILD_COMMAND make
        INSTALL_COMMAND make install

Dmitry Kazakov's avatar
Dmitry Kazakov committed
28 29 30 31
	UPDATE_COMMAND ""
	ALWAYS 0
	DEPENDS ext_iconv
)
32
endif (MSVC OR MINGW)