From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Aug 15 12:20:05 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 869FB1065693 for ; Sat, 15 Aug 2009 12:20:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 33E8F8FC69 for ; Sat, 15 Aug 2009 12:20:04 +0000 (UTC) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n7FCK42a034845 for ; Sat, 15 Aug 2009 12:20:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n7FCK4ov034844; Sat, 15 Aug 2009 12:20:04 GMT (envelope-from gnats) Resent-Date: Sat, 15 Aug 2009 12:20:04 GMT Resent-Message-Id: <200908151220.n7FCK4ov034844@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Maxim Ignatenko Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 64169106568D for ; Sat, 15 Aug 2009 12:12:38 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 52F6F8FC3D for ; Sat, 15 Aug 2009 12:12:38 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n7FCCc0N079046 for ; Sat, 15 Aug 2009 12:12:38 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n7FCCcuN079045; Sat, 15 Aug 2009 12:12:38 GMT (envelope-from nobody) Message-Id: <200908151212.n7FCCcuN079045@www.freebsd.org> Date: Sat, 15 Aug 2009 12:12:38 GMT From: Maxim Ignatenko To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/137796: [patch] devel/cmake: add option to build cmake-gui X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Aug 2009 12:20:05 -0000 >Number: 137796 >Category: ports >Synopsis: [patch] devel/cmake: add option to build cmake-gui >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Aug 15 12:20:03 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Maxim Ignatenko >Release: >Organization: Kiev National Taras Shevchenko University >Environment: >Description: Add option to build Qt4 GUI for cmake (turned off by default) >How-To-Repeat: >Fix: Patch attached with submission follows: --- Makefile.orig 2009-08-04 22:33:08.000000000 +0300 +++ Makefile 2009-08-15 14:51:45.000000000 +0300 @@ -21,6 +21,8 @@ MAKE_JOBS_SAFE= yes +OPTIONS= QT_GUI "Build cmake-gui executable" OFF + .if !defined(WITH_DEBUG) INSTALL_TARGET=install/strip .endif @@ -36,6 +38,20 @@ cpack.1 \ ctest.1 +.include + +.if defined(WITH_QT_GUI) +USE_QT_VER= 4 +QTNONSTANDART= yes +QT_COMPONENTS= gui qmake_build moc_build uic_build rcc_build +CONFIGURE_ARGS+= --qt-gui --qt-qmake=${QMAKE} +PLIST_SUB+= CMAKEGUI= +MAN1+= cmake-gui.1 +.else +CONFIGURE_ARGS+= --no-qt-gui +PLIST_SUB+= CMAKEGUI="@comment " +.endif + post-patch: @${GREP} -rl '/usr/X11R6' ${WRKSRC}/Modules ${WRKSRC}/Tests | \ ${XARGS} ${REINPLACE_CMD} -e 's,/usr/X11R6,${LOCALBASE},g' --- pkg-plist.orig 2009-08-04 22:33:08.000000000 +0300 +++ pkg-plist 2009-08-15 14:51:45.000000000 +0300 @@ -1,7 +1,11 @@ bin/ccmake bin/cmake +%%CMAKEGUI%%bin/cmake-gui bin/cpack bin/ctest +%%CMAKEGUI%%share/applications/CMake.desktop +%%CMAKEGUI%%share/mime/packages/cmakecache.xml +%%CMAKEGUI%%share/pixmaps/CMakeSetup.png %%DATADIR%%/Modules/AddFileDependencies.cmake %%DATADIR%%/Modules/BundleUtilities.cmake %%DATADIR%%/Modules/CMake.cmake @@ -386,6 +390,9 @@ %%DOCSDIR%%/cmake-commands.txt %%DOCSDIR%%/cmake-compatcommands.html %%DOCSDIR%%/cmake-compatcommands.txt +%%CMAKEGUI%%%%DOCSDIR%%/cmake-gui.docbook +%%CMAKEGUI%%%%DOCSDIR%%/cmake-gui.html +%%CMAKEGUI%%%%DOCSDIR%%/cmake-gui.txt %%DOCSDIR%%/cmake-modules.html %%DOCSDIR%%/cmake-modules.txt %%DOCSDIR%%/cmake-policies.html >Release-Note: >Audit-Trail: >Unformatted: