Fix build when building in an environment with old version of fcitx

present.

PR:		ports/199112
Submitted by:	maintainer
This commit is contained in:
Xin LI 2015-04-03 20:56:52 +00:00
parent af68f1bf49
commit f78c79a4c7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=383178
2 changed files with 12 additions and 2 deletions

View file

@ -33,10 +33,9 @@ CONFLICTS= zh-scim-fcitx-3.*
USE_GNOME= pango intltool libxml2 introspection
USE_XORG= x11 xext xkbfile
USE_LDCONFIG= yes
USES= tar:xz cmake desktop-file-utils execinfo gettext iconv \
USES= tar:xz cmake desktop-file-utils execinfo gettext iconv:wchar_t \
pathfix pkgconfig shared-mime-info
INSTALLS_ICONS= yes
LDFLAGS+= -L${LOCALBASE}/lib ${ICONV_LIB}
OPTIONS_DEFINE= GTK2 GTK3 QT4 OPENCC TPUNC DOCS
OPTIONS_DEFAULT=GTK2 QT4

View file

@ -0,0 +1,11 @@
--- cmake/FindLibiconv.cmake.orig 2015-04-03 02:44:55.321687654 +0000
+++ cmake/FindLibiconv.cmake 2015-04-03 02:46:05.734216729 +0000
@@ -30,7 +30,7 @@ set(LIBICONV_LIB_FOUND FALSE)
if(LIBICONV_INCLUDE_DIR)
include(CheckFunctionExists)
- check_function_exists(iconv_open LIBICONV_LIBC_HAS_ICONV_OPEN)
+ set(LIBICONV_LIBC_HAS_ICONV_OPEN FALSE)
if (LIBICONV_LIBC_HAS_ICONV_OPEN)
set(LIBICONV_LIBRARIES)