summaryrefslogtreecommitdiff
path: root/editors/focuswriter/Makefile
blob: ad327a5c2b252ca99449290606cafd727e7cd1b1 (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
# Created by: lightside <lightside@gmx.com>

PORTNAME=	focuswriter
DISTVERSIONPREFIX=	v
DISTVERSION=	1.7.6
CATEGORIES=	editors

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Simple, distraction-free writing environment

LICENSE=	GPLv3+ LGPL3+
LICENSE_COMB=	multi
LICENSE_FILE_GPLv3+ =	${WRKSRC}/COPYING
LICENSE_FILE_LGPL3+ =	${WRKSRC}/resources/images/icons/oxygen/COPYING

LIB_DEPENDS=	libhunspell-1.7.so:textproc/hunspell

USES=		compiler:c++11-lib desktop-file-utils gl pkgconfig qmake qt:5
USE_GITHUB=	yes
GH_ACCOUNT=	gottcode
USE_GL=		gl
USE_QT=		concurrent core gui multimedia network printsupport widgets \
		buildtools_build linguisttools_build

PORTDATA=	*
PORTDOCS=	ChangeLog CREDITS README

OPTIONS_DEFINE=	DOCS

post-patch:
	@${REINPLACE_CMD} -e '/INSTALLS/s/man //' \
		${WRKSRC}/focuswriter.pro

post-install:
	${INSTALL_MAN} ${WRKSRC}/resources/unix/focuswriter.1 \
		${STAGEDIR}${MANPREFIX}/man/man1

post-install-DOCS-on:
	cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>