libmpdclient: fix install
PATCH v2 1/1 libmpdclient: fix install
meson adds the build machine architecture for installation, see:
https://github.com/mesonbuild/meson/issues/2535
Until this is fixed, fix libmpdclient.pc and copy the libraries and libmpclient.pc to the correct place.
Fixes:
- http://autobuild.buildroot.net/results/aec/aec9f3de545a832b66cd00c217fbaa99246e1715
- http://autobuild.buildroot.net/results/07a/07adcba71106a2dca963e4071f4673791b41a603
- http://autobuild.buildroot.net/results/a27/a272a8e521863374901a5e3c0fb9da0b8daa4076
Signed-off-by Fabrice Fontaine <[email protected]>
---
Changes v1 -> v2:
- Add autobuilder links
package/libmpdclient/libmpdclient.mk | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+)
package/libmpdclient/libmpdclient.mk +25 -0
@@ -35,9 +35,34 @@ define LIBMPDCLIENT_INSTALL_TARGET_CMDS ninja $(LIBMPDCLIENT_NINJA_OPTS) -C $(@D)/build install endef +# meson adds the build machine architecture for installation, see: +# https://github.com/mesonbuild/meson/issues/2535 +# Until this is fixed, copy the libraries to the correct place +define LIBMPDCLIENT_FIX_LIBRARY_INSTALL_TARGET + cp -a $(@D)/build/libmpdclient.* $(TARGET_DIR)/usr/lib +endef + +LIBMPDCLIENT_POST_INSTALL_TARGET_HOOKS += \ + LIBMPDCLIENT_FIX_LIBRARY_INSTALL_TARGET + define LIBMPDCLIENT_INSTALL_STAGING_CMDS $(TARGET_MAKE_ENV) DESTDIR=$(STAGING_DIR) \ ninja $(LIBMPDCLIENT_NINJA_OPTS) -C $(@D)/build install endef +# meson adds the build machine architecture for installation, see: +# https://github.com/mesonbuild/meson/issues/2535 +# Until this is fixed, fix libmpdclient.pc and copy the libraries and +# libmpclient.pc to the correct place +define LIBMPDCLIENT_FIX_LIBRARY_INSTALL_STAGING + $(INSTALL) -D -m 644 $(@D)/build/meson-private/libmpdclient.pc \ + $(STAGING_DIR)/usr/lib/pkgconfig/libmpdclient.pc + $(SED) 's,^libdir=.*,libdir=$${prefix}/lib,' \ + $(STAGING_DIR)/usr/lib/pkgconfig/libmpdclient.pc + cp -a $(@D)/build/libmpdclient.* $(STAGING_DIR)/usr/lib +endef + +LIBMPDCLIENT_POST_INSTALL_STAGING_HOOKS += \ + LIBMPDCLIENT_FIX_LIBRARY_INSTALL_STAGING + $(eval $(generic-package))
Signature · 1 line
2.14.1