Index: head/net-im/libqtelegram-ae/Makefile =================================================================== --- head/net-im/libqtelegram-ae/Makefile (revision 433937) +++ head/net-im/libqtelegram-ae/Makefile (revision 433938) @@ -1,35 +1,30 @@ # Created by: Henry Hu # $FreeBSD$ PORTNAME= libqtelegram-ae PORTVERSION= 6.1 +PORTREVISION= 1 DISTVERSIONPREFIX= v DISTVERSIONSUFFIX= -stable CATEGORIES= net-im MAINTAINER= henry.hu.sh@gmail.com COMMENT= Fork of libqtelegram by Aseman Team LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE USE_GITHUB= yes GH_ACCOUNT= Aseman-Land GH_PROJECT= libqtelegram-aseman-edition USES= qmake:outsource USE_QT5= qmake_build buildtools_build core gui network multimedia USE_OPENSSL= yes USE_LDCONFIG= yes - -# Explicitly disable C++11, as Qt 5.6 defaults to -std=gnu++11 when the -# compiler supports it and the build currently fails. -# ../libqtelegram-aseman-edition-6.1-stable/telegram/types/accountdaysttl.cpp:51:10: error: case value evaluates to 3100684255, which cannot be narrowed to type 'int' [-Wc++11-narrowing] -# case typeAccountDaysTTL: { -QMAKE_ARGS= CONFIG-="c++11" post-patch: @${REINPLACE_CMD} -e "/OPENSSL_INCLUDE_PATH/d" \ ${WRKSRC}/libqtelegram-ae.pri .include Index: head/net-im/libqtelegram-ae/files/patch-libqtelegram-ae.pro =================================================================== --- head/net-im/libqtelegram-ae/files/patch-libqtelegram-ae.pro (nonexistent) +++ head/net-im/libqtelegram-ae/files/patch-libqtelegram-ae.pro (revision 433938) @@ -0,0 +1,18 @@ +C++11 does not allow narrowing of integer types by default -- however multiple +constants defined in the code are too large to fit into a signed int, and rely +on the narrowing behaviour. + +--- libqtelegram-ae.pro.orig 2017-02-10 23:08:39 UTC ++++ libqtelegram-ae.pro +@@ -25,6 +25,11 @@ linux { + } + } + ++# Explictely allow narrowing of integer types ++clang { ++ QMAKE_CXXFLAGS += -Wno-c++11-narrowing ++} ++ + !contains(CONFIG, no_install) { + isEmpty(PREFIX) { + isEmpty(INSTALL_HEADERS_PREFIX): INSTALL_HEADERS_PREFIX = $$[QT_INSTALL_HEADERS] Property changes on: head/net-im/libqtelegram-ae/files/patch-libqtelegram-ae.pro ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-im/telegramqml/Makefile =================================================================== --- head/net-im/telegramqml/Makefile (revision 433937) +++ head/net-im/telegramqml/Makefile (revision 433938) @@ -1,38 +1,33 @@ # Created by: Henry Hu # $FreeBSD$ PORTNAME= telegramqml PORTVERSION= 0.9.2 +PORTREVISION= 1 DISTVERSIONPREFIX= v CATEGORIES= net-im MAINTAINER= henry.hu.sh@gmail.com COMMENT= Telegram API tools for QtQML and Qml LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libqtelegram-ae.so:net-im/libqtelegram-ae USE_GITHUB= yes GH_ACCOUNT= Aseman-Land GH_PROJECT= TelegramQML USES= qmake:outsource USE_QT5= qmake_build buildtools_build core qml quick sql xml multimedia USE_OPENSSL= yes USE_LDCONFIG= yes QMAKE_ARGS= BUILD_MODE+=lib \ LIBQTELEGRAM_INCLUDE_PATH="${LOCALBASE}/include/libqtelegram-ae" - -# Explicitly disable C++11, as Qt 5.6 defaults to -std=gnu++11 when the -# compiler supports it and the build currently fails. -# ../TelegramQML-0.9.2/telegramqml.cpp:4794:10: error: case value evaluates to 2573335900, which cannot be narrowed to type 'int' [-Wc++11-narrowing] -# case Update::typeUpdateReadHistoryInbox: -QMAKE_ARGS+= CONFIG-="c++11" post-patch: @${REINPLACE_CMD} -e "/isEmpty(OPENSSL_INCLUDE_PATH)/d" \ ${WRKSRC}/telegramqml.pri .include Index: head/net-im/telegramqml/files/patch-telegramqml.pro =================================================================== --- head/net-im/telegramqml/files/patch-telegramqml.pro (nonexistent) +++ head/net-im/telegramqml/files/patch-telegramqml.pro (revision 433938) @@ -0,0 +1,18 @@ +C++11 does not allow narrowing of integer types by default -- however multiple +constants defined in the code are too large to fit into a signed int, and rely +on the narrowing behaviour. + +--- telegramqml.pro.orig 2017-02-11 13:02:31 UTC ++++ telegramqml.pro +@@ -31,6 +31,11 @@ linux { + } + } + ++# Explictely allow narrowing of integer types ++clang { ++ QMAKE_CXXFLAGS += -Wno-c++11-narrowing ++} ++ + contains(BUILD_MODE,lib) { + isEmpty(PREFIX) { + isEmpty(INSTALL_HEADERS_PREFIX): INSTALL_HEADERS_PREFIX = $$[QT_INSTALL_HEADERS] Property changes on: head/net-im/telegramqml/files/patch-telegramqml.pro ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property