summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2022-03-12 07:44:12 +0000
committernia <nia@pkgsrc.org>2022-03-12 07:44:12 +0000
commitbc485a3b00aa7967dd566db8d787b9a6892648e4 (patch)
tree6ab0184e2ef9a20bd63157e81d51965031cdb771
parent28aedc0451724f234c2d0d741c24f8516ba4211b (diff)
downloadpkgsrc-bc485a3b00aa7967dd566db8d787b9a6892648e4.tar.gz
www: Use hacks.mk to avoid NetBSD msgfmt on NetBSD only.
-rw-r--r--www/epiphany/Makefile5
-rw-r--r--www/epiphany/hacks.mk13
2 files changed, 14 insertions, 4 deletions
diff --git a/www/epiphany/Makefile b/www/epiphany/Makefile
index 2ec2301f7f7..975adea37a2 100644
--- a/www/epiphany/Makefile
+++ b/www/epiphany/Makefile
@@ -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 @@ LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/epiphany
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 --git a/www/epiphany/hacks.mk b/www/epiphany/hacks.mk
new file mode 100644
index 00000000000..64885ff87ba
--- /dev/null
+++ b/www/epiphany/hacks.mk
@@ -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