aboutsummaryrefslogtreecommitdiff
path: root/net-im/toxins/Makefile
blob: 0cd6c39caf42bdfd7b96c302b4abd735ca4e9e59 (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

PORTNAME=	toxins
DISTVERSION=	g20180217
PORTREVISION=	1
CATEGORIES=	net-im

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Collection of small programs using toxcore

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/LICENSE.md

LIB_DEPENDS=	libsodium.so:security/libsodium \
		libtoxcore.so:net-im/tox

USES=		gmake pkgconfig
USE_CSTD=	gnu99
USE_GITHUB=	yes
GH_ACCOUNT=	TokTok
GH_TAGNAME=	f76a7bd
ALL_TARGET=	build
GH_TUPLE=	hqwrong:minitox:45b9e3f:minitox/minitox/import

PROGS=		irc_syncbot tox_shell tox_sync echobot minitox

PLIST_FILES=	${PROGS:S/^/bin\//}

post-patch:
	@${RM} -r ${WRKSRC}/toxvpn # will be in a separate port
	@${REINPLACE_CMD} -e 's|-static -ltoxcore|`pkg-config --cflags --libs toxcore`|' ${WRKSRC}/*/Makefile

do-install:
.for f in ${PROGS}
	${INSTALL_PROGRAM} ${WRKSRC}/${f}/${f} ${STAGEDIR}${PREFIX}/bin/${f}
.endfor

.include <bsd.port.mk>