mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 06:28:55 +02:00
99 lines
2.7 KiB
Bash
99 lines
2.7 KiB
Bash
SUMMARY="A cross-platform build system"
|
|
DESCRIPTION="CMake is a family of tools designed to build, test and package \
|
|
software. It is used to control the software compilation process using \
|
|
simple platform and compiler independent configuration files. CMake generates \
|
|
native makefiles and workspaces that can be used in the compiler environment \
|
|
of your choice."
|
|
HOMEPAGE="http://www.cmake.org"
|
|
COPYRIGHT="2002-2014 Kitware, Inc., Insight Consortium"
|
|
LICENSE="CMake"
|
|
REVISION="2"
|
|
SOURCE_URI="http://www.cmake.org/files/v3.3/cmake-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="e75a178d6ebf182b048ebfe6e0657c49f0dc109779170bad7ffcb17463f2fc22"
|
|
SOURCE_DIR="cmake-$portVersion"
|
|
PATCHES="cmake-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 x86_64 arm"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
cmake$secondaryArchSuffix = $portVersion compat >= 3
|
|
cmd:cmake = $portVersion compat >= 3
|
|
cmd:ccmake = $portVersion compat >= 3
|
|
cmd:cpack = $portVersion compat >= 3
|
|
cmd:ctest = $portVersion compat >= 3
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libncurses$secondaryArchSuffix
|
|
"
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libncurses$secondaryArchSuffix
|
|
devel:libqt5$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_PREREQUIRES="
|
|
haiku_devel
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:grep
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtool
|
|
cmd:make
|
|
cmd:sed
|
|
"
|
|
|
|
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 \
|
|
--qt-gui
|
|
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
strip -s $prefix/bin/*
|
|
|
|
# No way to tell this to configure...
|
|
mv $prefix/share/aclocal $dataDir
|
|
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/
|
|
make test VERBOSE=1
|
|
}
|