Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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:= harfbuzz
  5. PKG_VERSION:= 3.4.0
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 810bcd3d22fae3c2c18c3688455abc1cd0d7fb2fae25404890b0d77e6443bd0a
  8. PKG_DESCR:= opentype text shaping engine
  9. PKG_SECTION:= libs/fonts
  10. PKG_SITES:= https://github.com/harfbuzz/harfbuzz/archive/refs/tags/
  11. PKG_DEPENDS:= cairo icu4c
  12. PKG_BUILDDEP:= cairo icu4c
  13. HOST_BUILDDEP:= cairo-host icu4c-host
  14. PKG_NEEDS:= c++
  15. PKG_OPTS:= dev
  16. DISTFILES:= ${PKG_VERSION}.tar.gz
  17. include $(ADK_TOPDIR)/mk/host.mk
  18. include $(ADK_TOPDIR)/mk/package.mk
  19. $(eval $(call HOST_template,HARFBUZZ,harfbuzz,$(PKG_VERSION)-${PKG_RELEASE}))
  20. $(eval $(call PKG_template,HARFBUZZ,harfbuzz,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  21. WRKBUILD= $(WRKDIR)/$(PKG_NAME)-obj
  22. HOST_STYLE:= meson
  23. CONFIG_STYLE:= meson
  24. BUILD_STYLE:= meson
  25. INSTALL_STYLE:= meson
  26. MESON_FLAGS+= -Dfreetype=disabled \
  27. -Dtests=disabled
  28. host-postinstall:
  29. $(CP) $(WRKBUILD)/meson-private/harfbuzz.pc \
  30. $(STAGING_HOST_DIR)/usr/lib/pkgconfig/
  31. harfbuzz-install:
  32. $(INSTALL_DIR) $(IDIR_HARFBUZZ)/usr/lib
  33. $(CP) $(WRKINST)/usr/lib/libharfbuzz*.so* \
  34. $(IDIR_HARFBUZZ)/usr/lib
  35. include ${ADK_TOPDIR}/mk/host-bottom.mk
  36. include ${ADK_TOPDIR}/mk/pkg-bottom.mk