textproc: Use hacks.mk to avoid NetBSD msgfmt on NetBSD only

This commit is contained in:
nia 2022-03-12 07:40:48 +00:00
parent 03fc9eea7f
commit cea08d318a
2 changed files with 14 additions and 4 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.6 2021/12/08 16:06:44 adam Exp $
# $NetBSD: Makefile,v 1.7 2022/03/12 07:40:48 nia Exp $
DISTNAME= gnome-dictionary-3.26.1
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/${PKGBASE}/${PKGVERSION_NOREV:R}/}
@ -11,9 +11,6 @@ HOMEPAGE= https://wiki.gnome.org/Apps/Dictionary
COMMENT= GNOME application to look up definitions
LICENSE= gnu-gpl-v2
# XXX msgfmt: unknown option -- desktop
_TOOLS_USE_PKGSRC.msgfmt= yes
TOOL_DEPENDS+= docbook-xsl-[0-9]*:../../textproc/docbook-xsl
TOOL_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt

View file

@ -0,0 +1,13 @@
# $NetBSD: hacks.mk,v 1.1 2022/03/12 07:40:48 nia Exp $
.if !defined(GNOME_DICTIONARY_HACKS_MK)
GNOME_DICTIONARY_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 # GNOME_DICTIONARY_HACKS_MK