Index: head/chinese/scim-fcitx/Makefile =================================================================== --- head/chinese/scim-fcitx/Makefile +++ head/chinese/scim-fcitx/Makefile @@ -18,7 +18,8 @@ BUILD_DEPENDS= ${RUN_DEPENDS} RUN_DEPENDS= scim:textproc/scim -USES= tar:bzip2 gmake libtool:keepla pkgconfig +USES= compiler:c++11-lang tar:bzip2 gmake libtool:keepla pkgconfig \ + localbase:ldflags GNU_CONFIGURE= yes INSTALL_TARGET= install-strip MAKE_JOBS_UNSAFE= yes @@ -27,8 +28,7 @@ CONFIGURE_ENV+= SCIM_DATADIR=${PREFIX}/share/scim \ SCIM_ICONDIR=${PREFIX}/share/scim/icons -CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib -lintl +LDFLAGS+= -lintl SUB_FILES= pkg-message Index: head/chinese/scim-fcitx/files/patch-src__sp.cpp =================================================================== --- head/chinese/scim-fcitx/files/patch-src__sp.cpp +++ head/chinese/scim-fcitx/files/patch-src__sp.cpp @@ -1,6 +1,11 @@ ---- src/sp.cpp.orig 2005-05-08 20:11:29.000000000 +0400 -+++ src/sp.cpp 2014-07-23 03:21:49.000000000 +0400 -@@ -11,6 +11,7 @@ +--- src/sp.cpp.orig 2005-05-08 16:11:29 UTC ++++ src/sp.cpp +@@ -7,10 +7,12 @@ + #include "scim_fcitx_imengine.h" + using namespace scim; + ++#include + #include #include #include #include Index: head/chinese/scim-fcitx/files/patch-src__tools.cpp =================================================================== --- head/chinese/scim-fcitx/files/patch-src__tools.cpp +++ head/chinese/scim-fcitx/files/patch-src__tools.cpp @@ -1,6 +1,6 @@ ---- src/tools.cpp.orig 2005-05-20 18:41:12.000000000 +0400 -+++ src/tools.cpp 2014-07-23 02:57:51.000000000 +0400 -@@ -14,6 +14,7 @@ +--- src/tools.cpp.orig 2005-05-20 14:41:12 UTC ++++ src/tools.cpp +@@ -14,6 +14,7 @@ using namespace scim; #include #include #include Index: head/chinese/scim-fcitx/files/patch-src_ime.h =================================================================== --- head/chinese/scim-fcitx/files/patch-src_ime.h +++ head/chinese/scim-fcitx/files/patch-src_ime.h @@ -0,0 +1,12 @@ +--- src/ime.h.orig 2019-04-09 08:16:46 UTC ++++ src/ime.h +@@ -2,6 +2,9 @@ + #define _IME_H + + #include "xim.h" ++#ifdef __FreeBSD__ ++#include ++#endif + + #include "scim_fcitx_imengine.h" + Index: head/chinese/scim-fcitx/files/patch-src_ime.cpp =================================================================== --- head/chinese/scim-fcitx/files/patch-src_ime.cpp +++ head/chinese/scim-fcitx/files/patch-src_ime.cpp @@ -0,0 +1,10 @@ +--- src/ime.cpp.orig 2019-04-09 08:15:56 UTC ++++ src/ime.cpp +@@ -2,6 +2,7 @@ + #define Uses_SCIM_ICONV + #define Uses_SCIM_CONFIG_BASE + #define Uses_SCIM_CONFIG_PATH ++#include + #include + + #include Index: head/chinese/scim-fcitx/files/patch-src_pyParser.h =================================================================== --- head/chinese/scim-fcitx/files/patch-src_pyParser.h +++ head/chinese/scim-fcitx/files/patch-src_pyParser.h @@ -0,0 +1,13 @@ +--- src/pyParser.h.orig 2019-04-09 08:24:03 UTC ++++ src/pyParser.h +@@ -11,6 +11,10 @@ + + #include "py.h" + ++#ifdef __FreeBSD__ ++#include ++#endif ++ + #define PY_SEPERATOR '\'' + #define PY_SEPERATOR_S "'" + Index: head/chinese/scim-fcitx/files/patch-src_scim__fcitx__imengine.cpp =================================================================== --- head/chinese/scim-fcitx/files/patch-src_scim__fcitx__imengine.cpp +++ head/chinese/scim-fcitx/files/patch-src_scim__fcitx__imengine.cpp @@ -0,0 +1,13 @@ +--- src/scim_fcitx_imengine.cpp.orig 2019-04-09 08:12:58 UTC ++++ src/scim_fcitx_imengine.cpp +@@ -35,6 +35,10 @@ + #define Uses_SCIM_CONFIG_BASE + #define Uses_SCIM_CONFIG_PATH + ++#ifdef __FreeBSD__ ++#include ++#endif ++#include + #include + #include "scim_fcitx_imengine.h" + #include "main.h"