pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/gnome-dictionary textproc: Use hacks.mk to av...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/85eadb2ff80f
branches:  trunk
changeset: 375322:85eadb2ff80f
user:      nia <nia%pkgsrc.org@localhost>
date:      Sat Mar 12 07:40:48 2022 +0000

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

diffstat:

 textproc/gnome-dictionary/Makefile |   5 +----
 textproc/gnome-dictionary/hacks.mk |  13 +++++++++++++
 2 files changed, 14 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r bae139719c1c -r 85eadb2ff80f textproc/gnome-dictionary/Makefile
--- a/textproc/gnome-dictionary/Makefile        Sat Mar 12 07:37:42 2022 +0000
+++ b/textproc/gnome-dictionary/Makefile        Sat Mar 12 07:40:48 2022 +0000
@@ -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 @@
 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
 
diff -r bae139719c1c -r 85eadb2ff80f textproc/gnome-dictionary/hacks.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/gnome-dictionary/hacks.mk        Sat Mar 12 07:40:48 2022 +0000
@@ -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



Home | Main Index | Thread Index | Old Index