aboutsummaryrefslogtreecommitdiff
path: root/devel/libdbusmenu-qt/Makefile
blob: 57c9dbaf4b3bb403b3099f5afdb62a176be3506a (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
39
40
41
42
43
44
45
46
# Created by: Dima Panov <fluffy@FreeBSD.org>

PORTNAME=	libdbusmenu-qt
PORTVERSION=	${MAJOR_VER}.${SNAPSHOT_VER:S/.//g}
PORTREVISION=	11
CATEGORIES=	devel
MASTER_SITES=	http://archive.ubuntu.com/ubuntu/pool/main/libd/${PORTNAME}/ \
		LOCAL/tcberner/${PORTNAME}/${PORTVERSION}
PKGNAMESUFFIX=	5
DISTNAME=	${PORTNAME}_${MAJOR_VER}+${SNAPSHOT_VER}.orig

MAINTAINER=	kde@FreeBSD.org
COMMENT=	Qt5 implementation of the DBusMenu protocol

LICENSE=	LGPL20

USES=		compiler:c++11-lib cmake qt:5
USE_LDCONFIG=	yes
USE_QT=		core dbus gui widgets \
		buildtools_build qmake_build
CMAKE_ON=	USE_QT5
CMAKE_OFF=	USE_QT4
QTVER_SUFFIX=	5

OPTIONS_DEFINE=		DOXYGEN
OPTIONS_SUB=		YES
DOXYGEN_DESC=		Build documentation (requires doxygen)
DOXYGEN_CMAKE_BOOL=	WITH_DOC
DOXYGEN_BUILD_DEPENDS=	doxygen:devel/doxygen

.  if defined(PACKAGE_BUILDING)
OPTIONS_DEFAULT+=	DOXYGEN
.  endif

MAJOR_VER=	0.9.3
SNAPSHOT_VER=	16.04.20160218

WRKSRC=		${WRKDIR}/${PORTNAME}-${MAJOR_VER}+${SNAPSHOT_VER}
PLIST_SUB=	QTVER_SUFFIX="${QTVER_SUFFIX}"

post-patch:
	@${REINPLACE_CMD} -e '/add_subdirectory(tests)/ d' \
			  -e '/add_subdirectory(tools)/ d' \
		${WRKSRC}/CMakeLists.txt

.include <bsd.port.mk>