summaryrefslogtreecommitdiff
path: root/net-im/qTox/Makefile
blob: 286be2940afeea01cf082a45787c6e249e8acfaf (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
# Created by: Yuri Victorovich <yuri@rawbw.com>
# $FreeBSD$

PORTNAME=	qTox
PORTVERSION=	0.141018
CATEGORIES=	net-im

MAINTAINER=	yuri@rawbw.com
COMMENT=	Qt 5 based Tox client

LICENSE=	GPLv3

BUILD_DEPENDS=	${LOCALBASE}/lib/libtoxcore.a:${PORTSDIR}/net-im/tox
LIB_DEPENDS=	libopencv_highgui.so:${PORTSDIR}/graphics/opencv
RUN_DEPENDS=	${LOCALBASE}/lib/libtoxcore.a:${PORTSDIR}/net-im/tox

USE_GITHUB=	yes
GH_ACCOUNT=	tux3
GH_TAGNAME=	${GH_COMMIT}
GH_COMMIT=	bf35c5e

USE_QT5=	core gui network opengl xml widgets buildtools_build
USES=		compiler:c++11-lib openal:soft qmake

PLIST_FILES=	bin/qtox \
		share/applications/qTox.desktop \
		share/pixmaps/qtox.png

pre-configure:
	${CP} ${WRKSRC}/img/icon.png ${WRKSRC}/img/qtox.png
	${REINPLACE_CMD} '/Comment/s,=.*,=${COMMENT},' \
		${WRKSRC}/qTox.desktop

.include <bsd.port.mk>