Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

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

9
    PATCH_COMMAND ${PATCH_COMMAND} --binary -p1 -i ${CMAKE_CURRENT_SOURCE_DIR}/gettext-0.18-20130319.diff
10 11 12 13 14 15 16
    INSTALL_DIR ${PREFIX_ext_gettext}
    CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${PREFIX_ext_gettext} -DCMAKE_BUILD_TYPE=${GLOBAL_BUILD_TYPE} ${GLOBAL_PROFILE}

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

	UPDATE_COMMAND ""
	ALWAYS 0
	DEPENDS ext_iconv
)
32
endif (MSVC OR MINGW)