freebsd-ports/net-im/qTox/Makefile
Yuri Victorovich 394d3c4b72 net-im/qTox: Update to 1.13.0
Approved by:	tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D13252
2017-11-28 06:28:31 +00:00

76 lines
2.2 KiB
Makefile

# Created by: Yuri Victorovich <yuri@rawbw.com>
# $FreeBSD$
PORTNAME= qTox
DISTVERSIONPREFIX= v
DISTVERSION= 1.13.0
CATEGORIES= net-im net-p2p
MAINTAINER= yuri@FreeBSD.org
COMMENT= Qt 5 based Tox client
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${LOCALBASE}/include/linux/videodev2.h:multimedia/v4l_compat
LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg \
libexif.so:graphics/libexif \
libfontconfig.so:x11-fonts/fontconfig \
libfreetype.so:print/freetype2 \
libopus.so:audio/opus \
libqrencode.so:graphics/libqrencode \
libsodium.so:security/libsodium \
libsqlcipher.so:databases/sqlcipher \
libtoxcore.so:net-im/tox \
libvpx.so:multimedia/libvpx
USES= cmake compiler:c++11-lib desktop-file-utils gettext openal:soft pkgconfig
USE_GITHUB= yes
GH_ACCOUNT= qTox
USE_GNOME= gtk20 cairo
USE_QT5= core gui network xml opengl sql sql-sqlite3_run widgets svg \
concurrent_build buildtools_build linguisttools_build qmake_build testlib_build
CMAKE_ARGS= -DGIT_DESCRIBE:STRING=${FULLVERSION}
INSTALLS_ICONS= yes
OPTIONS_DEFINE= FILTERAUDIO PLATFORM_EXTENSIONS
OPTIONS_DEFAULT= FILTERAUDIO PLATFORM_EXTENSIONS
PLATFORM_EXTENSIONS_DESC= Enable platform specific extensions
FILTERAUDIO_DESC= Enable the echo canceling backend
FILTERAUDIO_CMAKE_BOOL= USE_FILTERAUDIO
FILTERAUDIO_LIB_DEPENDS= libfilteraudio.so:audio/libfilteraudio
PLATFORM_EXTENSIONS_CMAKE_BOOL= PLATFORM_EXTENSIONS
PLATFORM_EXTENSIONS_USE= XORG=x11,xscrnsaver
PLIST_FILES= bin/qtox \
share/applications/qtox.desktop \
share/icons/hicolor/scalable/apps/qtox.svgz \
share/appdata/qTox.appdata.xml
.for SZ in 14 16 22 24 32 36 48 64 72 96 128 192 256 512
PLIST_FILES+= share/icons/hicolor/${SZ}x${SZ}/apps/qtox.png
.endfor
.include <bsd.port.pre.mk>
.if ${CHOSEN_COMPILER_TYPE} == "gcc" && ${ARCH} == i386 && !${CFLAGS:M-march=*}
# Needed for __atomic_fetch_add_8
CFLAGS+= -march=i586
.endif
.if !defined(GH_TAGNAME)
FULLVERSION= ${PKGVERSION}
.else
FULLVERSION= "${PKGVERSION} (rev.${GH_TAGNAME})"
.endif
pre-everything::
@${ECHO_MSG}
@${ECHO_MSG} "Warning: qTox won't build if the option NaCl was selected for Tox!"
@${ECHO_MSG}
pre-configure:
@${REINPLACE_CMD} '/Comment/s,=.*,=${COMMENT},' \
${WRKSRC}/qtox.desktop
.include <bsd.port.post.mk>