summaryrefslogtreecommitdiff
path: root/devel/kf5-kcoreaddons/Makefile
blob: c7fcc4eb28ea6a26eaea0a1654718fa616921c18 (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
PORTNAME=	kcoreaddons
DISTVERSION=	${KDE_FRAMEWORKS_VERSION}
CATEGORIES=	devel kde kde-frameworks

MAINTAINER=	kde@FreeBSD.org
COMMENT=	KF5 addons to QtCore

LICENSE=	LGPL21+ BSD3CLAUSE
LICENSE_COMB=	multi

USES=		cmake compiler:c++11-lib kde:5 qt:5 shared-mime-info tar:xz
USE_KDE=	ecm
USE_QT=		core linguisttools \
		buildtools_build qmake_build

OPTIONS_DEFINE=		FAM INOTIFY
OPTIONS_DEFAULT=	INOTIFY
OPTIONS_SUB=		yes

INOTIFY_DESC=		Filesystem alteration notifications using inotify
INOTIFY_LIB_DEPENDS=	libinotify.so:devel/libinotify
INOTIFY_CMAKE_BOOL_OFF=	CMAKE_DISABLE_FIND_PACKAGE_INOTIFY

# TODO: FAM is broken, and hangs on NFS
FAM_DESC=		Filesystem alteration notifications using fam (broken: hangs on NFS)
FAM_USES=		fam
FAM_CMAKE_BOOL_OFF=	CMAKE_DISABLE_FIND_PACKAGE_FAM

.include <bsd.port.pre.mk>
# FreeBSD base gained /etc/os-release in r354922, which
# corresponds to __FreeBSD_version 1300060
.if ${OSVERSION} < 1300060
post-patch:
	${REINPLACE_CMD} -e '/QStringLiteral/s|/etc/os-release|${LOCALBASE}/etc/os-release|g' \
		${WRKSRC}/src/lib/util/kosrelease.cpp
.endif

.include <bsd.port.post.mk>