pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/print/evince3 evince3: Use hacks.mk to avoid NetBSD ms...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/70936225ed06
branches:  trunk
changeset: 375316:70936225ed06
user:      nia <nia%pkgsrc.org@localhost>
date:      Sat Mar 12 07:19:24 2022 +0000

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

diffstat:

 print/evince3/Makefile.common |   5 +----
 print/evince3/hacks.mk        |  13 +++++++++++++
 2 files changed, 14 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 111fae40a22b -r 70936225ed06 print/evince3/Makefile.common
--- a/print/evince3/Makefile.common     Sat Mar 12 07:17:19 2022 +0000
+++ b/print/evince3/Makefile.common     Sat Mar 12 07:19:24 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.23 2021/05/02 11:06:14 nia Exp $
+# $NetBSD: Makefile.common,v 1.24 2022/03/12 07:19:24 nia Exp $
 #
 # used by print/evince3/Makefile
 # would probably be used by print/evince3-nautilus/Makefile if that existed
@@ -23,9 +23,6 @@
 USE_TOOLS+=            gdbus-codegen
 USE_LANGUAGES=         c c++
 
-# Requires --desktop in msgfmt.
-_TOOLS_USE_PKGSRC.msgfmt=      yes
-
 CONFIGURE_ARGS+=       --disable-browser-plugin
 CONFIGURE_ARGS+=       --without-gspell
 # Disable thumbnail cache
diff -r 111fae40a22b -r 70936225ed06 print/evince3/hacks.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/print/evince3/hacks.mk    Sat Mar 12 07:19:24 2022 +0000
@@ -0,0 +1,13 @@
+# $NetBSD: hacks.mk,v 1.1 2022/03/12 07:19:24 nia Exp $
+
+.if !defined(EVINCE_HACKS_MK)
+EVINCE_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 # EVINCE_HACKS_MK



Home | Main Index | Thread Index | Old Index