mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
Add cmake 3.2.2.
* Most of our patches were upstreamed.
This commit is contained in:
73
dev-util/cmake/cmake-3.2.2.recipe
Normal file
73
dev-util/cmake/cmake-3.2.2.recipe
Normal file
@@ -0,0 +1,73 @@
|
||||
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"
|
||||
SRC_URI="http://www.cmake.org/files/v3.2/cmake-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="ade94e6e36038774565f2aed8866415443444fb7a362eb0ea5096e40d5407c78"
|
||||
SOURCE_DIR="cmake-$portVersion"
|
||||
REVISION="1"
|
||||
ARCHITECTURES="x86 x86_64 arm"
|
||||
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"
|
||||
|
||||
PATCHES="cmake-3.2.2.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:libstdc++$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
|
||||
}
|
||||
22
dev-util/cmake/patches/cmake-3.2.2.patchset
Normal file
22
dev-util/cmake/patches/cmake-3.2.2.patchset
Normal file
@@ -0,0 +1,22 @@
|
||||
From 39333f7fd44b281cdaafb98820d549c923103011 Mon Sep 17 00:00:00 2001
|
||||
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
|
||||
Date: Mon, 9 Jun 2014 22:30:55 +0200
|
||||
Subject: Fix OpenAL search path.
|
||||
|
||||
|
||||
diff --git a/Modules/FindOpenAL.cmake b/Modules/FindOpenAL.cmake
|
||||
index 8150ff2..e0276f8 100644
|
||||
--- a/Modules/FindOpenAL.cmake
|
||||
+++ b/Modules/FindOpenAL.cmake
|
||||
@@ -68,7 +68,7 @@
|
||||
find_path(OPENAL_INCLUDE_DIR al.h
|
||||
HINTS
|
||||
ENV OPENALDIR
|
||||
- PATH_SUFFIXES include/AL include/OpenAL include
|
||||
+ PATH_SUFFIXES include/AL include/OpenAL include AL OpenAL
|
||||
PATHS
|
||||
~/Library/Frameworks
|
||||
/Library/Frameworks
|
||||
--
|
||||
2.2.2
|
||||
|
||||
Reference in New Issue
Block a user