aboutsummaryrefslogtreecommitdiff
path: root/net-p2p/retroshare/Makefile
blob: 525658c09af4694ef0b26e5e4491cb92684814d4 (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Created by: glocke@bsdstammtisch.at
# $FreeBSD$

PORTNAME=	retroshare
PORTVERSION=	0.6.1
DISTVERSIONPREFIX=	v
PORTREVISION=	7
CATEGORIES=	net-p2p

MAINTAINER=	peter@netkey.at
COMMENT=	Private and secure decentralised communication platform

LICENSE=	GPLv2

LIB_DEPENDS=	libsqlcipher.so:databases/sqlcipher \
		libspeex.so:audio/speex \
		libspeexdsp.so:audio/speexdsp \
		libupnp.so:devel/upnp \
		libgnome-keyring.so:security/libgnome-keyring \
		libgpgme.so:security/gpgme \
		libopencv_highgui.so:graphics/opencv \
		libopencv_imgproc.so:graphics/opencv-core \
		libavcodec.so:multimedia/ffmpeg \
		libcurl.so:ftp/curl \
		libmicrohttpd.so:www/libmicrohttpd

USES=		compiler:features desktop-file-utils dos2unix pkgconfig qmake ssl
USE_GNOME=	glib20 libxml2 libxslt
USE_GL=		gl
USE_QT5=	buildtools_build uitools_build core gui network xml \
		widgets multimedia printsupport
INSTALLS_ICONS=	yes

DOS2UNIX_FILES=	retroshare-nogui/src/retroshare-nogui.pro
USE_GITHUB=	yes
GH_ACCOUNT=	RetroShare
GH_PROJECT=	RetroShare

.include <bsd.port.pre.mk>

post-patch:
.if ${COMPILER_FEATURES:Mlibc++}
	@${REINPLACE_CMD} -e 's|std::tr1::|std::|' \
		${WRKSRC}/libretroshare/src/dbase/findex.[ch]*
.endif
	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
		${WRKSRC}/libretroshare/src/libretroshare.pro
	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
		${WRKSRC}/retroshare-gui/src/retroshare-gui.pro
	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
		${WRKSRC}/retroshare-nogui/src/retroshare-nogui.pro
	@${REINPLACE_CMD} -e 's|/usr/bin|${PREFIX}/bin|' \
		${WRKSRC}/data/retroshare06.desktop
	@${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|' \
		${WRKSRC}/data/retroshare06.desktop
.if defined(GH_TAGNAME)
	@${REINPLACE_CMD} -e 's|RS_REVISION_NUMBER.*|RS_REVISION_NUMBER   0x${GH_TAGNAME}|' \
		${WRKSRC}/libretroshare/src/retroshare/rsversion.h
.endif

.include <bsd.port.post.mk>