aboutsummaryrefslogtreecommitdiff
path: root/editors/ghostwriter/Makefile
blob: e059d843e053d4d4ff2a98bf93b4fd6f27c5efc9 (plain) (blame)
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
PORTNAME=	ghostwriter
DISTVERSION=	2.1.4
CATEGORIES=	editors

MAINTAINER=	madpilot@FreeBSD.org
COMMENT=	Distraction-free Markdown editor
WWW=		https://wereturtle.github.io/ghostwriter/

LICENSE=	GPLv3+
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libhunspell-1.7.so:textproc/hunspell

USES=		compiler:c++11-lang desktop-file-utils pkgconfig qmake qt:5
USE_GITHUB=	yes
GH_ACCOUNT=	wereturtle
USE_QT=		core gui svg webchannel webengine widgets buildtools_build \
		linguisttools_build

# cf. PR 224488
LDFLAGS+=	-Wl,--as-needed

post-configure:
	@${REINPLACE_CMD} -e 's|^\(build/release/qrc_QtAwesomeFree.cpp:[^\\]*\)\\|\1|' \
		-e '/3rdparty\/QtAwesome\/fonts\/Font/d' \
		-e '/\/lib\/qt5\/bin\/rcc \\/d' \
		${WRKSRC}/Makefile

.include <bsd.port.mk>