summaryrefslogtreecommitdiffstats
path: root/net-im/toxic/Makefile
blob: 4abaa1db9019af42d8a59752dfcc30c615795032 (plain)
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
# Created by: Thierry Thomas <thierry@pompo.net>
# $FreeBSD$

PORTNAME=	toxic
PORTVERSION=	0.7.2
DISTVERSIONPREFIX=	v
CATEGORIES=	net-im

MAINTAINER=	thierry@FreeBSD.org
COMMENT=	Console client for Tox

LICENSE=	GPLv3+
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	${LOCALBASE}/lib/libtoxcore.a:net-im/tox	\
		${LOCALBASE}/include/linux/videodev2.h:multimedia/v4l_compat
LIB_DEPENDS=	libvpx.so:multimedia/libvpx		\
		libsodium.so:security/libsodium		\
		libpng16.so:graphics/png		\
		libopus.so:audio/opus			\
		libcurl.so:ftp/curl			\
		libv4l2.so:multimedia/libv4l		\
		libqrencode.so:graphics/libqrencode	\
		libconfig.so:devel/libconfig
RUN_DEPENDS=	${LOCALBASE}/lib/libtoxcore.a:net-im/tox

USE_GITHUB=	yes
GH_ACCOUNT=	JFreegman

OPTIONS_DEFINE=	X11
OPTIONS_DEFAULT=X11

X11_USE=	GNOME=gdkpixbuf2,glib20 XORG=x11
X11_MAKE_ARGS_OFF=	DISABLE_X11=1 DISABLE_DESKTOP_NOTIFY=1
X11_LIB_DEPENDS=libnotify.so:devel/libnotify

MAKE_ENV=	USER_CFLAGS="${CFLAGS}" USER_LDFLAGS="${LDFLAGS}"
SUB_FILES=	pkg-message

USES=		desktop-file-utils gettext-runtime gmake ncurses openal:al,alut pkgconfig

pre-configure:
	${REINPLACE_CMD} -e 's|PREFIX =|PREFIX?=|;s|$$(shell git rev-list HEAD.*$$|${GH_TAGNAME}|'	\
		${WRKSRC}/cfg/global_vars.mk

post-install:
	${RM} ${STAGEDIR}${MANPREFIX}/man/man1/toxic.1-e ${STAGEDIR}${MANPREFIX}/man/man5/toxic.conf.5-e
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/toxic

.include <bsd.port.mk>
OpenPOWER on IntegriCloud