pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/epiphany www: Use hacks.mk to avoid NetBSD msgfmt ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7221f02c3764
branches:  trunk
changeset: 375324:7221f02c3764
user:      nia <nia%pkgsrc.org@localhost>
date:      Sat Mar 12 07:44:12 2022 +0000

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

diffstat:

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

diffs (36 lines):

diff -r 484def0c494d -r 7221f02c3764 www/epiphany/Makefile
--- a/www/epiphany/Makefile     Sat Mar 12 07:42:32 2022 +0000
+++ b/www/epiphany/Makefile     Sat Mar 12 07:44:12 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.207 2022/03/10 21:28:03 prlw1 Exp $
+# $NetBSD: Makefile,v 1.208 2022/03/12 07:44:12 nia Exp $
 
 DISTNAME=      epiphany-40.6
 CATEGORIES=    www gnome
@@ -20,9 +20,6 @@
 
 PYTHON_FOR_BUILD_ONLY= tool
 
-# XXX msgfmt: unknown option -- desktop
-_TOOLS_USE_PKGSRC.msgfmt=      yes
-
 .include "../../devel/meson/build.mk"
 .include "../../archivers/libarchive/buildlink3.mk"
 BUILDLINK_API_DEPENDS.glib2+=  glib2>=2.64.0
diff -r 484def0c494d -r 7221f02c3764 www/epiphany/hacks.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/epiphany/hacks.mk     Sat Mar 12 07:44:12 2022 +0000
@@ -0,0 +1,13 @@
+# $NetBSD: hacks.mk,v 1.1 2022/03/12 07:44:12 nia Exp $
+
+.if !defined(EPIPHANY_HACKS_MK)
+EPIPHANY_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 # EPIPHANY_HACKS_MK



Home | Main Index | Thread Index | Old Index