# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # net-im/qTox # net-im/qTox/Makefile # net-im/qTox/distinfo # net-im/qTox/pkg-descr # net-im/qTox/files # net-im/qTox/files/pkg-message.in # net-im/qTox/files/patch-CMakeLists.txt # net-im/qTox/files/patch-osx_update-plist-version.sh # net-im/qTox/files/patch-src_main.cpp # net-im/qTox/files/patch-src_video_videomode.cpp # net-im/qTox/files/patch-src_widget_form_settings_aboutsettings.ui # net-im/qTox/files/patch-windows_qtox-nsi-version.sh # echo c - net-im/qTox mkdir -p net-im/qTox > /dev/null 2>&1 echo x - net-im/qTox/Makefile sed 's/^X//' >net-im/qTox/Makefile << '6a6ecc0a6f02067f143dfc2e3d7a7570' X# Created by: Yuri Victorovich X# $FreeBSD: head/net-im/qTox/Makefile 442461 2017-06-02 20:27:10Z tcberner $ X XPORTNAME= qTox XPORTVERSION= 1.11.0 XDISTVERSIONPREFIX= v XCATEGORIES= net-im net-p2p X XMAINTAINER= yuri@rawbw.com XCOMMENT= Qt 5 based Tox client X XLICENSE= GPLv3 X XBUILD_DEPENDS= ${LOCALBASE}/include/linux/videodev2.h:multimedia/v4l_compat XLIB_DEPENDS= libtoxcore.so:net-im/tox \ X libopencv_highgui.so:graphics/opencv \ X libopencv_core.so:graphics/opencv-core \ X libavcodec.so:multimedia/ffmpeg \ X libvpx.so:multimedia/libvpx \ X libfilteraudio.so:audio/libfilteraudio \ X libopus.so:audio/opus \ X libsodium.so:security/libsodium \ X libqrencode.so:graphics/libqrencode \ X libsqlcipher.so:databases/sqlcipher \ X libfreetype.so:print/freetype2 \ X libfontconfig.so:x11-fonts/fontconfig X XUSE_GITHUB= yes XGH_ACCOUNT= qTox X XSUB_FILES= pkg-message X XUSES= compiler:c++11-lib desktop-file-utils gettext openal:soft pkgconfig cmake XUSE_GNOME= glib20 gtk20 cairo gdkpixbuf2 XUSE_XORG= x11 xscrnsaver XUSE_GL= gl XUSE_QT5= core gui network xml opengl sql sql-sqlite3_run widgets svg \ X concurrent buildtools_build linguisttools_build XCMAKE_ARGS= -DGIT_DESCRIBE:STRING=${FULLVERSION} XINSTALLS_ICONS= yes XICON_SIZES= 14x14 16x16 22x22 24x24 32x32 36x36 48x48 64x64 72x72 96x96 128x128 192x192 256x256 512x512 X XPLIST_FILES= bin/qtox \ X share/applications/qtox.desktop \ X share/icons/hicolor/scalable/apps/qtox.svgz \ X share/appdata/qTox.appdata.xml X.for SZ in ${ICON_SIZES} XPLIST_FILES+= share/icons/hicolor/${SZ}/apps/qtox.png X.endfor X X.include X X.if ${CHOSEN_COMPILER_TYPE} == "gcc" && ${ARCH} == i386 && !${CFLAGS:M-march=*} X# Needed for __atomic_fetch_add_8 XCFLAGS+= -march=i586 X.endif X X.if !defined(GH_TAGNAME) XFULLVERSION= ${PKGVERSION} X.else XFULLVERSION= "${PKGVERSION} (rev.${GH_TAGNAME})" X.endif X Xpre-everything:: X @${ECHO_MSG} X @${ECHO_MSG} "Warning: qTox won't build if the option NaCl was selected for Tox!" X @${ECHO_MSG} X Xpre-configure: X @${REINPLACE_CMD} '/Comment/s,=.*,=${COMMENT},' \ X ${WRKSRC}/qtox.desktop X Xpost-install: X ${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps X @${GZIP_CMD} \ X < ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/qtox.svg \ X > ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/qtox.svgz X @${RM} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/qtox.svg X.for SZ in ${ICON_SIZES} X @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${SZ}/apps X ${INSTALL_DATA} ${WRKSRC}/img/icons/${SZ}/qtox.png \ X ${STAGEDIR}${PREFIX}/share/icons/hicolor/${SZ}/apps/qtox.png X.endfor X X.include 6a6ecc0a6f02067f143dfc2e3d7a7570 echo x - net-im/qTox/distinfo sed 's/^X//' >net-im/qTox/distinfo << '4a42d5618d64bdb929402fe04d500126' XTIMESTAMP = 1500321399 XSHA256 (qTox-qTox-v1.11.0_GH0.tar.gz) = be38517cd915727dbd9b3cd2a51bbaf1cae28290de07a34c759ec8b77c502cd4 XSIZE (qTox-qTox-v1.11.0_GH0.tar.gz) = 3946782 4a42d5618d64bdb929402fe04d500126 echo x - net-im/qTox/pkg-descr sed 's/^X//' >net-im/qTox/pkg-descr << '18f0704ed08ac3b105a916e04ebaeb6a' XPowerful Tox chat client written using Qt 5 that follows the Tox Xdesign guidelines. X XWWW: https://github.com/tux3/qTox 18f0704ed08ac3b105a916e04ebaeb6a echo c - net-im/qTox/files mkdir -p net-im/qTox/files > /dev/null 2>&1 echo x - net-im/qTox/files/pkg-message.in sed 's/^X//' >net-im/qTox/files/pkg-message.in << '4c1c98cc64655711bcb9eb55e5191554' X====================================================================== XYou installed qTox: Qt 5 based Tox client. X XTo have video working, you need: X1. Have multimedia/webcamd installed and running. The usual way to X start webcamd is to have these two lines in /etc/rc.conf: X webcamd_enable="YES" X webcamd_flags="-H" X2. Make sure V4L option is "on" in multimedia/ffmpeg. X====================================================================== 4c1c98cc64655711bcb9eb55e5191554 echo x - net-im/qTox/files/patch-CMakeLists.txt sed 's/^X//' >net-im/qTox/files/patch-CMakeLists.txt << 'ae469d45c9526ce106245beb84859627' X--- CMakeLists.txt.orig 2017-07-16 12:33:33 UTC X+++ CMakeLists.txt X@@ -16,15 +16,15 @@ endif() X set(ENV{PKG_CONFIG_PATH} X ${CMAKE_SOURCE_DIR}/libs/lib/pkgconfig:/opt/ffmpeg/lib/pkgconfig:$ENV{PKG_CONFIG_PATH}) X X-execute_process( X- COMMAND brew --prefix qt5 X- OUTPUT_VARIABLE QT_PREFIX_PATH X- OUTPUT_STRIP_TRAILING_WHITESPACE) X+#execute_process( X+# COMMAND brew --prefix qt5 X+# OUTPUT_VARIABLE QT_PREFIX_PATH X+# OUTPUT_STRIP_TRAILING_WHITESPACE) X X-execute_process( X- COMMAND xcode-select -p X- OUTPUT_VARIABLE CMAKE_OSX_SYSROOT X- OUTPUT_STRIP_TRAILING_WHITESPACE) X+#execute_process( X+# COMMAND xcode-select -p X+# OUTPUT_VARIABLE CMAKE_OSX_SYSROOT X+# OUTPUT_STRIP_TRAILING_WHITESPACE) X X set(CMAKE_OSX_DEPLOYMENT_TARGET 10.12) X set(CMAKE_OSX_SYSROOT ae469d45c9526ce106245beb84859627 echo x - net-im/qTox/files/patch-osx_update-plist-version.sh sed 's/^X//' >net-im/qTox/files/patch-osx_update-plist-version.sh << 'afe1909069e30caf944c941762bbb86f' X--- osx/update-plist-version.sh.orig 2017-07-16 12:33:33 UTC X+++ osx/update-plist-version.sh X@@ -41,7 +41,8 @@ update_version() { X X for v in "${vars[@]}" X do X- sed -i -r "\\R$v\$R,+1 s,()[0-9\\.]+()$,\\1$@\\2," \ X+ echo "YURI ---gsed---" X+ gsed -i -r "\\R$v\$R,+1 s,()[0-9\\.]+()$,\\1$@\\2," \ X "./info.plist" X done X } afe1909069e30caf944c941762bbb86f echo x - net-im/qTox/files/patch-src_main.cpp sed 's/^X//' >net-im/qTox/files/patch-src_main.cpp << '856de48182da5bd63b5ca9cf2c28b52f' X--- src/main.cpp.orig 2017-07-16 12:33:33 UTC X+++ src/main.cpp X@@ -322,3 +322,10 @@ int main(int argc, char* argv[]) X delete a; X return errorcode; X } X+ X+// Missing in libxccrt.so function __cxa_deleted_virtual, see FreeBSD Bug#200863 X+extern "C" void __cxa_deleted_virtual() X+{ X+ abort(); X+} X+ 856de48182da5bd63b5ca9cf2c28b52f echo x - net-im/qTox/files/patch-src_video_videomode.cpp sed 's/^X//' >net-im/qTox/files/patch-src_video_videomode.cpp << 'c36354c0498acba1c299f05394119f80' X--- src/video/videomode.cpp.orig 2017-07-16 12:33:33 UTC X+++ src/video/videomode.cpp X@@ -18,6 +18,7 @@ X */ X X #include "videomode.h" X+#include X X /** X * @struct VideoMode c36354c0498acba1c299f05394119f80 echo x - net-im/qTox/files/patch-src_widget_form_settings_aboutsettings.ui sed 's/^X//' >net-im/qTox/files/patch-src_widget_form_settings_aboutsettings.ui << 'a4a5bb289ed65f89a9cd21afd4ca1898' X--- src/widget/form/settings/aboutsettings.ui.orig 2017-07-16 12:33:33 UTC X+++ src/widget/form/settings/aboutsettings.ui X@@ -111,6 +111,9 @@ X X {GIT_VERSION} X X+ X+ false X+ X X true X a4a5bb289ed65f89a9cd21afd4ca1898 echo x - net-im/qTox/files/patch-windows_qtox-nsi-version.sh sed 's/^X//' >net-im/qTox/files/patch-windows_qtox-nsi-version.sh << '051e454d2bbd9bdfdde69a0017036894' X--- windows/qtox-nsi-version.sh.orig 2017-07-16 12:33:33 UTC X+++ windows/qtox-nsi-version.sh X@@ -35,7 +35,7 @@ set -eu -o pipefail X change_version() { X for nsi in *.nsi X do X- sed -i -r "/DisplayVersion/ s/\"[0-9\\.]+\"$/\"$@\"/" "$nsi" X+ gsed -i -r "/DisplayVersion/ s/\"[0-9\\.]+\"$/\"$@\"/" "$nsi" X done X } X 051e454d2bbd9bdfdde69a0017036894 exit