mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
libgit2: fix gcc2 build.
This is needed for the work on the Git Tracker add-on for GSoC.
This commit is contained in:
@@ -15,12 +15,13 @@ DESCRIPTION="The library provides:
|
||||
HOMEPAGE="https://libgit2.github.com/"
|
||||
COPYRIGHT="2005-2018 libgit2 project"
|
||||
LICENSE="GNU LGPL v2"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
SOURCE_URI="https://github.com/libgit2/libgit2/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="0da4e211dfb63c22e5f43f2a4a5373e86a140afa88a25ca6ba3cc2cae58263d2"
|
||||
SOURCE_FILENAME="libgit2-$portVersion.tar.gz"
|
||||
PATCHES="libgit2-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
|
||||
ARCHITECTURES="x86_gcc2 ?x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="$portVersion"
|
||||
@@ -69,13 +70,18 @@ BUILD()
|
||||
{
|
||||
mkdir -p build && cd build
|
||||
|
||||
OPTIONS=
|
||||
if [ $effectiveTargetArchitecture == x86_gcc2 ] ; then
|
||||
OPTIONS=-DTHREADSAFE=OFF
|
||||
fi
|
||||
|
||||
cmake .. \
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=$prefix \
|
||||
-DBIN_INSTALL_DIR:PATH=$binDir \
|
||||
-DINCLUDE_INSTALL_DIR:PATH=$includeDir \
|
||||
-DLIB_INSTALL_DIR:PATH=$libDir \
|
||||
-DBUILD_CLAR=OFF \
|
||||
-DBUILD_EXAMPLES=OFF
|
||||
-DBUILD_EXAMPLES=OFF $OPTIONS
|
||||
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user