summaryrefslogtreecommitdiff
path: root/inputmethod/ibus-table-chinese
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2012-02-18 05:34:23 +0000
committerobache <obache@pkgsrc.org>2012-02-18 05:34:23 +0000
commit0ca2255197c8b3bf38f1798f1929d9734d92d4da (patch)
treee69b38ab1d42bf96e266d92f7db9875e02f9f30f /inputmethod/ibus-table-chinese
parent5cf7bfce4e1ec802196b4ffa3b0a6441ae3f1015 (diff)
downloadpkgsrc-0ca2255197c8b3bf38f1798f1929d9734d92d4da.tar.gz
Bugs of iconv should be fixed in NetBSD-6 and later, not require GNU iconv.
Diffstat (limited to 'inputmethod/ibus-table-chinese')
-rw-r--r--inputmethod/ibus-table-chinese/Makefile13
1 files changed, 5 insertions, 8 deletions
diff --git a/inputmethod/ibus-table-chinese/Makefile b/inputmethod/ibus-table-chinese/Makefile
index 846abcdddb7..dadb697ba49 100644
--- a/inputmethod/ibus-table-chinese/Makefile
+++ b/inputmethod/ibus-table-chinese/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2011/12/04 13:28:00 obache Exp $
+# $NetBSD: Makefile,v 1.6 2012/02/18 05:34:23 obache Exp $
#
DISTNAME= ibus-table-chinese-1.3.5-Source-Standalone
@@ -19,19 +19,16 @@ USE_CMAKE= yes
USE_LANGUAGES= c c++
USE_TOOLS+= pkg-config
+.include "../../mk/bsd.prefs.mk"
+
# Illegal byte sequence in array30_ExtB.txt
-CHECK_BUILTIN.iconv:= yes
-.include "../../converters/libiconv/builtin.mk"
-CHECK_BUILTIN.iconv:= no
-.if ${ICONV_TYPE} != "gnu" || !exists(/usr/bin/iconv)
+. if !empty(MACHINE_PLATFORM:MNetBSD-[0-5].*-*)
BUILD_DEPENDS+= libiconv-[0-9]*:../../converters/libiconv
FIND_PREFIX:= ICONV_PREFIX=libiconv
.include "../../mk/find-prefix.mk"
-.else
-ICONV_PREFIX=/usr
-.endif
CMAKE_ARGS+= -DICONV_CMD:PATH=${ICONV_PREFIX}/bin/iconv
+.endif
.include "../../inputmethod/ibus-table/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"