summaryrefslogtreecommitdiff
path: root/wm/xmonad-contrib/options.mk
blob: 0d4dabba317d4186ab4784b2ec59989593188518 (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.2 2018/07/04 13:40:40 jperkin 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