pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/meson



Module Name:    pkgsrc
Committed By:   nia
Date:           Tue Apr 22 15:57:17 UTC 2025

Modified Files:
        pkgsrc/devel/meson: build.mk

Log Message:
meson: Add support for PKGLOCALEDIR.

All of the xfce4 packages include meta-pkgs/xfce4/Makefile.common.
xfce packages previously used autotools, which has support for a
configurable localedir. Makefile.common defined USE_PKGLOCALEDIR
to perform automatic PLIST translation where possible.

However, some of the xfce4 packages have been updated and now use
meson, which resulted in PLIST failures on SunOS due to USE_PKGLOCALEDIR.
By appending a custom locale directory when USE_PKGLOCALEDIR is
set to yes, we can allow these packages to work as they did before
without breaking compatibility with many existing meson packages that
do not define it.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 pkgsrc/devel/meson/build.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/meson/build.mk
diff -u pkgsrc/devel/meson/build.mk:1.31 pkgsrc/devel/meson/build.mk:1.32
--- pkgsrc/devel/meson/build.mk:1.31    Sat Jan 25 10:15:23 2025
+++ pkgsrc/devel/meson/build.mk Tue Apr 22 15:57:17 2025
@@ -1,4 +1,4 @@
-# $NetBSD: build.mk,v 1.31 2025/01/25 10:15:23 riastradh Exp $
+# $NetBSD: build.mk,v 1.32 2025/04/22 15:57:17 nia Exp $
 
 MESON_REQD?=   0
 .for version in ${MESON_REQD}
@@ -145,6 +145,10 @@ ${MESON_CROSS_FILE}:
 
 .endif                         # ${USE_CROSS_COMPILE:U:tl} == yes
 
+.if defined(USE_PKGLOCALEDIR) && ${USE_PKGLOCALEDIR:tl} != "no"
+MESON_ARGS+=   --localedir=${PKGLOCALEDIR}/locale
+.endif
+
 do-configure: meson-configure
 meson-configure:
 .for d in ${CONFIGURE_DIRS}



Home | Main Index | Thread Index | Old Index