summaryrefslogtreecommitdiff
path: root/wm/xmonad-contrib/options.mk
blob: fea4b340e7575cff019d20a54aaa778d36bce939 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# $NetBSD: options.mk,v 1.3 2019/11/04 21:50:16 rillig Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.xmonad-contrib
PKG_SUPPORTED_OPTIONS=	xft2
PKG_SUGGESTED_OPTIONS=	xft2

.include "../../mk/bsd.options.mk"

.if !empty(PKG_OPTIONS:Mxft2)
.include "../../x11/hs-X11-xft/buildlink3.mk"
.else
SUBST_CLASSES+=	1
SUBST_STAGE.1=	pre-patch
SUBST_FILES.1=	xmonad-contrib.cabal
SUBST_SED.1=	-e "s|render text|render text+  default: False|"

SUBST_CLASSES+=		2
SUBST_STAGE.2=		pre-configure
SUBST_FILES.2=		xmonad-contrib.cabal
SUBST_FILTER_CMD.2=	${TR} '+' \\n
.endif