blob: 2a252f10019ddd1af05b34c9b57efc9e44251bfd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# $NetBSD: Makefile,v 1.12 2020/01/11 14:01:07 pho Exp $
DISTNAME= xmonad-0.15
PKGNAME= ${DISTNAME}
CATEGORIES= wm
MAINTAINER= esg@sdf.lonestar.org
COMMENT= Tiling window manager
LICENSE= modified-bsd
# don't need default binary (see MESSAGE)
# TODO: This should probably be reconsidered as the default executable
# is now capable of loading custom configuration files.
SUBST_CLASSES+= 1
SUBST_STAGE.1= pre-patch
SUBST_FILES.1= xmonad.cabal
SUBST_SED.1= -e "s|executable xmonad|executable xmonad+ buildable: False|"
SUBST_CLASSES+= 2
SUBST_STAGE.2= pre-configure
SUBST_FILES.2= xmonad.cabal
SUBST_FILTER_CMD.2= ${TR} '+' \\n
# Work around a Cabal bug. It ignores "ld-options" in
# {package}.buildinfo while linking shared libraries:
# https://github.com/haskell/cabal/issues/4925
HASKELL_ENABLE_SHARED_LIBRARY= no
INSTALLATION_DIRS+= ${PKGMANDIR}/man1
post-install:
${INSTALL_MAN} ${WRKSRC}/man/xmonad.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.include "../../mk/haskell.mk"
.include "../../devel/hs-data-default/buildlink3.mk"
.include "../../devel/hs-extensible-exceptions/buildlink3.mk"
.include "../../devel/hs-setlocale/buildlink3.mk"
.include "../../devel/hs-utf8-string/buildlink3.mk"
.include "../../x11/hs-X11/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|