include ../../Makefile.include DEPS =../../Makefile.include Makefile ../../download-files.include # lib name, version LIBNAME=libxkbcommon VERSION=1.5.0 SOURCE=$(LIBNAME)-$(VERSION) ARCHIVE=$(SOURCE).tar.xz SHA512=bbba6665f052c04c7450413cc5e2badd6bfd41326b0e4c60e3ec01d730cae695fd34ce2662b8a91ece7a76b974a0ea330f7462dd5d2db148b0d0da26264ced9c include ../../download-files.include # configuration settings MESON_BUILD_TYPE=release ifeq ($(DEBUG_BUILD), yes) MESON_BUILD_TYPE=debug endif # configuration settings CONFIGURE = $(NATIVEPREFIX)/bin/python3 $(NATIVEPREFIX)/bin/meson \ --buildtype=$(MESON_BUILD_TYPE) \ --prefix=$(PREFIX) \ -Ddefault_library=static \ -Denable-docs=false \ -Denable-x11=false \ -Denable-wayland=false \ -Denable-xkbregistry=false \ -Dxkb-config-root=/usr/share/X11/xkb ifeq ($(CROSS_COMPILING), yes) CONFIGURE += --cross-file $(PREFIX)/share/cross-file.meson endif LIBDYLIB=$(PLATFORM)/build/libxkbcommon.a all: .installed-$(PLATFORM) $(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM) cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE) cd $(PLATFORM); $(CONFIGURE) . build $(LIBDYLIB): $(PLATFORM) cd $(PLATFORM)/build; $(NATIVEPREFIX)/bin/ninja -v .installed-$(PLATFORM): $(LIBDYLIB) cd $(PLATFORM)/build; $(NATIVEPREFIX)/bin/ninja -v install touch $@ clean: $(MAKE) -C $(PLATFORM) clean rm -f .installed-$(PLATFORM) distclean: rm -rf $(PLATFORM) .installed-$(PLATFORM)