Files
haikuports/dev-util/cmake/cmake-3.2.3.recipe
2015-08-04 15:45:00 -04:00

68 lines
1.7 KiB
Bash

SUMMARY="Cross-platform Make"
DESCRIPTION="CMake is a cross-platform, open-source build system. It is a \
family of tools designed to build, test and package software. CMake 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. All rights reserved."
LICENSE="CMake"
SOURCE_URI="http://www.cmake.org/files/v3.2/cmake-$portVersion.tar.gz"
CHECKSUM_SHA256="a1ebcaf6d288eb4c966714ea457e3b9677cdfde78820d0f088712d7320850297"
SOURCE_DIR="cmake-$portVersion"
REVISION="1"
ARCHITECTURES="!x86_gcc2 x86 x86_64 arm"
SECONDARY_ARCHITECTURES="x86"
PATCHES="cmake-$portVersion.patchset"
PROVIDES="
cmake$secondaryArchSuffix = $portVersion compat >= 3.2
cmd:cmake = $portVersion compat >= 3.2
cmd:ccmake = $portVersion compat >= 3.2
cmd:cpack = $portVersion compat >= 3.2
cmd:ctest = $portVersion compat >= 3.2
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libncurses$secondaryArchSuffix
"
BUILD_REQUIRES="
devel:libncurses$secondaryArchSuffix
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel
haiku_devel
cmd:gcc$secondaryArchSuffix
cmd:grep
cmd:ld$secondaryArchSuffix
cmd:libtool
cmd:make
cmd:sed
"
BUILD()
{
# not an autotools configure
./configure --prefix=$prefix \
--datadir=/$relativeDataDir/cmake \
--docdir=/$relativeDocDir \
--mandir=/$relativeManDir
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
}