Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= wayland
  5. PKG_VERSION:= 1.21.0
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 6dc64d7fc16837a693a51cfdb2e568db538bfdc9f457d4656285bb9594ef11ac
  8. PKG_DESCR:= wayland
  9. PKG_SECTION:= x11/libs
  10. PKG_BUILDDEP:= wayland-host meson-host
  11. HOST_BUILDDEP:= expat-host libxml2-host libffi-host
  12. PKG_SITES:= https://gitlab.freedesktop.org/wayland/wayland/-/releases/$(PKG_VERSION)/downloads/
  13. PKG_OPTS:= dev
  14. include $(ADK_TOPDIR)/mk/host.mk
  15. include $(ADK_TOPDIR)/mk/package.mk
  16. $(eval $(call HOST_template,WAYLAND,wayland,$(PKG_VERSION)-${PKG_RELEASE}))
  17. $(eval $(call PKG_template,WAYLAND,wayland,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION),$(PKG_OPTS)))
  18. HOST_MESON_FLAGS+= -Ddocumentation=false \
  19. -Dtests=false \
  20. -Dscanner=true
  21. MESON_FLAGS+= -Ddocumentation=false \
  22. -Dtests=false \
  23. -Dlibraries=true \
  24. -Dscanner=false
  25. WRKBUILD= $(WRKDIR)/$(PKG_NAME)-obj
  26. HOST_STYLE:= meson
  27. CONFIG_STYLE:= meson
  28. BUILD_STYLE:= meson
  29. INSTALL_STYLE:= meson
  30. hostpost-install:
  31. $(INSTALL_DIR) $(STAGING_HOST_DIR)/usr/bin
  32. $(INSTALL_BIN) $(WRKBUILD)/src/wayland-scanner \
  33. $(STAGING_HOST_DIR)/usr/bin
  34. $(INSTALL_DIR) $(STAGING_HOST_DIR)/usr/lib/pkgconfig
  35. $(CP) $(WRKBUILD)/meson-private/wayland-scanner.pc \
  36. $(STAGING_HOST_DIR)/usr/lib/pkgconfig
  37. wayland-install:
  38. $(INSTALL_DIR) $(IDIR_WAYLAND)/usr/lib
  39. $(CP) $(WRKINST)/usr/lib/libwayland*.so* \
  40. $(IDIR_WAYLAND)/usr/lib
  41. include ${ADK_TOPDIR}/mk/host-bottom.mk
  42. include $(ADK_TOPDIR)/mk/pkg-bottom.mk