Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Dec 2016 17:45:01 +0000 (UTC)
From:      Olivier Duchateau <olivierd@FreeBSD.org>
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
Message-ID:  <201612121745.uBCHj158048149@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <bsd.port.pre.mk>
+
+# 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 <bsd.port.post.mk>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612121745.uBCHj158048149>