Sat Mar 12 07:40:48 2022 UTC ()
textproc: Use hacks.mk to avoid NetBSD msgfmt on NetBSD only


(nia)
diff -r1.6 -r1.7 pkgsrc/textproc/gnome-dictionary/Makefile
diff -r0 -r1.1 pkgsrc/textproc/gnome-dictionary/hacks.mk

cvs diff -r1.6 -r1.7 pkgsrc/textproc/gnome-dictionary/Makefile (expand / switch to unified diff)

--- pkgsrc/textproc/gnome-dictionary/Makefile 2021/12/08 16:06:44 1.6
+++ pkgsrc/textproc/gnome-dictionary/Makefile 2022/03/12 07:40:48 1.7
@@ -1,29 +1,26 @@ @@ -1,29 +1,26 @@
1# $NetBSD: Makefile,v 1.6 2021/12/08 16:06:44 adam Exp $ 1# $NetBSD: Makefile,v 1.7 2022/03/12 07:40:48 nia Exp $
2 2
3DISTNAME= gnome-dictionary-3.26.1 3DISTNAME= gnome-dictionary-3.26.1
4MASTER_SITES= ${MASTER_SITE_GNOME:=sources/${PKGBASE}/${PKGVERSION_NOREV:R}/} 4MASTER_SITES= ${MASTER_SITE_GNOME:=sources/${PKGBASE}/${PKGVERSION_NOREV:R}/}
5PKGREVISION= 1 5PKGREVISION= 1
6CATEGORIES= textproc gnome 6CATEGORIES= textproc gnome
7EXTRACT_SUFX= .tar.xz 7EXTRACT_SUFX= .tar.xz
8 8
9MAINTAINER= pkgsrc-users@NetBSD.org 9MAINTAINER= pkgsrc-users@NetBSD.org
10HOMEPAGE= https://wiki.gnome.org/Apps/Dictionary 10HOMEPAGE= https://wiki.gnome.org/Apps/Dictionary
11COMMENT= GNOME application to look up definitions 11COMMENT= GNOME application to look up definitions
12LICENSE= gnu-gpl-v2 12LICENSE= gnu-gpl-v2
13 13
14# XXX msgfmt: unknown option -- desktop 
15_TOOLS_USE_PKGSRC.msgfmt= yes 
16 
17TOOL_DEPENDS+= docbook-xsl-[0-9]*:../../textproc/docbook-xsl 14TOOL_DEPENDS+= docbook-xsl-[0-9]*:../../textproc/docbook-xsl
18TOOL_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt 15TOOL_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt
19 16
20USE_TOOLS+= pkg-config msgfmt xgettext itstool 17USE_TOOLS+= pkg-config msgfmt xgettext itstool
21 18
22PYTHON_FOR_BUILD_ONLY= tool 19PYTHON_FOR_BUILD_ONLY= tool
23 20
24LDFLAGS.SunOS+= -lnsl 21LDFLAGS.SunOS+= -lnsl
25 22
26.include "../../devel/meson/build.mk" 23.include "../../devel/meson/build.mk"
27.include "../../devel/glib2/schemas.mk" 24.include "../../devel/glib2/schemas.mk"
28.include "../../sysutils/desktop-file-utils/desktopdb.mk" 25.include "../../sysutils/desktop-file-utils/desktopdb.mk"
29.include "../../x11/gtk3/buildlink3.mk" 26.include "../../x11/gtk3/buildlink3.mk"

File Added: pkgsrc/textproc/gnome-dictionary/Attic/hacks.mk
# $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