2014-05-08 19:39:33 +00:00
|
|
|
# Created by: Thierry Thomas <thierry@pompo.net>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= toxic
|
2018-10-31 18:49:19 +00:00
|
|
|
PORTVERSION= 0.8.3
|
2017-02-13 16:38:32 +00:00
|
|
|
DISTVERSIONPREFIX= v
|
2019-07-16 06:57:13 +00:00
|
|
|
PORTREVISION= 2
|
2014-05-08 19:39:33 +00:00
|
|
|
CATEGORIES= net-im
|
|
|
|
|
|
|
|
MAINTAINER= thierry@FreeBSD.org
|
2014-07-10 12:13:11 +00:00
|
|
|
COMMENT= Console client for Tox
|
2014-05-08 19:39:33 +00:00
|
|
|
|
2016-01-12 16:20:31 +00:00
|
|
|
LICENSE= GPLv3+
|
2018-10-31 18:49:19 +00:00
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
2014-05-08 19:39:33 +00:00
|
|
|
|
2016-04-01 14:16:16 +00:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libtoxcore.a:net-im/tox \
|
|
|
|
${LOCALBASE}/include/linux/videodev2.h:multimedia/v4l_compat
|
|
|
|
LIB_DEPENDS= libvpx.so:multimedia/libvpx \
|
2019-07-16 06:57:13 +00:00
|
|
|
libpng.so:graphics/png \
|
2016-04-01 14:16:16 +00:00
|
|
|
libcurl.so:ftp/curl \
|
2017-01-10 20:52:05 +00:00
|
|
|
libv4l2.so:multimedia/libv4l \
|
2016-04-01 14:16:16 +00:00
|
|
|
libqrencode.so:graphics/libqrencode \
|
|
|
|
libconfig.so:devel/libconfig
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/lib/libtoxcore.a:net-im/tox
|
2014-05-08 19:39:33 +00:00
|
|
|
|
2019-07-16 06:57:13 +00:00
|
|
|
USES= desktop-file-utils gettext-runtime gmake ncurses openal:al,alut pkgconfig
|
|
|
|
|
2014-05-08 19:39:33 +00:00
|
|
|
USE_GITHUB= yes
|
2017-01-10 20:52:05 +00:00
|
|
|
GH_ACCOUNT= JFreegman
|
2014-09-08 20:38:21 +00:00
|
|
|
|
2017-06-08 20:37:18 +00:00
|
|
|
OPTIONS_DEFINE= X11 PYTHON
|
2014-09-08 20:38:21 +00:00
|
|
|
OPTIONS_DEFAULT=X11
|
|
|
|
|
2019-11-08 13:34:26 +00:00
|
|
|
X11_USES= gnome xorg
|
2016-09-25 14:15:01 +00:00
|
|
|
X11_USE= GNOME=gdkpixbuf2,glib20 XORG=x11
|
2014-09-09 20:23:16 +00:00
|
|
|
X11_MAKE_ARGS_OFF= DISABLE_X11=1 DISABLE_DESKTOP_NOTIFY=1
|
2016-04-01 14:16:16 +00:00
|
|
|
X11_LIB_DEPENDS=libnotify.so:devel/libnotify
|
2014-05-08 19:39:33 +00:00
|
|
|
|
2018-02-19 16:20:42 +00:00
|
|
|
PYTHON_USES= python:3.3+
|
2017-06-08 20:37:18 +00:00
|
|
|
PYTHON_MAKE_ARGS= ENABLE_PYTHON=1
|
|
|
|
|
2019-07-16 06:57:13 +00:00
|
|
|
CFLAGS+= -I${NCURSESINC}
|
|
|
|
LDFLAGS+= -L${NCURSESLIB}
|
2018-10-31 18:49:19 +00:00
|
|
|
MAKE_ENV= USER_CFLAGS="${CFLAGS}" USER_LDFLAGS="${LDFLAGS}" \
|
|
|
|
MANDIR="${MANPREFIX}/man"
|
2018-01-07 19:03:28 +00:00
|
|
|
LLD_UNSAFE= yes
|
2014-05-08 19:39:33 +00:00
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
2019-07-16 06:57:13 +00:00
|
|
|
post-patch-PYTHON-on:
|
|
|
|
${REINPLACE_CMD} -e '/PYTHON3_LIBS/ s|python3|python-${PYTHON_VER}|' \
|
|
|
|
-e 's|python3-config|${PYTHON_VERSION}-config|g' \
|
|
|
|
${WRKSRC}/cfg/checks/python.mk
|
|
|
|
|
2014-06-30 21:22:25 +00:00
|
|
|
pre-configure:
|
2015-05-07 17:26:05 +00:00
|
|
|
${REINPLACE_CMD} -e 's|PREFIX =|PREFIX?=|;s|$$(shell git rev-list HEAD.*$$|${GH_TAGNAME}|' \
|
2014-09-08 20:38:21 +00:00
|
|
|
${WRKSRC}/cfg/global_vars.mk
|
2014-05-08 19:39:33 +00:00
|
|
|
|
|
|
|
post-install:
|
2014-10-26 14:43:54 +00:00
|
|
|
${RM} ${STAGEDIR}${MANPREFIX}/man/man1/toxic.1-e ${STAGEDIR}${MANPREFIX}/man/man5/toxic.conf.5-e
|
2014-06-30 21:22:25 +00:00
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/toxic
|
2014-05-08 19:39:33 +00:00
|
|
|
|
2015-09-17 11:04:04 +00:00
|
|
|
.include <bsd.port.mk>
|