cmake: create package for cmake-gui

This commit is contained in:
Sergei Reznikov
2015-11-03 11:05:09 +03:00
parent fd519d207a
commit d027eaf520

View File

@@ -7,7 +7,7 @@ of your choice."
HOMEPAGE="http://www.cmake.org"
COPYRIGHT="2002-2014 Kitware, Inc., Insight Consortium"
LICENSE="CMake"
REVISION="1"
REVISION="2"
SOURCE_URI="http://www.cmake.org/files/v3.3/cmake-$portVersion.tar.gz"
CHECKSUM_SHA256="e75a178d6ebf182b048ebfe6e0657c49f0dc109779170bad7ffcb17463f2fc22"
SOURCE_DIR="cmake-$portVersion"
@@ -30,6 +30,7 @@ REQUIRES="
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libncurses$secondaryArchSuffix
devel:libqt5$secondaryArchSuffix
"
BUILD_PREREQUIRES="
@@ -45,22 +46,51 @@ BUILD_PREREQUIRES="
BUILD()
{
# not an autotools configure
# TODO: remove Qt5Widgets_DIR when Qt5 package is fixed
Qt5Widgets_DIR=/system/data/cmake/Modules/Qt5Widgets \
./configure --prefix=$prefix \
--datadir=/$relativeDataDir/cmake \
--docdir=/$relativeDocDir \
--mandir=/$relativeManDir
--mandir=/$relativeManDir \
--qt-gui
make $jobArgs
}
INSTALL()
{
make install
strip -s $prefix/bin/*
# No way to tell this to configure...
mv $prefix/share/aclocal $dataDir
rmdir $prefix/share
rm -rf $prefix/share
packageEntries gui \
$prefix/bin/cmake-gui
}
SUMMARY_gui="A GUI tool for cross-platform build system"
DESCRIPTION_gui="The “cmake-gui” executable is the CMake GUI. Project \
configuration settings may be specified interactively. Brief instructions \
are provided at the bottom of the window when the program is running.
CMake is a cross-platform build system generator. Projects specify their \
build process with platform-independent CMake listfiles included in each \
directory of a source tree with the name CMakeLists.txt. Users build a \
project by using CMake to generate a build system for a native tool on \
their platform."
PROVIDES_gui="
cmake_gui${secondaryArchSuffix} = $portVersion
cmd:cmake_gui${secondaryArchSuffix} = $portVersion
"
REQUIRES_gui="
haiku$secondaryArchSuffix
cmake$secondaryArchSuffix == $portVersion base
lib:libqt5$secondaryArchSuffix
"
TEST()
{
cp bin/ctest Bootstrap.cmk/