ports/137796: [patch] devel/cmake: add option to build cmake-gui
Maxim Ignatenko
gelraen.ua at gmail.com
Sat Aug 15 12:20:05 UTC 2009
>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 <bsd.port.options.mk>
+
+.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:
More information about the freebsd-ports-bugs
mailing list