diff options
author | dbj <dbj@pkgsrc.org> | 2018-06-04 05:31:02 +0000 |
---|---|---|
committer | dbj <dbj@pkgsrc.org> | 2018-06-04 05:31:02 +0000 |
commit | d0b91d2165395e5259c1fc7cbca7e24d41a4e1f8 (patch) | |
tree | 0e66303d1989e9eaaf9cd5698541be4c007d820a /net | |
parent | f9de1b9af077166669bb0215c5c9528f5bd3fa7b (diff) | |
download | pkgsrc-d0b91d2165395e5259c1fc7cbca7e24d41a4e1f8.tar.gz |
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 (limited to 'net')
-rw-r--r-- | net/glib-networking/hacks.mk | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/net/glib-networking/hacks.mk b/net/glib-networking/hacks.mk new file mode 100644 index 00000000000..55e000a408b --- /dev/null +++ b/net/glib-networking/hacks.mk @@ -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 |