aboutsummaryrefslogtreecommitdiff
path: root/x11-fm/qtfm/Makefile
blob: 76ac137bafa1ebe1ebabfc45cff26676d477eef4 (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
38
# Created by: Zhihao Yuan <lichray@gmail.com>

PORTNAME=	qtfm
PORTVERSION=	6.2.0
PORTREVISION=	1
CATEGORIES=	x11-fm

MAINTAINER=	jgh@FreeBSD.org
COMMENT=	Small, lightweight file manager based on pure Qt

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>