summaryrefslogtreecommitdiff
path: root/wm/awesome/Makefile
blob: 96337b27a019ff566add6624a5bcd135c84c21fb (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# $NetBSD: Makefile,v 1.67 2019/07/17 22:08:58 nia Exp $

DISTNAME=	awesome-4.3
CATEGORIES=	wm
EXTRACT_SUFX=	.tar.xz
MASTER_SITES=	${MASTER_SITE_GITHUB:=awesomeWM/}
GITHUB_RELEASE=	v${PKGVERSION_NOREV}

MAINTAINER=	pallegra@gmail.com
HOMEPAGE=	https://awesomewm.org/
COMMENT=	Tiling window manager based on dwm
LICENSE=	gnu-gpl-v2

CONFLICTS+=	awesome<3.0

USE_TOOLS+=	bash pkg-config
USE_CMAKE=	yes
USE_LANGUAGES=	c c++
REPLACE_BASH+=	utils/awesome-client

.include "../../wm/awesome/options.mk"

PKG_SYSCONFSUBDIR=	xdg/awesome

CONFIGURE_DIRS=	build
CMAKE_ARG_PATH=	${WRKSRC}

.include "../../lang/lua/luaversion.mk"

CMAKE_ARGS+=	-DCOMPRESS_MANPAGES=${MANZ:Q}
CMAKE_ARGS+=	-DAWESOME_MAN_PATH=${PREFIX}/${PKGMANDIR}
CMAKE_ARGS+=	-DOVERRIDE_VERSION=${PKGVERSION_NOREV}
CMAKE_ARGS+=	-DLUA_INCLUDE_DIR=${PREFIX}/${LUA_INCDIR}
CMAKE_ARGS+=	-DXDG_CONFIG_DIR=${PKG_SYSCONFBASEDIR}/xdg

EGDIR=		${PREFIX}/share/examples/awesome
CONF_FILES=	${EGDIR}/rc.lua ${PKG_SYSCONFDIR}/rc.lua

TOOL_DEPENDS+=	ImageMagick-[0-9]*:../../graphics/ImageMagick
DEPENDS+=	${LUA_PKGPREFIX}-gi>=0.7.0:../../devel/lua-gi

SUBST_CLASSES+=		lua
SUBST_STAGE.lua=	pre-configure
SUBST_MESSAGE.lua=	Fixing lua executable name.
SUBST_FILES.lua+=	awesomeConfig.cmake
SUBST_SED.lua=		-e 's|COMMAND lua|COMMAND ${LUA_INTERPRETER}|g'

pre-configure:
	${RUN} mkdir -p ${WRKSRC}/build

.include "../../devel/glib2/buildlink3.mk"
.include "../../devel/pango/buildlink3.mk"
.include "../../graphics/cairo/buildlink3.mk"
.include "../../graphics/cairo-gobject/buildlink3.mk"
.include "../../graphics/gdk-pixbuf2/buildlink3.mk"
.include "../../lang/lua/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libxcb/buildlink3.mk"
.include "../../x11/libxdg-basedir/buildlink3.mk"
.include "../../x11/libxkbcommon/buildlink3.mk"
.include "../../x11/xcb-util/buildlink3.mk"
.include "../../x11/xcb-util-cursor/buildlink3.mk"
.include "../../x11/xcb-util-keysyms/buildlink3.mk"
.include "../../x11/xcb-util-wm/buildlink3.mk"
.include "../../x11/xcb-util-xrm/buildlink3.mk"
.include "../../x11/xorgproto/buildlink3.mk"
.include "../../x11/startup-notification/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"