summaryrefslogtreecommitdiff
path: root/wm/notion/Makefile
blob: c9bb55f8a97658bf4de3df468bdab81cacce6fcc (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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# $NetBSD: Makefile,v 1.21 2015/06/14 21:02:46 wiz Exp $

DISTNAME=	notion-3-2015061300
PKGNAME=	${DISTNAME:S/3-/3./}
CATEGORIES=	wm
MASTER_SITES=	${MASTER_SITE_GITHUB:=raboof/}
GITHUB_TAG=	${DISTNAME:S/notion-//}

MAINTAINER=	wiz@NetBSD.org
HOMEPAGE=	http://notion.sourceforge.net/
COMMENT=	Tiling window manager based on ion3
LICENSE=	ion-license AND gnu-lgpl-v2.1

# notion is based on ion3
CONFLICTS=	ion3-[0-9]*

WRKSRC=		${WRKDIR}/${DISTNAME:S/-src//}
USE_LANGUAGES=	c99
USE_TOOLS+=	gmake msgfmt pax pkg-config

LUA_VERSIONS_INCOMPATIBLE=	53

MAKE_FLAGS+=	PREFIX=${PREFIX}
MAKE_FLAGS+=	EXAMPLEDIR=${PREFIX}/share/examples/notion
MAKE_FLAGS+=	MANDIR=${PREFIX}/${PKGMANDIR}
MAKE_FLAGS+=	X11_PREFIX=${BUILDLINK_PREFIX.libX11}
MAKE_FLAGS+=	X11_LIBS="${COMPILER_RPATH_FLAG}${X11_PREFIX}/lib -L$(X11_PREFIX)/lib -lX11 -lXext"
MAKE_FLAGS+=	LUA_INTERPRETER=${LUA_INTERPRETER}
MAKE_FLAGS+=	LUA_COMPILER=${LUA_COMPILER}
MAKE_FLAGS+=	LUA_VERSION=${_LUA_DOT_VERSION}

EGDIR=		${PREFIX}/share/examples/notion
EGFILES=	cfg_defaults.lua
EGFILES+=	cfg_dock.lua
EGFILES+=	cfg_kludges.lua
EGFILES+=	cfg_layouts.lua
EGFILES+=	cfg_menu.lua
EGFILES+=	cfg_notion.lua
EGFILES+=	cfg_notioncore.lua
EGFILES+=	cfg_query.lua
EGFILES+=	cfg_sp.lua
EGFILES+=	cfg_statusbar.lua
EGFILES+=	cfg_tiling.lua
EGFILES+=	cfg_xrandr.lua
EGFILES+=	look.lua
EGFILES+=	look_brownsteel.lua
EGFILES+=	look_clean.lua
EGFILES+=	look_cleanios.lua
EGFILES+=	look_cleanviolet.lua
EGFILES+=	look_dusky.lua
EGFILES+=	look_greenlight.lua
EGFILES+=	look_greyviolet.lua
EGFILES+=	look_ios.lua
EGFILES+=	look_newviolet.lua
EGFILES+=	look_simpleblue.lua
EGFILES+=	lookcommon_clean.lua
EGFILES+=	lookcommon_emboss.lua

PKG_SYSCONFSUBDIR=	notion
INSTALLATION_DIRS=	${EGDIR}

.for f in ${EGFILES}
CONF_FILES+=	${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f}
.endfor

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} == "SunOS"
# Abuse buildlink to add required libraries.
BUILDLINK_TRANSFORM+=	opt:-Wl,--as-needed:-lsocket
BUILDLINK_TRANSFORM+=	rm:-Wl,-whole-archive
BUILDLINK_TRANSFORM+=	rm:-Wl,-no-whole-archive
.endif

post-install:
	cd ${WRKSRC} && pax -rw contrib ${DESTDIR}${EGDIR}

.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../lang/lua/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libSM/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXinerama/buildlink3.mk"
.include "../../x11/libXrandr/buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"