freebsd-ports/editors/ghostwriter/Makefile
2022-09-19 09:36:22 +02:00

29 lines
752 B
Makefile

PORTNAME= ghostwriter
DISTVERSION= 2.2.0
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>