pkgsrc-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/pkgsrc/rev/111fae40a22b
branches:  trunk
changeset: 375315:111fae40a22b
user:      nia <nia%pkgsrc.org@localhost>
date:      Sat Mar 12 07:17:19 2022 +0000

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

diffstat:

 multimedia/gnome-video-effects/Makefile |   5 +----
 multimedia/gnome-video-effects/hacks.mk |  13 +++++++++++++
 multimedia/handbrake/Makefile           |   6 +-----
 multimedia/handbrake/hacks.mk           |  13 +++++++++++++
 multimedia/totem/Makefile               |   5 +----
 multimedia/totem/hacks.mk               |  13 +++++++++++++
 6 files changed, 42 insertions(+), 13 deletions(-)

diffs (109 lines):

diff -r 65a9b02df948 -r 111fae40a22b multimedia/gnome-video-effects/Makefile
--- a/multimedia/gnome-video-effects/Makefile   Sat Mar 12 07:14:17 2022 +0000
+++ b/multimedia/gnome-video-effects/Makefile   Sat Mar 12 07:17:19 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2020/08/17 20:19:38 leot Exp $
+# $NetBSD: Makefile,v 1.3 2022/03/12 07:17:19 nia Exp $
 
 DISTNAME=      gnome-video-effects-0.5.0
 PKGREVISION=   1
@@ -17,9 +17,6 @@
 
 PKGCONFIG_OVERRIDE+=   gnome-video-effects.pc.in
 
-# XXX msgfmt: unknown option -- desktop
-_TOOLS_USE_PKGSRC.msgfmt=      yes
-
 .include "../../devel/meson/build.mk"
 .include "../../multimedia/frei0r/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 65a9b02df948 -r 111fae40a22b multimedia/gnome-video-effects/hacks.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/gnome-video-effects/hacks.mk   Sat Mar 12 07:17:19 2022 +0000
@@ -0,0 +1,13 @@
+# $NetBSD: hacks.mk,v 1.1 2022/03/12 07:17:19 nia Exp $
+
+.if !defined(GNOME_VIDEO_EFFECTS_HACKS_MK)
+GNOME_VIDEO_EFFECTS_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_VIDEO_EFFECTS_HACKS_MK
diff -r 65a9b02df948 -r 111fae40a22b multimedia/handbrake/Makefile
--- a/multimedia/handbrake/Makefile     Sat Mar 12 07:14:17 2022 +0000
+++ b/multimedia/handbrake/Makefile     Sat Mar 12 07:17:19 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.72 2021/12/08 16:05:49 adam Exp $
+# $NetBSD: Makefile,v 1.73 2022/03/12 07:17:19 nia Exp $
 #
 
 DISTNAME=      HandBrake-1.3.3-source
@@ -51,10 +51,6 @@
 USE_LIBTOOL=   yes
 USE_LANGUAGES= c c++
 
-TOOL_DEPENDS+=                 gettext-tools-[0-9]*:../../devel/gettext-tools
-_TOOLS_USE_PKGSRC.msgfmt=      yes
-USE_BUILTIN.gettext=           no
-
 BUILDLINK_TRANSFORM.NetBSD+=   rm:-ldl
 
 CONFIGURE_ARGS+=       --prefix=${PREFIX}
diff -r 65a9b02df948 -r 111fae40a22b multimedia/handbrake/hacks.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/handbrake/hacks.mk     Sat Mar 12 07:17:19 2022 +0000
@@ -0,0 +1,13 @@
+# $NetBSD: hacks.mk,v 1.1 2022/03/12 07:17:19 nia Exp $
+
+.if !defined(HANDBRAKE_HACKS_MK)
+HANDBRAKE_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 # HANDBRAKE_HACKS_MK
diff -r 65a9b02df948 -r 111fae40a22b multimedia/totem/Makefile
--- a/multimedia/totem/Makefile Sat Mar 12 07:14:17 2022 +0000
+++ b/multimedia/totem/Makefile Sat Mar 12 07:17:19 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.120 2021/12/20 07:02:20 nia Exp $
+# $NetBSD: Makefile,v 1.121 2022/03/12 07:17:19 nia Exp $
 
 DISTNAME=      totem-3.34.1
 PKGREVISION=   13
@@ -24,9 +24,6 @@
 # https://gitlab.gnome.org/GNOME/json-glib/issues/35
 MAKE_ENV+=     LD_LIBRARY_PATH=${WRKSRC}/output/src
 
-# XXX msgfmt: unknown option -- desktop
-_TOOLS_USE_PKGSRC.msgfmt=      yes
-
 .include "../../devel/meson/build.mk"
 .include "../../devel/glib2/schemas.mk"
 .include "../../devel/libpeas/buildlink3.mk"
diff -r 65a9b02df948 -r 111fae40a22b multimedia/totem/hacks.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/totem/hacks.mk Sat Mar 12 07:17:19 2022 +0000
@@ -0,0 +1,13 @@
+# $NetBSD: hacks.mk,v 1.1 2022/03/12 07:17:19 nia Exp $
+
+.if !defined(TOTEM_HACKS_MK)
+TOTEM_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 # TOTEM_HACKS_MK



Home | Main Index | Thread Index | Old Index