pkgsrc/devel/pango/options.mk

38 lines
862 B
Makefile

# $NetBSD: options.mk,v 1.20 2021/03/22 07:03:57 adam Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.pango
PKG_SUPPORTED_OPTIONS= libthai x11
PKG_SUGGESTED_OPTIONS= x11
.include "../../mk/bsd.options.mk"
PLIST_VARS+= x11
###
### X11 support
###
.if !empty(PKG_OPTIONS:Mx11)
# fix for pangox.pc
PLIST.x11= yes
MESON_ARGS+= -Dxft=enabled
BUILDLINK_API_DEPENDS.Xft2+= Xft2>=2.1.7nb3
.include "../../x11/libXft/buildlink3.mk"
.include "../../x11/libXrender/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
BUILDLINK_DEPMETHOD.libXt?= build # only for configure
.include "../../x11/libXt/buildlink3.mk"
.else
MESON_ARGS+= -Dxft=disabled
.endif
###
### Thai language support
###
.if !empty(PKG_OPTIONS:Mlibthai)
MESON_ARGS+= -Dlibthai=enabled
.include "../../devel/libthai/buildlink3.mk"
.else
MESON_ARGS+= -Dlibthai=disabled
.endif
.include "../../mk/bsd.prefs.mk"