View | Details | Raw Unified | Return to bug 223593
Collapse All | Expand All

(-)net-im/ricochet/Makefile (-2 / +2 lines)
Lines 1-44 Link Here
1
# Created by: Yuri Victorovich <yuri@rawbw.com>
1
# Created by: Yuri Victorovich <yuri@rawbw.com>
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	ricochet
4
PORTNAME=	ricochet
5
PORTVERSION=	1.1.4
5
PORTVERSION=	1.1.4
6
DISTVERSIONPREFIX=	v
6
DISTVERSIONPREFIX=	v
7
PORTREVISION=	8
7
PORTREVISION=	9
8
CATEGORIES=	net-im net-p2p
8
CATEGORIES=	net-im net-p2p
9
9
10
MAINTAINER=	yuri@rawbw.com
10
MAINTAINER=	yuri@rawbw.com
11
COMMENT=	Anonymous peer-to-peer instant messenger
11
COMMENT=	Anonymous peer-to-peer instant messenger
12
12
13
LICENSE=	RICOCHET
13
LICENSE=	RICOCHET
14
LICENSE_NAME=	Ricochet
14
LICENSE_NAME=	Ricochet
15
LICENSE_FILE=	${WRKSRC}/LICENSE
15
LICENSE_FILE=	${WRKSRC}/LICENSE
16
LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
16
LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
17
17
18
LIB_DEPENDS=	libprotobuf.so:devel/protobuf
18
LIB_DEPENDS=	libprotobuf.so:devel/protobuf
19
RUN_DEPENDS=	tor:security/tor
19
RUN_DEPENDS=	tor:security/tor
20
20
21
USE_GITHUB=	yes
21
USE_GITHUB=	yes
22
GH_ACCOUNT=	ricochet-im
22
GH_ACCOUNT=	ricochet-im
23
23
24
USES=		compiler:c++11-lib gmake pkgconfig qmake ssl
24
USES=		compiler:c++11-lib gmake pkgconfig qmake ssl
25
USE_GL=		gl
25
USE_GL=		gl
26
USE_QT5=	core gui network qml quick widgets multimedia buildtools_build linguisttools_build
26
USE_QT5=	core gui network qml quick quickcontrols widgets multimedia buildtools_build linguisttools_build
27
QMAKE_ARGS+=	DEFINES+=RICOCHET_NO_PORTABLE OPENSSLDIR=${LOCALBASE}
27
QMAKE_ARGS+=	DEFINES+=RICOCHET_NO_PORTABLE OPENSSLDIR=${LOCALBASE}
28
28
29
PLIST_FILES=	bin/ricochet \
29
PLIST_FILES=	bin/ricochet \
30
		share/applications/ricochet.desktop \
30
		share/applications/ricochet.desktop \
31
		share/icons/hicolor/48x48/apps/ricochet.png \
31
		share/icons/hicolor/48x48/apps/ricochet.png \
32
		share/icons/hicolor/scalable/apps/ricochet.svg
32
		share/icons/hicolor/scalable/apps/ricochet.svg
33
33
34
.include <bsd.port.pre.mk>
34
.include <bsd.port.pre.mk>
35
35
36
post-patch:
36
post-patch:
37
	@${REINPLACE_CMD} -E 's| -fsanitize=[a-z-]+| |g' \
37
	@${REINPLACE_CMD} -E 's| -fsanitize=[a-z-]+| |g' \
38
		${WRKSRC}/hardened.pri
38
		${WRKSRC}/hardened.pri
39
.if ${ARCH} == amd64 && ${OSREL:R} == 9
39
.if ${ARCH} == amd64 && ${OSREL:R} == 9
40
	@${REINPLACE_CMD} -E 's| -pie| |g' \
40
	@${REINPLACE_CMD} -E 's| -pie| |g' \
41
		${WRKSRC}/hardened.pri
41
		${WRKSRC}/hardened.pri
42
.endif
42
.endif
43
43
44
.include <bsd.port.post.mk>
44
.include <bsd.port.post.mk>

Return to bug 223593