diff options
author | tcberner <tcberner@FreeBSD.org> | 2017-07-19 00:41:57 +0800 |
---|---|---|
committer | tcberner <tcberner@FreeBSD.org> | 2017-07-19 00:41:57 +0800 |
commit | 20418123ceb6c93704da431f7bc23335af66fae2 (patch) | |
tree | d6255b0f5c65b8a6276fd8d7e942304f12fa8ef5 /net-im/qTox | |
parent | a161ddfc668899c848b9c9f2bac7afc27bde47db (diff) | |
download | freebsd-ports-gnome-20418123ceb6c93704da431f7bc23335af66fae2.tar.gz freebsd-ports-gnome-20418123ceb6c93704da431f7bc23335af66fae2.tar.zst freebsd-ports-gnome-20418123ceb6c93704da431f7bc23335af66fae2.zip |
net-im/qTox: Update to 1.11.0
PR: 220814
Submitted by: Yuri Victorovich <yuri@rawbw.com> (maintainer)
Diffstat (limited to 'net-im/qTox')
-rw-r--r-- | net-im/qTox/Makefile | 26 | ||||
-rw-r--r-- | net-im/qTox/distinfo | 6 | ||||
-rw-r--r-- | net-im/qTox/files/patch-CMakeLists.txt | 26 | ||||
-rw-r--r-- | net-im/qTox/files/patch-qtox.pro | 32 | ||||
-rw-r--r-- | net-im/qTox/files/patch-src_main.cpp | 6 |
5 files changed, 45 insertions, 51 deletions
diff --git a/net-im/qTox/Makefile b/net-im/qTox/Makefile index 1af2400e3e72..5fafe789725e 100644 --- a/net-im/qTox/Makefile +++ b/net-im/qTox/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= qTox -PORTVERSION= 1.10.2 +PORTVERSION= 1.11.0 DISTVERSIONPREFIX= v CATEGORIES= net-im net-p2p @@ -18,6 +18,7 @@ LIB_DEPENDS= libtoxcore.so:net-im/tox \ libavcodec.so:multimedia/ffmpeg \ libvpx.so:multimedia/libvpx \ libfilteraudio.so:audio/libfilteraudio \ + libopus.so:audio/opus \ libsodium.so:security/libsodium \ libqrencode.so:graphics/libqrencode \ libsqlcipher.so:databases/sqlcipher \ @@ -29,19 +30,22 @@ GH_ACCOUNT= qTox SUB_FILES= pkg-message -USES= compiler:c++11-lib desktop-file-utils gettext gmake openal:soft pkgconfig qmake +USES= compiler:c++11-lib desktop-file-utils gettext openal:soft pkgconfig cmake USE_GNOME= glib20 gtk20 cairo gdkpixbuf2 USE_XORG= x11 xscrnsaver USE_GL= gl -USE_QT5= core gui network xml opengl sql sql-sqlite3_run widgets svg \ +USE_QT5= core gui network xml opengl sql sql-sqlite3_run widgets svg testlib \ concurrent buildtools_build linguisttools_build +# bug#220813: qmake isn't needed, but the build fails without qmake_build +USE_QT5+= qmake_build +CMAKE_ARGS= -DGIT_DESCRIBE:STRING=${FULLVERSION} INSTALLS_ICONS= yes ICON_SIZES= 14x14 16x16 22x22 24x24 32x32 36x36 48x48 64x64 72x72 96x96 128x128 192x192 256x256 512x512 -QMAKE_ARGS= FREEBSD_PKGVERSION=${FULLVERSION} PLIST_FILES= bin/qtox \ share/applications/qtox.desktop \ - share/icons/hicolor/scalable/apps/qtox.svgz + share/icons/hicolor/scalable/apps/qtox.svgz \ + share/appdata/qTox.appdata.xml .for SZ in ${ICON_SIZES} PLIST_FILES+= share/icons/hicolor/${SZ}/apps/qtox.png .endfor @@ -64,20 +68,16 @@ pre-everything:: @${ECHO_MSG} "Warning: qTox won't build if the option NaCl was selected for Tox!" @${ECHO_MSG} -post-patch: - @${REINPLACE_CMD} -e 's|$$$$system(git rev-parse HEAD)|"${GH_TAGNAME}"|' \ - -e 's|INCLUDEPATH += "/usr/include|INCLUDEPATH += "${LOCALBASE}/include|' \ - -e 's|INCLUDEPATH += "/usr/lib64|INCLUDEPATH += "${LOCALBASE}/lib|' \ - -e 's|INCLUDEPATH += "/usr/lib|INCLUDEPATH += "${LOCALBASE}/lib|' \ - ${WRKSRC}/qtox.pro - pre-configure: @${REINPLACE_CMD} '/Comment/s,=.*,=${COMMENT},' \ ${WRKSRC}/qtox.desktop post-install: ${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps - @${GZIP_CMD} < ${WRKSRC}/img/icons/qtox.svg > ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/qtox.svgz + @${GZIP_CMD} \ + < ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/qtox.svg \ + > ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/qtox.svgz + @${RM} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/qtox.svg .for SZ in ${ICON_SIZES} @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${SZ}/apps ${INSTALL_DATA} ${WRKSRC}/img/icons/${SZ}/qtox.png \ diff --git a/net-im/qTox/distinfo b/net-im/qTox/distinfo index 8eef16ccd24f..30d95b4444e2 100644 --- a/net-im/qTox/distinfo +++ b/net-im/qTox/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1496411551 -SHA256 (qTox-qTox-v1.10.2_GH0.tar.gz) = 1709ba412149781fc922c0807fddbf36af355e59a8cb4454b568fa739b2a5e80 -SIZE (qTox-qTox-v1.10.2_GH0.tar.gz) = 3647721 +TIMESTAMP = 1500321399 +SHA256 (qTox-qTox-v1.11.0_GH0.tar.gz) = be38517cd915727dbd9b3cd2a51bbaf1cae28290de07a34c759ec8b77c502cd4 +SIZE (qTox-qTox-v1.11.0_GH0.tar.gz) = 3946782 diff --git a/net-im/qTox/files/patch-CMakeLists.txt b/net-im/qTox/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..54cc71e4c655 --- /dev/null +++ b/net-im/qTox/files/patch-CMakeLists.txt @@ -0,0 +1,26 @@ +--- CMakeLists.txt.orig 2017-07-16 12:33:33 UTC ++++ CMakeLists.txt +@@ -16,15 +16,15 @@ endif() + set(ENV{PKG_CONFIG_PATH} + ${CMAKE_SOURCE_DIR}/libs/lib/pkgconfig:/opt/ffmpeg/lib/pkgconfig:$ENV{PKG_CONFIG_PATH}) + +-execute_process( +- COMMAND brew --prefix qt5 +- OUTPUT_VARIABLE QT_PREFIX_PATH +- OUTPUT_STRIP_TRAILING_WHITESPACE) ++#execute_process( ++# COMMAND brew --prefix qt5 ++# OUTPUT_VARIABLE QT_PREFIX_PATH ++# OUTPUT_STRIP_TRAILING_WHITESPACE) + +-execute_process( +- COMMAND xcode-select -p +- OUTPUT_VARIABLE CMAKE_OSX_SYSROOT +- OUTPUT_STRIP_TRAILING_WHITESPACE) ++#execute_process( ++# COMMAND xcode-select -p ++# OUTPUT_VARIABLE CMAKE_OSX_SYSROOT ++# OUTPUT_STRIP_TRAILING_WHITESPACE) + + set(CMAKE_OSX_DEPLOYMENT_TARGET 10.12) + set(CMAKE_OSX_SYSROOT diff --git a/net-im/qTox/files/patch-qtox.pro b/net-im/qTox/files/patch-qtox.pro deleted file mode 100644 index ede10dde2a65..000000000000 --- a/net-im/qTox/files/patch-qtox.pro +++ /dev/null @@ -1,32 +0,0 @@ ---- qtox.pro.orig 2017-01-29 12:48:48 UTC -+++ qtox.pro -@@ -75,11 +75,11 @@ include(translations/i18n.pri) - system($$fromfile(translations/i18n.pri, updateallqm)) - - isEmpty(GIT_VERSION) { -- GIT_VERSION = $$system(git rev-parse HEAD 2> /dev/null || echo "built without git") -+ GIT_VERSION = $$system(echo "n/a") - } - DEFINES += GIT_VERSION=\"\\\"$$quote($$GIT_VERSION)\\\"\" - isEmpty(GIT_DESCRIBE) { -- GIT_DESCRIBE = $$system(git describe --tags 2> /dev/null || echo "Nightly") -+ GIT_DESCRIBE = $$FREEBSD_PKGVERSION - } - DEFINES += GIT_DESCRIBE=\"\\\"$$quote($$GIT_DESCRIBE)\\\"\" - # date works on linux/mac, but it would hangs qmake on windows -@@ -663,3 +663,15 @@ SOURCES += \ - src/widget/tool/toolboxgraphicsitem.cpp \ - src/widget/translator.cpp \ - src/widget/widget.cpp -+ -+unix { -+ target.path = $$PREFIX/bin -+ -+ desktop.files = qtox.desktop -+ desktop.path = $$PREFIX/share/applications -+ -+ icon.files = img/qtox.png -+ icon.path = $$PREFIX/share/pixmaps -+ -+ INSTALLS = target desktop icon -+} diff --git a/net-im/qTox/files/patch-src_main.cpp b/net-im/qTox/files/patch-src_main.cpp index 107da48094ef..7c344c1cbe58 100644 --- a/net-im/qTox/files/patch-src_main.cpp +++ b/net-im/qTox/files/patch-src_main.cpp @@ -1,7 +1,7 @@ ---- src/main.cpp.orig 2017-01-29 12:48:48 UTC +--- src/main.cpp.orig 2017-07-16 12:33:33 UTC +++ src/main.cpp -@@ -317,3 +317,10 @@ int main(int argc, char *argv[]) - #endif +@@ -322,3 +322,10 @@ int main(int argc, char* argv[]) + delete a; return errorcode; } + |