mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 21:30:08 +02:00
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has, is transformed into "all", and then the other entries in ARCHITECTURES either dropped or rearranged appropriately.
92 lines
2.1 KiB
Bash
92 lines
2.1 KiB
Bash
SUMMARY="A portable, pure C implementation of the Git core methods"
|
|
DESCRIPTION="The library provides:
|
|
* SHA conversions, formatting and shortening
|
|
* abstracted ODB backend system
|
|
* commit, tag, tree and blob parsing, editing, and write-back
|
|
* tree traversal
|
|
* revision walking
|
|
* index file (staging area) manipulation
|
|
* reference management (including packed references)
|
|
* config file management
|
|
* high level repository management
|
|
* thread safety and reentrancy
|
|
* descriptive and detailed error messages
|
|
* ...and more (over 175 different API calls)"
|
|
HOMEPAGE="http://libgit2.github.com/"
|
|
COPYRIGHT="2005-2017 libgit2 project"
|
|
LICENSE="GNU LGPL v2"
|
|
REVISION="4"
|
|
SOURCE_URI="https://github.com/libgit2/libgit2/archive/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="7ae8e699ff7ff9a1fa702249140ee31ea6fd556bf7968e84e38165870667bcb1"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
libgit2$secondaryArchSuffix = $portVersion
|
|
lib:libgit2$secondaryArchSuffix = 0.25.1 compat >= 0.25
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libcrypto$secondaryArchSuffix
|
|
lib:libcurl$secondaryArchSuffix
|
|
lib:libssh2$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libgit2${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libgit2$secondaryArchSuffix = 0.25.1 compat >= 0.25
|
|
"
|
|
REQUIRES_devel="
|
|
libgit2$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libcrypto$secondaryArchSuffix
|
|
devel:libcurl$secondaryArchSuffix
|
|
devel:libssh2$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:curl_config$secondaryArchSuffix
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
mkdir -p build && cd build
|
|
|
|
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
|
|
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
cd build
|
|
make install
|
|
|
|
prepareInstalledDevelLib libgit2
|
|
fixPkgconfig
|
|
|
|
packageEntries devel $developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
cd build
|
|
make check
|
|
}
|