pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/glib-networking net/glib-networking: add a hack fo...
details: https://anonhg.NetBSD.org/pkgsrc/rev/1bfdeabb50de
branches: trunk
changeset: 381315:1bfdeabb50de
user: dbj <dbj%pkgsrc.org@localhost>
date: Mon Jun 04 05:31:02 2018 +0000
description:
net/glib-networking: add a hack for Darwin to install modules with .so suffix
This works around an assumption by the py-meson build system
that loadable modules should have a .dylib suffix on Darwin.
glib2 expects those modules to have a .so suffix.
diffstat:
net/glib-networking/hacks.mk | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diffs (18 lines):
diff -r 9718bbac90ea -r 1bfdeabb50de net/glib-networking/hacks.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/glib-networking/hacks.mk Mon Jun 04 05:31:02 2018 +0000
@@ -0,0 +1,14 @@
+# $NetBSD: hacks.mk,v 1.1 2018/06/04 05:31:02 dbj Exp $
+
+# devel/glib2 expects modules to end in .so on darwin
+# net/glib-networking uses py-meson to build
+# py-meson's build.py SharedModule class inherits from SharedLibrary and assumes .dylib suffix
+# (true as of py36-meson-0.44.1nb3)
+
+.if ${OPSYS} == "Darwin"
+post-install:
+ for l in libgiognomeproxy libgiognutls libgiolibproxy; do \
+ ${MV} "${DESTDIR}${PREFIX}/lib/gio/modules/$${l}.dylib" \
+ "${DESTDIR}${PREFIX}/lib/gio/modules/$${l}.so"; \
+ done
+.endif
Home |
Main Index |
Thread Index |
Old Index