aboutsummaryrefslogtreecommitdiff
path: root/net-im
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2016-02-09 20:19:07 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2016-02-09 20:19:07 +0000
commit6fbec020d86d9e4081a34a184ee3bf5a8a364be9 (patch)
treeea523b493703446e9b5172e6381825f8d30b5277 /net-im
parent129fa2d098db1d0b7d5144c1aaa5aa289622a38f (diff)
downloadports-6fbec020d86d9e4081a34a184ee3bf5a8a364be9.tar.gz
ports-6fbec020d86d9e4081a34a184ee3bf5a8a364be9.zip
Notes
Diffstat (limited to 'net-im')
-rw-r--r--net-im/uTox/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/net-im/uTox/Makefile b/net-im/uTox/Makefile
index c80111498cd0..5f142b63ecad 100644
--- a/net-im/uTox/Makefile
+++ b/net-im/uTox/Makefile
@@ -2,6 +2,7 @@
PORTNAME= uTox
PORTVERSION= 0.5.1.20160121
+PORTREVISION= 1
CATEGORIES= net-im net-p2p
MAINTAINER= fidaj@ukr.net
@@ -14,6 +15,7 @@ BUILD_DEPENDS= ${LOCALBASE}/lib/libtoxcore.a:${PORTSDIR}/net-im/tox \
${LOCALBASE}/include/linux/videodev2.h:${PORTSDIR}/multimedia/v4l_compat
LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2 \
libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig \
+ libsodium.so:${PORTSDIR}/security/libsodium \
libv4lconvert.so:${PORTSDIR}/multimedia/libv4l \
libvpx.so:${PORTSDIR}/multimedia/libvpx \
libfilteraudio.so:${PORTSDIR}/audio/libfilteraudio
@@ -33,10 +35,16 @@ OPTIONS_DEFAULT= DBUS
DBUS_LIB_DEPENDS= libdbus-1.so:${PORTSDIR}/devel/dbus
DBUS_MAKE_ARGS_OFF= DBUS=0
-pre-configure:
+post-patch:
@${REINPLACE_CMD} -e 's|$$(GIT_V)|${DISTVERSION}-${GH_TAGNAME}|' \
-e 's|share/man|man|' ${WRKSRC}/${MAKEFILE}
+pre-configure:
+ @(if [ ! -e "${LOCALBASE}/lib/libtoxav.so" ]; then \
+ ${ECHO_CMD} "==> ${PKGNAME} requires net-im/tox port to be built with SODIUM option enabled"; \
+ ${FALSE}; \
+ fi)
+
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/utox