mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
77 lines
1.9 KiB
Bash
77 lines
1.9 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="https://cmake.org/"
|
|
COPYRIGHT="2002-2017 Kitware, Inc., Insight Consortium"
|
|
LICENSE="CMake"
|
|
REVISION="2"
|
|
SOURCE_URI="https://cmake.org/files/v3.8/cmake-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="da3072794eb4c09f2d782fcee043847b99bb4cf8d4573978d9b2024214d6e92d"
|
|
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:ccmake = $portVersion compat >= 3
|
|
cmd:cmake = $portVersion compat >= 3
|
|
cmd:cpack = $portVersion compat >= 3
|
|
cmd:ctest = $portVersion compat >= 3
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libcurl$secondaryArchSuffix
|
|
lib:libncurses$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libcurl$secondaryArchSuffix
|
|
devel:libncurses$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:grep
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:sed
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
# not an autotools configure
|
|
./configure --prefix=$prefix \
|
|
--datadir=/$relativeDataDir/cmake \
|
|
--docdir=/$relativeDocDir \
|
|
--mandir=/$relativeManDir \
|
|
--no-server \
|
|
--no-system-libs \
|
|
--system-curl \
|
|
-- -DCMAKE_USE_LIBUV=0
|
|
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
# No way to tell this to configure...
|
|
mv $prefix/share/aclocal $dataDir
|
|
rmdir $prefix/share
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
cp bin/ctest Bootstrap.cmk/
|
|
make test VERBOSE=1
|
|
}
|