mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
Libfmt: new recipe (#3471)
This commit is contained in:
79
dev-libs/libfmt/libfmt-5.2.1.recipe
Normal file
79
dev-libs/libfmt/libfmt-5.2.1.recipe
Normal file
@@ -0,0 +1,79 @@
|
||||
SUMMARY="Small, safe and fast formatting library"
|
||||
DESCRIPTION="fmt is an open-source formatting library for C++. It can be used \
|
||||
as a safe and fast alternative to (s)printf and IOStreams."
|
||||
HOMEPAGE="https://github.com/fmtlib/fmt"
|
||||
COPYRIGHT="2012-2016 Victor Zverovich"
|
||||
LICENSE="BSD (2-clause)"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/fmtlib/fmt/archive/$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="3c812a18e9f72a88631ab4732a97ce9ef5bcbefb3235e9fd465f059ba204359b"
|
||||
SOURCE_FILENAME="fmt-$portVersion.tar.gz"
|
||||
SOURCE_DIR="fmt-$portVersion"
|
||||
|
||||
ARCHITECTURES="?x86_gcc2 ?x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="$portVersion"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
libfmt$secondaryArchSuffix = $portVersion
|
||||
lib:libfmt$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
libfmt${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libfmt$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
libfmt$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
defineDebugInfoPackage fmt$secondaryArchSuffix \
|
||||
"$libDir"/libfmt.so.$portVersion
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p haiku_build
|
||||
cd haiku_build
|
||||
|
||||
cmake .. \
|
||||
-DBUILD_SHARED_LIBS=ON \
|
||||
$cmakeDirArgs
|
||||
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd haiku_build
|
||||
make install
|
||||
|
||||
# prepare develop/lib
|
||||
prepareInstalledDevelLibs libfmt
|
||||
fixPkgconfig
|
||||
|
||||
# devel package
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$libDir/cmake
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
cd haiku_build
|
||||
make test
|
||||
}
|
||||
Reference in New Issue
Block a user