From owner-svn-ports-all@freebsd.org Mon Dec 12 17:45:03 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 87002C73D50; Mon, 12 Dec 2016 17:45:03 +0000 (UTC) (envelope-from olivierd@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 61A11146; Mon, 12 Dec 2016 17:45:03 +0000 (UTC) (envelope-from olivierd@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id uBCHj2a9048156; Mon, 12 Dec 2016 17:45:02 GMT (envelope-from olivierd@FreeBSD.org) Received: (from olivierd@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uBCHj158048149; Mon, 12 Dec 2016 17:45:01 GMT (envelope-from olivierd@FreeBSD.org) Message-Id: <201612121745.uBCHj158048149@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: olivierd set sender to olivierd@FreeBSD.org using -f From: Olivier Duchateau Date: Mon, 12 Dec 2016 17:45:01 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r428424 - in head: Mk/Uses devel devel/lxqt-build-tools devel/lxqt-build-tools/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2016 17:45:03 -0000 Author: olivierd Date: Mon Dec 12 17:45:01 2016 New Revision: 428424 URL: https://svnweb.freebsd.org/changeset/ports/428424 Log: Several helpers CMake modules needed to build LXQt itself as well as other components. WWW: https://github.com/lxde/lxqt-build-tools Obtained from: LXQt devel repo Added: head/devel/lxqt-build-tools/ head/devel/lxqt-build-tools/Makefile (contents, props changed) head/devel/lxqt-build-tools/distinfo (contents, props changed) head/devel/lxqt-build-tools/files/ head/devel/lxqt-build-tools/files/extra-patch-cmake_modules_LXQtCompilerSettings.cmake (contents, props changed) head/devel/lxqt-build-tools/pkg-descr (contents, props changed) head/devel/lxqt-build-tools/pkg-plist (contents, props changed) Modified: head/Mk/Uses/lxqt.mk head/devel/Makefile Modified: head/Mk/Uses/lxqt.mk ============================================================================== --- head/Mk/Uses/lxqt.mk Mon Dec 12 17:26:02 2016 (r428423) +++ head/Mk/Uses/lxqt.mk Mon Dec 12 17:45:01 2016 (r428424) @@ -9,6 +9,7 @@ # # Available LXQt components are: # +# buildtools - Helpers CMake modules # libfmqt - Libfm Qt bindings # lxqt - LXQt core library # qtxdg - Qt implementation of freedesktop.org xdg specs @@ -42,7 +43,11 @@ CMAKE_ARGS+= -DCMAKE_INSTALL_MANDIR=${MA -DPULL_TRANSLATIONS:BOOL=OFF # Available LXQt components are: -_USE_LXQT_ALL= libfmqt lxqt qtxdg +_USE_LXQT_ALL= buildtools libfmqt lxqt qtxdg + +_DATAROOTDIR= ${LOCALBASE}/share + +buildtools_BUILD_DEPENDS= ${_DATAROOTDIR}/cmake/lxqt-build-tools/lxqt-build-tools-config.cmake:devel/lxqt-build-tools libfmqt_LIB_DEPENDS= libfm-qt.so:x11/libfm-qt Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Mon Dec 12 17:26:02 2016 (r428423) +++ head/devel/Makefile Mon Dec 12 17:45:01 2016 (r428424) @@ -1567,6 +1567,7 @@ SUBDIR += luajava SUBDIR += lutok SUBDIR += lwp + SUBDIR += lxqt-build-tools SUBDIR += m17n-db SUBDIR += m17n-docs SUBDIR += m17n-lib Added: head/devel/lxqt-build-tools/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/lxqt-build-tools/Makefile Mon Dec 12 17:45:01 2016 (r428424) @@ -0,0 +1,28 @@ +# Created by: Olivier Duchateau +# $FreeBSD$ + +PORTNAME= lxqt-build-tools +PORTVERSION= 0.3.0 +CATEGORIES= devel +MASTER_SITES= LXQT/${PORTNAME} + +MAINTAINER= olivierd@FreeBSD.org +COMMENT= Helpers CMake modules for LXQt + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/BSD-3-Clause + +USES= cmake:outsource lxqt pkgconfig tar:xz +USE_QT5= qmake_build buildtools_build core + +.include + +# When the CXX compiler is GNU 4.2.1 (DragonFlyBSD seems to have >= 4.7.x) +# we get the following errors: +# cc1plus: error: unrecognized command line option "-flto" +# cc1plus: error: unrecognized command line option "-fuse-linker-plugin" +.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000024 +EXTRA_PATCHES= ${FILESDIR}/extra-patch-cmake_modules_LXQtCompilerSettings.cmake +.endif + +.include Added: head/devel/lxqt-build-tools/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/lxqt-build-tools/distinfo Mon Dec 12 17:45:01 2016 (r428424) @@ -0,0 +1,3 @@ +TIMESTAMP = 1481464588 +SHA256 (lxqt/lxqt-build-tools-0.3.0.tar.xz) = 850124c0b76be38859745542fa45cb65191034d32b4fbc9f3399c867db69c008 +SIZE (lxqt/lxqt-build-tools-0.3.0.tar.xz) = 19024 Added: head/devel/lxqt-build-tools/files/extra-patch-cmake_modules_LXQtCompilerSettings.cmake ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/lxqt-build-tools/files/extra-patch-cmake_modules_LXQtCompilerSettings.cmake Mon Dec 12 17:45:01 2016 (r428424) @@ -0,0 +1,13 @@ +--- cmake/modules/LXQtCompilerSettings.cmake.orig 2016-12-06 20:31:16 UTC ++++ cmake/modules/LXQtCompilerSettings.cmake +@@ -144,7 +144,9 @@ endif() + if (CMAKE_COMPILER_IS_GNUCXX OR LXQT_COMPILER_IS_CLANGCXX) + # -flto: use link-time optimizations to generate more efficient code + if (CMAKE_COMPILER_IS_GNUCXX) +- set(LTO_FLAGS "-flto -fuse-linker-plugin") ++ if (NOT ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") ++ set(LTO_FLAGS "-flto -fuse-linker-plugin") ++ endif () + elseif (LXQT_COMPILER_IS_CLANGCXX) + # The link-time optimization of clang++/llvm seems to be too aggrassive. + # After testing, it breaks the signal/slots of QObject sometimes. Added: head/devel/lxqt-build-tools/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/lxqt-build-tools/pkg-descr Mon Dec 12 17:45:01 2016 (r428424) @@ -0,0 +1,4 @@ +Several helpers CMake modules needed to build LXQt itself as well as other +components. + +WWW: https://github.com/lxde/lxqt-build-tools Added: head/devel/lxqt-build-tools/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/lxqt-build-tools/pkg-plist Mon Dec 12 17:45:01 2016 (r428424) @@ -0,0 +1,22 @@ +share/cmake/lxqt-build-tools/find-modules/FindFm.cmake +share/cmake/lxqt-build-tools/find-modules/FindGLIB.cmake +share/cmake/lxqt-build-tools/find-modules/FindMenuCache.cmake +share/cmake/lxqt-build-tools/find-modules/FindUDev.cmake +share/cmake/lxqt-build-tools/find-modules/FindXCB.cmake +share/cmake/lxqt-build-tools/find-modules/FindXdgUserDirs.cmake +share/cmake/lxqt-build-tools/lxqt-build-tools-config-version.cmake +share/cmake/lxqt-build-tools/lxqt-build-tools-config.cmake +share/cmake/lxqt-build-tools/modules/LXQtAppTranslationLoader.cpp.in +share/cmake/lxqt-build-tools/modules/LXQtCompilerSettings.cmake +share/cmake/lxqt-build-tools/modules/LXQtConfigVars.cmake +share/cmake/lxqt-build-tools/modules/LXQtCreatePkgConfigFile.cmake +share/cmake/lxqt-build-tools/modules/LXQtCreatePortableHeaders.cmake +share/cmake/lxqt-build-tools/modules/LXQtLibTranslationLoader.cpp.in +share/cmake/lxqt-build-tools/modules/LXQtPluginTranslationLoader.cpp.in +share/cmake/lxqt-build-tools/modules/LXQtTranslate.cmake +share/cmake/lxqt-build-tools/modules/LXQtTranslateDesktop.cmake +share/cmake/lxqt-build-tools/modules/LXQtTranslateTs.cmake +share/cmake/lxqt-build-tools/modules/LXQtTranslationLoader.cmake +share/cmake/lxqt-build-tools/modules/Qt5PatchedLinguistToolsMacros.cmake +share/cmake/lxqt-build-tools/modules/Qt5TranslationLoader.cmake +share/cmake/lxqt-build-tools/modules/Qt5TranslationLoader.cpp.in