summaryrefslogtreecommitdiff
path: root/x11-fm/qtfm/Makefile
blob: 3bda6eed4c7cba257abab64c0820c27eddb07467 (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
30
31
32
33
34
35
36
37
PORTNAME=	qtfm
PORTVERSION=	6.2.1
PORTREVISION=	1
CATEGORIES=	x11-fm

MAINTAINER=	jgh@FreeBSD.org
COMMENT=	Small, lightweight file manager based on pure Qt
WWW=		https://qtfm.eu

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libinotify.so:devel/libinotify

USES=		compiler:c++11-lang desktop-file-utils gl qmake qt:5
USE_GL=		gl
USE_QT=		concurrent core dbus gui widgets \
		buildtools:build qmake:build

USE_GITHUB=	yes
GH_ACCOUNT=	rodlie

QMAKE_ARGS=	MANDIR=${PREFIX}/share/man \
		PREFIX=${PREFIX} \
		XDGDIR=${PREFIX}/etc/xdg \
		DOCDIR=${DOCSDIR}

OPTIONS_DEFINE=	DOCS

post-patch:
	@${REINPLACE_CMD} -e 's|docs.path.*|docs.path = $$$${DOCDIR}|' \
		${WRKSRC}/libfm/libfm.pro

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/qtfm

.include <bsd.port.mk>