pkgsrc-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/pkgsrc/rev/65dcd329609a
branches:  trunk
changeset: 375274:65dcd329609a
user:      nia <nia%pkgsrc.org@localhost>
date:      Fri Mar 11 09:01:02 2022 +0000

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

diffstat:

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

diffs (36 lines):

diff -r e08158f09817 -r 65dcd329609a fonts/fontforge/Makefile
--- a/fonts/fontforge/Makefile  Fri Mar 11 08:59:27 2022 +0000
+++ b/fonts/fontforge/Makefile  Fri Mar 11 09:01:02 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.123 2021/12/08 16:04:23 adam Exp $
+# $NetBSD: Makefile,v 1.124 2022/03/11 09:01:02 nia Exp $
 
 DISTNAME=      fontforge-20201107
 PKGREVISION=   3
@@ -33,9 +33,6 @@
 pre-configure:
        ${MKDIR} ${WRKSRC}/build
 
-# XXX msgfmt: unknown option -- xml
-_TOOLS_USE_PKGSRC.msgfmt=      yes
-
 .include "../../lang/python/application.mk"
 .include "../../converters/libiconv/buildlink3.mk"
 .include "../../databases/shared-mime-info/mimedb.mk"
diff -r e08158f09817 -r 65dcd329609a fonts/fontforge/hacks.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/fonts/fontforge/hacks.mk  Fri Mar 11 09:01:02 2022 +0000
@@ -0,0 +1,13 @@
+# $NetBSD: hacks.mk,v 1.4 2022/03/11 09:01:02 nia Exp $
+
+.if !defined(FONTFORGE_HACKS_MK)
+FONTFORGE_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 # FONTFORGE_HACKS_MK



Home | Main Index | Thread Index | Old Index