diff options
author | nia <nia@pkgsrc.org> | 2022-03-12 07:11:13 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2022-03-12 07:11:13 +0000 |
commit | 7fc7d9f481b5dc872c7adf5a3f2e2a219ccd94ac (patch) | |
tree | c033193ccb690f38cde6eafb05c08afba52322a5 /inputmethod/ibus-libpinyin | |
parent | 132bfba431740bb6d5e857d52656cf43031edd1b (diff) | |
download | pkgsrc-7fc7d9f481b5dc872c7adf5a3f2e2a219ccd94ac.tar.gz |
inputmethod: Use hacks.mk to avoid NetBSD msgfmt on NetBSD only.
Diffstat (limited to 'inputmethod/ibus-libpinyin')
-rw-r--r-- | inputmethod/ibus-libpinyin/Makefile | 7 | ||||
-rw-r--r-- | inputmethod/ibus-libpinyin/hacks.mk | 13 |
2 files changed, 14 insertions, 6 deletions
diff --git a/inputmethod/ibus-libpinyin/Makefile b/inputmethod/ibus-libpinyin/Makefile index b858b82b68c..04a8bb193cf 100644 --- a/inputmethod/ibus-libpinyin/Makefile +++ b/inputmethod/ibus-libpinyin/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.25 2021/12/08 16:05:14 adam Exp $ +# $NetBSD: Makefile,v 1.26 2022/03/12 07:11:14 nia Exp $ DISTNAME= ibus-libpinyin-1.12.0 PKGREVISION= 2 @@ -28,11 +28,6 @@ PLIST_SUBST+= PYVERSION_DIGIT=${PYVERSION_DIGIT} . include "../../devel/libuuid/buildlink3.mk" .endif -# msgfmt: unknown option -- desktop -.if ${OPSYS} == "NetBSD" -TOOLS_PLATFORM.msgfmt= -.endif - .if (!empty(PKGSRC_COMPILER:Mgcc) && !empty(CC_VERSION:Mgcc-4.[4-9]*)) || !empty(PKGSRC_COMPILER:Mclang) CONFIGURE_ARGS+= --disable-boost .else diff --git a/inputmethod/ibus-libpinyin/hacks.mk b/inputmethod/ibus-libpinyin/hacks.mk new file mode 100644 index 00000000000..cfaad028fb7 --- /dev/null +++ b/inputmethod/ibus-libpinyin/hacks.mk @@ -0,0 +1,13 @@ +# $NetBSD: hacks.mk,v 1.1 2022/03/12 07:11:14 nia Exp $ + +.if !defined(IBUS_LIBPINYIN_HACKS_MK) +IBUS_LIBPINYIN_HACKS_MK:= + +.include "../../mk/bsd.fast.prefs.mk" + +.if ${OPSYS} == "NetBSD" +# Old GPLv2 version of msgfmt in NetBSD does not support --desktop/--xml. +TOOLS_PLATFORM.msgfmt= # none +PKG_HACKS+= avoid-gplv2-msgfmt +.endif +.endif # IBUS_LIBPINYIN_HACKS_MK |