summaryrefslogtreecommitdiff
path: root/deskutils/syncthingtray/Makefile
blob: a39e60e498380b42b6d5d85a5a318523728e0b47 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79

PORTNAME=	syncthingtray
PORTVERSION=	1.1.2
DISTVERSIONPREFIX=	v
CATEGORIES=	deskutils

MAINTAINER=	swills@FreeBSD.org
COMMENT=	Qt 5-based Syncthing tray application

LICENSE=	GPLv2
LICENSE_FILE=	${WRKDIR}/syncthingtray/LICENSE

BUILD_DEPENDS=	${LOCALBASE}/share/ECM/cmake/ECMConfig.cmake:devel/kf5-extra-cmake-modules \
		doxygen:devel/doxygen
LIB_DEPENDS=	libboost_iostreams.so:devel/boost-libs \
		libboost_regex.so:devel/boost-libs

USES=		cmake:insource compiler:c++11-lang iconv kde:5 qt:5

USE_GITHUB=	nodefault
GH_TUPLE=	Martchus:${PORTNAME}:${DISTVERSIONPREFIX}${DISTVERSION}:syncthingtray/../syncthingtray \
		Martchus:cpp-utilities:v5.10.0:cpputilities/../c++utilities \
		Martchus:qtutilities:v6.3.0:qtutilities/../qtutilities \
		Martchus:subdirs:f3b12f9:subdirs/../subdirs

USE_KDE=	plasma-framework
USE_QT=		concurrent core dbus declarative gui location network \
		printsupport qdbus quickcontrols2 svg webchannel \
		widgets x11extras buildtools_build doc_build linguist_build \
		qmake_build

CMAKE_OFF=	USE_STANDARD_FILESYSTEM

CONFIGURE_WRKSRC=	${WRKDIR}
BUILD_WRKSRC=		${WRKDIR}
INSTALL_WRKSRC=		${WRKDIR}
CMAKE_SOURCE_PATH=	${WRKDIR}/subdirs/syncthingtray

.include <bsd.port.pre.mk>

.if ${ARCH} == amd64 || ${ARCH} == i386
DEPRECATED=	Uses EOL Python 2.7 via www/qt5-webengine
EXPIRATION_DATE=2021-06-23
USE_QT+=	webengine
.else
CMAKE_ARGS+=	-DWEBVIEW_PROVIDER=webkit
USE_QT+=	webkit
.endif

post-install:
	${RM} -r \
		${STAGEDIR}${PREFIX}/include/c++utilities \
		${STAGEDIR}${PREFIX}/include/qtutilities \
		${STAGEDIR}${PREFIX}/lib/libc++utilities.a \
		${STAGEDIR}${PREFIX}/lib/libqtutilities.a \
		${STAGEDIR}${PREFIX}/libdata/pkgconfig/c++utilities.pc \
		${STAGEDIR}${PREFIX}/libdata/pkgconfig/qtutilities.pc \
		${STAGEDIR}${PREFIX}/share/c++utilities \
		${STAGEDIR}${PREFIX}/share/qtutilities \
		${STAGEDIR}${PREFIX}/share/syncthingconnector/cmake \
		${STAGEDIR}${PREFIX}/share/syncthingfileitemaction/cmake \
		${STAGEDIR}${PREFIX}/share/syncthingmodel/cmake \
		${STAGEDIR}${PREFIX}/share/syncthingplasmoid/cmake \
		${STAGEDIR}${PREFIX}/share/syncthingwidgets/cmake \
		${STAGEDIR}${PREFIX}/include/syncthingconnector \
		${STAGEDIR}${PREFIX}/include/syncthingmodel \
		${STAGEDIR}${PREFIX}/include/syncthingwidgets \
		${STAGEDIR}${PREFIX}/libdata/pkgconfig/syncthingconnector.pc \
		${STAGEDIR}${PREFIX}/libdata/pkgconfig/syncthingfileitemaction.pc \
		${STAGEDIR}${PREFIX}/libdata/pkgconfig/syncthingmodel.pc \
		${STAGEDIR}${PREFIX}/libdata/pkgconfig/syncthingplasmoid.pc \
		${STAGEDIR}${PREFIX}/libdata/pkgconfig/syncthingwidgets.pc \
		${STAGEDIR}${PREFIX}/lib/libsyncthingconnector.a \
		${STAGEDIR}${PREFIX}/lib/libsyncthingmodel.a \
		${STAGEDIR}${PREFIX}/lib/libsyncthingwidgets.a \
		${STAGEDIR}${QT_PLUGINDIR} \
		${STAGEDIR}${QT_LIBDIR}

.include <bsd.port.post.mk>