mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
Add "test" recipe for cmake git master branch.
Not intented for actual use, but this is a good way to track and test our pending upstream changes.
This commit is contained in:
72
dev-util/cmake/cmake-3.0.0_git.recipe
Normal file
72
dev-util/cmake/cmake-3.0.0_git.recipe
Normal file
@@ -0,0 +1,72 @@
|
||||
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"
|
||||
LICENSE="CMake"
|
||||
COPYRIGHT="2002-2014 Kitware, Inc., Insight Consortium, All rights reserved."
|
||||
SRC_URI="git+http://cmake.org/cmake.git"
|
||||
CHECKSUM_MD5="3f6e729a52e15cc3b1d58e2d1195c421"
|
||||
REVISION="1"
|
||||
ARCHITECTURES="?x86 ?x86_64"
|
||||
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
|
||||
# x86_gcc2 is fine as primary target architecture as long as we're building
|
||||
# for a different secondary architecture.
|
||||
ARCHITECTURES="$ARCHITECTURES ?x86_gcc2"
|
||||
fi
|
||||
SECONDARY_ARCHITECTURES="?x86"
|
||||
|
||||
PROVIDES="
|
||||
cmake = $portVersion compat >= 3.0
|
||||
cmd:cmake = $portVersion compat >= 3.0
|
||||
cmd:ccmake = $portVersion compat >= 3.0
|
||||
cmd:cpack = $portVersion compat >= 3.0
|
||||
cmd:ctest = $portVersion compat >= 3.0
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix >= $haikuVersion
|
||||
lib:libncurses$secondaryArchSuffix
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
devel:libncurses$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||||
haiku_devel >= $haikuVersion
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:grep
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:libtool
|
||||
cmd:make
|
||||
cmd:sed
|
||||
"
|
||||
PATCHES="cmake-$portVersion.patchset"
|
||||
#SOURCE_DIR="cmake-3.0.0-rc1"
|
||||
BUILD()
|
||||
{
|
||||
./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
|
||||
}
|
||||
|
||||
1267
dev-util/cmake/patches/cmake-3.0.0_git.patchset
Normal file
1267
dev-util/cmake/patches/cmake-3.0.0_git.patchset
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user