summaryrefslogtreecommitdiff
path: root/sysutils/twmn/Makefile
blob: 81472bc6d35476a8f0416dad89a70d654e48e6db (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
# $FreeBSD$

PORTNAME=	twmn
PORTVERSION=	g20171216
PORTREVISION=	6
CATEGORIES=	sysutils

MAINTAINER=	dg@syrec.org
COMMENT=	Notification system for tiling window managers

LICENSE=	LGPL3
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libboost_system.so:devel/boost-libs

USES=		compiler:c++11-lang qmake qt:5
USE_GITHUB=	yes
GH_ACCOUNT=	sboli
GH_TAGNAME=	5b92ac5
USE_QT=		core dbus gui network widgets x11extras buildtools_build
LDFLAGS+=	-Wl,--as-needed  # see bug#224488

# Fix build with Qt 5.13
QMAKE_ARGS+=	DEFINES+=QT_NO_DEPRECATED_WARNINGS=Y

PORTDOCS=	README.md
PORTEXAMPLES=	*

PLIST_FILES=	bin/twmnc bin/twmnd

OPTIONS_DEFINE=	DOCS EXAMPLES

post-install:
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/twmnc ${STAGEDIR}${PREFIX}/bin/twmnd

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

post-install-EXAMPLES-on:
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>